Open a font from bytes (which the text system keeps and frees).
- text: the text system to add the font to.
- data: the font file's bytes. The call takes ownership: it copies them and frees
data, even on failure. - name: a label for the font, copied.
load_font_data :: (text: *Text_System, data: string, name: string = "") -> bool
Open a font from bytes (which the text system keeps and frees).
Parameters
- text: *Text_System
- the text system to add the font to.
- data: string
- the font file's bytes. The call takes ownership: it copies them and frees
data, even on failure. - name: string
- a label for the font, copied.
Returns
- bool