Cobbletext  0.2.0
Complex text layout and rendering engine
Public Attributes | List of all members
CobbletextFontInfo Struct Reference

Font face properties. More...

#include <font_info.h>

Public Attributes

CobbletextFontID id
 ID for this face. More...
 
const char * family_name
 Font family name. More...
 
const char * style_name
 Font style name. More...
 
uint16_t units_per_em
 Number of font units per EM square. More...
 
int16_t ascender
 Ascender in font units. More...
 
int16_t descender
 Descencder in font units. More...
 
int16_t height
 Distance between two baselines in font units. More...
 
int16_t underline_position
 Position of underline in font units. More...
 
int16_t underline_thickness
 Thickness of underline in font units. More...
 

Detailed Description

Font face properties.

Member Data Documentation

◆ ascender

int16_t CobbletextFontInfo::ascender

Ascender in font units.

Positive is above baseline.

◆ descender

int16_t CobbletextFontInfo::descender

Descencder in font units.

Negative is below baseline.

◆ family_name

const char* CobbletextFontInfo::family_name

Font family name.

  • Never null pointer.

◆ height

int16_t CobbletextFontInfo::height

Distance between two baselines in font units.

If 0, it is not a vector, but a bitmap font.

◆ id

CobbletextFontID CobbletextFontInfo::id

ID for this face.

◆ style_name

const char* CobbletextFontInfo::style_name

Font style name.

  • Never null pointer.

◆ underline_position

int16_t CobbletextFontInfo::underline_position

Position of underline in font units.

◆ underline_thickness

int16_t CobbletextFontInfo::underline_thickness

Thickness of underline in font units.

◆ units_per_em

uint16_t CobbletextFontInfo::units_per_em

Number of font units per EM square.

If value is 0, the font is a bitmap font and not a vector font. Additionally, properties, such as ascender or height, related to this EM size is not valid.


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