Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::FontSpec Struct Reference

A font request, as a delegate expresses it. More...

#include <widget_metrics.hpp>

Public Attributes

std::string family = "Inter"
float size = 13.0f
int weight = 400
 100–900, 400 = regular
float letter_spacing = 0.0f

Detailed Description

A font request, as a delegate expresses it.

letter_spacing is in ems, the same unit Label::set_letter_spacing takes.

Member Data Documentation

◆ family

std::string pulp::view::FontSpec::family = "Inter"

◆ letter_spacing

float pulp::view::FontSpec::letter_spacing = 0.0f

◆ size

float pulp::view::FontSpec::size = 13.0f

◆ weight

int pulp::view::FontSpec::weight = 400

100–900, 400 = regular


The documentation for this struct was generated from the following file: