void sftd_draw_wtext(sftd_font *font, int x, int y, unsigned int color, unsigned int size, const wchar_t *text)
Draws wide text using a font.
sftd_font * sftd_load_font_file(const char *pathname)
Loads a font from a file.
sftd_font * sftd_load_font_mem(const void *buffer, unsigned int size)
Loads a font from memory.
struct sftd_font sftd_font
Represents a font.
Definition: sftd.h:22
void sftd_free_font(sftd_font *font)
Frees a font.
void sftd_draw_text(sftd_font *font, int x, int y, unsigned int color, unsigned int size, const char *text)
Draws text using a font.
int sftd_fini()
Finishes the library.
int sftd_init()
Initializates the library.