UI module

font_metrics

procedure · 1 overloadsince 0.31.0Source

Ascent, descent and line height of a font slot at size points.

font_metrics :: (
    text: *Text_System,
    slot: Font_Slot,
    size: float
) -> Font_Metrics

Ascent, descent and line height of a font slot at size points.

Parameters

text: *Text_System
the text system holding the fonts.
slot: Font_Slot
which font to measure.
size: float
the font size in points.

Returns

See also