54 const char* path =
_(font->
path);
70 const char* errhead =
"UI_ParseFont: unexpected end of file (font";
74 Com_Printf(
"UI_ParseFont: font \"%s\" with same name found, second ignored\n",
name);
79 Com_Printf(
"UI_ParseFont: Max fonts reached\n");
94 if (!*text || *token !=
'{') {
95 Com_Printf(
"UI_ParseFont: font \"%s\" without body ignored\n",
name);
133 Com_Printf(
"UI_ParseFont: unknown token \"%s\" ignored (font %s)\n", token,
name);
147 if (node && node->
font) {
void R_FontRegister(const char *name, int size, const char *path, const char *style)
Share stuff between the different cgame implementations.
void Com_DPrintf(int level, const char *fmt,...)
A Com_Printf that only shows up if the "developer" cvar is set.
void Com_Error(int code, const char *fmt,...)
void Com_Printf(const char *const fmt,...)
int FS_CheckFile(const char *fmt,...)
Just returns the filelength and -1 if the file wasn't found.
#define Mem_PoolStrDup(in, pool, tagNum)
#define Mem_PoolStrDupTo(in, out, pool, tagNum)
const char * Com_Parse(const char *data_p[], char *target, size_t size, bool replaceWhitespaces)
Parse a token out of a string.
Shared parsing functions.
static font_t fonts[MAX_FONTS]
font_t * R_GetFont(const char *name)
Searches the array of available fonts (see fonts.ufo).
QGL_EXTERN int GLboolean GLfloat * v
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
const char * Com_EParse(const char **text, const char *errhead, const char *errinfo, char *target, size_t size)
Parsing function that prints an error message when there is no text in the buffer.
int Com_EParseValue(void *base, const char *token, valueTypes_t type, int ofs, size_t size)
T & Com_GetValue(void *const object, value_t const *const value)
#define MEMBER_SIZEOF(TYPE, MEMBER)
Atomic structure used to define most of the UI.
void UI_FontShutdown(void)
int UI_FontGetHeight(const char *fontID)
bool UI_ParseFont(const char *name, const char **text)
static void UI_RegisterFont(const uiFont_t *font)
Registers a new TTF font.
void UI_InitFonts(void)
after a video restart we have to reinitialize the fonts
const uiFont_t * UI_GetFontByID(const char *name)
Return the font for a specific id.
static const value_t fontValues[]
const char * UI_GetFontFromNode(const uiNode_t *const node)
Return the font for a specific node or default font.
Internal data use by the UI package.
const char * UI_GetReferenceString(const uiNode_t *const node, const char *ref)