Simp module

prepare_text

procedure · 1 overloadSource

Lays text out and returns its width in pixels. draw_prepared_text then draws it.

prepare_text :: (
    font: *Dynamic_Font,
    text: string,
    effect_flags: Font_Effects = 0
) -> width: s64

Lays text out and returns its width in pixels. draw_prepared_text then draws it.

Parameters

font: *Dynamic_Font
the font to lay the text out in.
text: string
UTF-8.
effect_flags: Font_Effects
Font_Effects flags.

Returns

width: s64

See also