UI module

glyph_advance

procedure · 1 overloadsince 0.31.0Source

Horizontal advance of one code point in points (a tab is four spaces).

glyph_advance :: (text: *Text_System, code: u32, style: Text_Style) -> float

Horizontal advance of one code point in points (a tab is four spaces).

Parameters

text: *Text_System
the text system holding the fonts.
code: u32
the code point.
style: Text_Style
the font and size to measure with.

Returns

float

See also