A font at one size, ready to draw with. load_font returns one; it makes glyphs as text needs them
and keeps them in an atlas. character_height is in device pixels, pixel_scale the number of those
per drawing unit.
Fields
- name: string
- latin_font: *Dynamic_Font
- glyph_lookup: Table(int, *Glyph_Data)
- private1: FT_Face
- character_range_low: int
- character_range_high: int
- character_height: int
- in device pixels: the requested size times
pixel_scale - pixel_scale: float
- device pixels per drawing unit; glyphs are rasterized at this scale and drawn at 1/scale
- default_line_spacing: int
- max_ascender: int
- max_descender: int
- typical_ascender: int
- typical_descender: int
- em_width: int
- y_offset_for_my_latin_characters: float
- y_offset_for_centering: int
- use_other_font_for_latin_always: bool
- reversed: bool
- glyph_conversion_failed: bool
- glyph_index_for_unknown_character: u32
- utf32_for_unknown_character: := 0xfffd
- features: [..] Font_Feature
- feature_smallcaps: *Font_Feature
- feature_ligatures: *Font_Feature
- feature_lining_numbers: *Font_Feature
- temporary_glyphs: [..] *Glyph_Data
- temporary_glyphs_byte_offsets: [..] int
- temporary_glyphs_width_in_pixels: s64
- current_quads: [..] Font_Quad