HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
v1::font_book::estimate_run_result_type Struct Reference

Public Member Functions

void reserve (size_t count) noexcept
 
void scale (float s) noexcept
 

Data Fields

std::vector< font const * > fonts
 The resolved font to use for each grapheme.
 
std::vector< floatadvances
 The estimated advance for each grapheme.
 

Field Documentation

◆ advances

std::vector<float> v1::font_book::estimate_run_result_type::advances

The estimated advance for each grapheme.

This advance is used in the line folding algorithm.

◆ fonts

std::vector<font const *> v1::font_book::estimate_run_result_type::fonts

The resolved font to use for each grapheme.

If a grapheme is not available to be displayed by a font, then a fallback font is searched. Use this particular font when text-shaping a run.


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