guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
guillaume::theme::TypeToken Struct Reference

One text style: everything needed to measure and draw a piece of text. More...

#include <headers/guillaume/theme/typescale.hpp>

Public Attributes

std::string fontFamily { "Roboto" }
 Font family name.
FontWeight fontWeight { FontWeight::Regular }
 Font weight.
float fontSize { 14.0f }
 Font size, in dp.
float lineHeight
 Distance between two baselines, in dp.
float letterSpacing
 Extra space between characters, in dp.

Detailed Description

One text style: everything needed to measure and draw a piece of text.

The default-constructed token is the Default role: Roboto regular, 14 dp on a 20 dp line.

Definition at line 83 of file typescale.hpp.

Member Data Documentation

◆ fontFamily

std::string guillaume::theme::TypeToken::fontFamily { "Roboto" }

Font family name.

Definition at line 84 of file typescale.hpp.

◆ fontSize

float guillaume::theme::TypeToken::fontSize { 14.0f }

Font size, in dp.

Definition at line 86 of file typescale.hpp.

◆ fontWeight

FontWeight guillaume::theme::TypeToken::fontWeight { FontWeight::Regular }

Font weight.

Definition at line 85 of file typescale.hpp.

◆ letterSpacing

float guillaume::theme::TypeToken::letterSpacing
Initial value:
{
0.0f
}

Extra space between characters, in dp.

Definition at line 90 of file typescale.hpp.

◆ lineHeight

float guillaume::theme::TypeToken::lineHeight
Initial value:
{
20.0f
}

Distance between two baselines, in dp.

Definition at line 87 of file typescale.hpp.


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