Unravel Engine C++ Reference
Loading...
Searching...
No Matches
gfx::font_info Struct Reference

#include <font_manager.h>

Public Attributes

uint16_t pixel_size {}
 The font height in pixel.
 
int16_t font_type {}
 Rendering type used for the font.
 
float ascender {}
 The pixel extents above the baseline in pixels (typically positive).
 
float descender {}
 The extents below the baseline in pixels (typically negative).
 
float line_gap {}
 The spacing in pixels between one row's descent and the next row's ascent.
 
float capline {}
 The extends above the baseline representing of the capital letters.
 
float xline {}
 The extends above the baseline representing of the small letters.
 
float max_advance_width {}
 This field gives the maximum horizontal cursor advance for all glyphs in the font.
 
float underline_thickness {}
 The thickness of the under/hover/strike-trough line in pixels.
 
float underline_position {}
 The position of the underline relatively to the baseline.
 
float scale {}
 Scale to apply to glyph data.
 

Detailed Description

Definition at line 33 of file font_manager.h.

Member Data Documentation

◆ ascender

float gfx::font_info::ascender {}

The pixel extents above the baseline in pixels (typically positive).

Definition at line 41 of file font_manager.h.

◆ capline

float gfx::font_info::capline {}

The extends above the baseline representing of the capital letters.

Definition at line 47 of file font_manager.h.

◆ descender

float gfx::font_info::descender {}

The extents below the baseline in pixels (typically negative).

Definition at line 43 of file font_manager.h.

◆ font_type

int16_t gfx::font_info::font_type {}

Rendering type used for the font.

Definition at line 38 of file font_manager.h.

◆ line_gap

float gfx::font_info::line_gap {}

The spacing in pixels between one row's descent and the next row's ascent.

Definition at line 45 of file font_manager.h.

◆ max_advance_width

float gfx::font_info::max_advance_width {}

This field gives the maximum horizontal cursor advance for all glyphs in the font.

Definition at line 51 of file font_manager.h.

◆ pixel_size

uint16_t gfx::font_info::pixel_size {}

The font height in pixel.

Definition at line 36 of file font_manager.h.

◆ scale

float gfx::font_info::scale {}

Scale to apply to glyph data.

Definition at line 57 of file font_manager.h.

◆ underline_position

float gfx::font_info::underline_position {}

The position of the underline relatively to the baseline.

Definition at line 55 of file font_manager.h.

◆ underline_thickness

float gfx::font_info::underline_thickness {}

The thickness of the under/hover/strike-trough line in pixels.

Definition at line 53 of file font_manager.h.

◆ xline

float gfx::font_info::xline {}

The extends above the baseline representing of the small letters.

Definition at line 49 of file font_manager.h.


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