Functions to loads font files and manipulate them.
◆ lraspi_Font
Represents a font object.
◆ lraspi_font_free()
Releases a font from memory.
- Parameters
-
font | The font which will be released. |
◆ lraspi_font_getdefault()
Gets the current default font.
- Returns
- A font object.
◆ lraspi_font_new()
lraspi_Font* lraspi_font_new |
( |
const char * |
font_file, |
|
|
int |
size |
|
) |
| |
Loads a font file onto the memory.
- Parameters
-
font_file | Path of the font file. |
size | Size of the glyphs. |
- Returns
- A font object.
◆ lraspi_font_setdefault()
Sets the current default font.
- Parameters
-
font | The font to set as default, NULL to reset it. |