Lays text out and returns its width in pixels. draw_prepared_text then draws it.
- font: the font to lay the text out in.
- text: UTF-8.
- effect_flags:
Font_Effectsflags.
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_Effectsflags.
Returns
- width: s64