|
| std::string | family_name |
| | The description is filled with information parsed from the font.
|
| |
|
std::string | sub_family_name |
| |
|
bool | monospace = false |
| |
|
bool | serif = false |
| |
|
bool | italic = false |
| |
|
bool | condensed = false |
| |
|
font_weight | weight = font_weight::Regular |
| |
|
float | optical_size = 12.0 |
| |
|
tt::unicode_mask | unicode_mask |
| |
|
float | xHeight = 0.0 |
| |
|
float | HHeight = 0.0 |
| |
|
float | DigitWidth = 0.0 |
| |
| std::vector< tt::font * > | fallback_chain |
| | List of fonts to use as a fallback for this font.
|
| |
◆ find_glyph()
| tt::glyph_id tt::true_type_font::find_glyph |
( |
char32_t | c | ) |
const |
|
overridevirtualnoexcept |
Get the glyph for a code-point.
- Returns
- glyph-index, or invalid when not found or error.
Implements tt::font.
◆ load_glyph()
Load a glyph into a path.
The glyph is directly loaded from the font file.
- Parameters
-
| glyph_id | the index of a glyph inside the font. |
| path | The path constructed by the loader. |
- Returns
- empty on failure, or the glyphID of the metrics to use.
Implements tt::font.
◆ load_glyph_metrics()
Load a glyphMetrics into a path.
The glyph is directly loaded from the font file.
- Parameters
-
| glyph_id | the index of a glyph inside the font. |
| metrics | The metrics constructed by the loader. |
| lookahead_glyph_id | The next glyph, used for determining kerning. |
- Returns
- 1 on success, 0 on not implemented
Implements tt::font.
◆ loaded()
| bool tt::true_type_font::loaded |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
Return if the font is loaded.
- Returns
- true if the font is fully loaded, false if only metadata of the font is available.
Implements tt::font.
The documentation for this class was generated from the following file: