AERMRE 1.5.1
AER modding framework for Hyper Light Drifter.
font.h
Go to the documentation of this file.
1
22#ifndef AER_FONT_H
23#define AER_FONT_H
24
25#include <stdbool.h>
26#include <stddef.h>
27#include <stdint.h>
28
29/* ----- PUBLIC TYPES ----- */
30
36typedef enum AERFontIndex {
42 AER_FONT_ARIAL = 0x0,
43 AER_FONT_UNI = 0x1,
44 AER_FONT_CYR = 0x2,
45 AER_FONT_JP = 0x3,
46 AER_FONT_EDITORSMALL = 0x4,
47 AER_FONT_EDITOR = 0x5,
48 AER_FONT_IMAGINE = 0x6
50
51/* ----- PUBLIC FUNCTIONS ----- */
52
62int32_t AERFontGetCurrent(void);
63
74void AERFontSetCurrent(int32_t fontIdx);
75
96int32_t AERFontRegister(const char* filename,
97 size_t size,
98 bool bold,
99 bool italic,
100 int32_t first,
101 int32_t last);
102
113
126const char* AERFontGetName(int32_t fontIdx);
127
140size_t AERFontGetSize(int32_t fontIdx);
141
154bool AERFontGetBold(int32_t fontIdx);
155
168bool AERFontGetItalic(int32_t fontIdx);
169
182int32_t AERFontGetFirst(int32_t fontIdx);
183
196int32_t AERFontGetLast(int32_t fontIdx);
197
198#endif /* AER_FONT_H */
size_t AERFontGetNumRegistered(void)
Query the total number of vanilla and mod fonts registered.
bool AERFontGetBold(int32_t fontIdx)
Query whether a font is bold.
int32_t AERFontGetCurrent(void)
Query the currently active font.
int32_t AERFontRegister(const char *filename, size_t size, bool bold, bool italic, int32_t first, int32_t last)
Register a custom font.
size_t AERFontGetSize(int32_t fontIdx)
Query the size of a font in pixels.
AERFontIndex
Vanilla fonts.
Definition: font.h:36
@ AER_FONT_NULL
Flag which represents either no font or an invalid font depending on context.
Definition: font.h:41
int32_t AERFontGetFirst(int32_t fontIdx)
Query the index of the first character in a font.
void AERFontSetCurrent(int32_t fontIdx)
Change the currently active font to a new one.
const char * AERFontGetName(int32_t fontIdx)
Query the name of a font.
int32_t AERFontGetLast(int32_t fontIdx)
Query the index of the last character in a font.
bool AERFontGetItalic(int32_t fontIdx)
Query whether a font is italic.