UFO: Alien Invasion
r_font.h File Reference
#include <SDL_ttf.h>
Include dependency graph for r_font.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  font_t
 

Functions

void R_FontListCache_f (void)
 Console command binding to show the font cache. More...
 
font_tR_GetFont (const char *name)
 Searches the array of available fonts (see fonts.ufo) More...
 
void R_FontCleanCache (void)
 Clears font cache and frees memory associated with the cache. More...
 

Function Documentation

◆ R_FontCleanCache()

void R_FontCleanCache ( void  )

Clears font cache and frees memory associated with the cache.

Definition at line 121 of file r_font.cpp.

References chunkCache, hash, i, numChunks, numWraps, OBJZERO, R_CheckError, and wrapCache.

Referenced by R_FontMakeChunks(), R_FontShutdown(), R_FontWrapText(), and R_ReinitOpenglContext().

◆ R_FontListCache_f()

void R_FontListCache_f ( void  )

Console command binding to show the font cache.

Definition at line 228 of file r_font.cpp.

References Com_Printf(), i, MAX_CHUNK_CACHE, MAX_WRAP_CACHE, wrapCache_t::next, numChunks, numWraps, wrapCache_t::text, and wrapCache.

◆ R_GetFont()

font_t * R_GetFont ( const char *  name)

Searches the array of available fonts (see fonts.ufo)

Definition at line 210 of file r_font.cpp.

References Com_Error(), Com_Printf(), ERR_FATAL, fonts, i, name, numFonts, and Q_streq.

Referenced by R_FontDrawString(), R_FontTextSize(), and UI_FontGetHeight().