UI module

get_glyph

procedure · 1 overloadsince 0.31.0Source

The glyph for code in a font slot at size points, rasterized into the atlas on first use. Falls back through the later fonts when the slot's font has no glyph for it.

get_glyph :: (
    text: *Text_System,
    code: u32,
    slot: Font_Slot,
    size: float
) -> Glyph

The glyph for code in a font slot at size points, rasterized into the atlas on first use. Falls back through the later fonts when the slot's font has no glyph for it.

Parameters

text: *Text_System
the text system holding the fonts and atlas.
code: u32
the code point.
slot: Font_Slot
which font to prefer.
size: float
the font size in points.

Returns

See also