Go to the source code of this file.
Data Structures | |
struct | uiFont_s |
Typedefs | |
typedef struct uiFont_s | uiFont_t |
Functions | |
const char * | UI_GetFontFromNode (const struct uiNode_s *const node) |
const uiFont_t * | UI_GetFontByID (const char *fontID) |
Return the font for a specific id. | |
void | UI_ParseFont (const char *name, const char **text) |
void | UI_InitFonts (void) |
after a video restart we have to reinitialize the fonts | |
int | UI_FontGetHeight (const char *font) |
Definition in file ui_font.h.
int UI_FontGetHeight | ( | const char * | font | ) |
Definition at line 167 of file ui_font.c.
References uiNode_s::font, font_s::height, and R_GetFont().
Referenced by UI_ButtonNodeLoaded(), UI_DrawString(), UI_OptionListNodeDraw(), UI_OptionListNodeGetOptionAtPosition(), UI_OptionListNodeUpdateScroll(), UI_OptionTreeNodeDraw(), UI_OptionTreeNodeGetOptionAtPosition(), UI_OptionTreeNodeUpdateScroll(), UI_TextLineNodeDrawText(), UI_TextListNodeGetLine(), UI_TextNodeDrawText(), UI_TextNodeGetLine(), and UI_TextNodeLoaded().
const uiFont_t* UI_GetFontByID | ( | const char * | fontID | ) |
Return the font for a specific id.
Definition at line 156 of file ui_font.c.
Referenced by UI_DrawString(), and UI_ParseFont().
const char* UI_GetFontFromNode | ( | const struct uiNode_s *const | node | ) |
void UI_InitFonts | ( | void | ) |
after a video restart we have to reinitialize the fonts
Definition at line 178 of file ui_font.c.
References Com_Printf(), i, numFonts, and UI_RegisterFont().
Referenced by CL_NewLanguage(), and UI_Reinit().
void UI_ParseFont | ( | const char * | name, | |
const char ** | text | |||
) |
Definition at line 68 of file ui_font.c.
References Com_DPrintf(), Com_EParse(), Com_EParseValue(), Com_Parse(), Com_Printf(), DEBUG_CLIENT, uiNode_s::font, MAX_FONTS, Mem_PoolStrDup, Mem_PoolStrDupTo, uiFont_s::name, numFonts, value_s::ofs, value_s::size, value_s::string, value_s::type, UI_GetFontByID(), UI_RegisterFont(), ui_sysPool, V_CLIENT_HUNK_STRING, and V_TRANSLATION_STRING.
Referenced by CL_ParseClientData().