_Bool b8
8-bit boolean type
Definition: defines.h:58
unsigned short u16
Unsigned 16-bit integer.
Definition: defines.h:22
unsigned long long u64
Unsigned 64-bit integer.
Definition: defines.h:28
unsigned char u8
Unsigned 8-bit integer.
Definition: defines.h:19
b8 font_system_verify_atlas(font_data *font, const char *text)
Verifies the atlas of the provided font contains the characters in text.
b8 font_system_release(struct ui_text *text)
Releases references to the font held by the provided ui_text.
b8 font_system_acquire(const char *font_name, u16 font_size, struct ui_text *text)
Attempts to acquire a font of the given name and assign it to the given ui_text.
struct font_system_config font_system_config
The configuration of the font system. Should be setup by the application during the boot process.
b8 font_system_bitmap_font_load(bitmap_font_config *config)
Loads a bitmap font from the following config.
b8 font_system_initialize(u64 *memory_requirement, void *memory, void *config)
Initializes the font system. As with other systems, this should be called twice; once to get the memo...
void font_system_shutdown(void *memory)
Shuts down the font system.
b8 font_system_system_font_load(system_font_config *config)
Loads a system font from the following config.
struct system_font_config system_font_config
The configuration for a system font.
struct bitmap_font_config bitmap_font_config
The configuration for a bitmap font.
Contains various math types required for the engine.
The configuration for a bitmap font.
Definition: font_system.h:32
u16 size
The size of the font.
Definition: font_system.h:36
char * name
The name of the font.
Definition: font_system.h:34
char * resource_name
The name of the resource containing the font data.
Definition: font_system.h:38
Definition: resource_types.h:259
The configuration of the font system. Should be setup by the application during the boot process.
Definition: font_system.h:46
system_font_config * system_font_configs
The default system font configs.
Definition: font_system.h:50
u8 max_bitmap_font_count
The default number of bitmap fonts.
Definition: font_system.h:58
u8 max_system_font_count
The default number of system fonts.
Definition: font_system.h:56
u8 default_system_font_count
The default number of system fonts.
Definition: font_system.h:48
bitmap_font_config * bitmap_font_configs
The default bitmap font configs.
Definition: font_system.h:54
u8 default_bitmap_font_count
The default number of bitmap fonts.
Definition: font_system.h:52
b8 auto_release
Indicates if fonts should auto-release when not used.
Definition: font_system.h:60
The configuration for a system font.
Definition: font_system.h:20
u16 default_size
The default size of the font.
Definition: font_system.h:24
char * name
The name of the font.
Definition: font_system.h:22
char * resource_name
The name of the resource containing the font data.
Definition: font_system.h:26
char * text
Definition: ui_text.h:21