#font.get_font_descriptor(fontName: string, fontSize: number) → FontDescriptor
since 1.6.15-alpha
Creates an object that describes a font and its properties.
Parameters
| fontName | string | The name of the font |
| fontSize | number | The size of the font |
Font descriptor lookup and registration for the overlay UI and the immediate-mode renderer.
Creates an object that describes a font and its properties.
| fontName | string | The name of the font |
| fontSize | number | The size of the font |
Requests for all fonts to be reloaded on the next frame. Used after obtaining new FontDescriptor objects.
Adds a font given its binary TrueType font data to the custom fonts folder of this Madius installation. Returns true if the font is successfully added.
| fontName | string | The name of the font |
| ttfData | buffer | The TTF data |