44#define AF_DEFAULT (AF_TOP | AF_LEFT)
116void Font_DrawField(vector vecOrigin, vector vecSize,
string strText,
font_s fnt, alignflags_t iAlignFlags);
int Font_GetHeight(font_s fnt)
Returns the height of a specified font in pixels.
Definition font.qc:252
void Font_Load(string strFile, font_s &fntNew)
Load a desired .font definition into memory.
Definition font.qc:24
void Font_DrawField(vector vecOrigin, vector vecSize, string strText, font_s fnt, alignflags_t iAlignFlags)
Draws a textfield with line wrapping.
Definition font.qc:213
void Font_DrawRText_A(vector vecOrigin, string strText, float a, font_s fnt)
Right-aligned variant of Font_DrawText_A.
Definition font.qc:192
void Font_DrawText_RGBA(vector vecOrigin, string strText, vector col, float a, font_s fnt)
Draw tinted and alpha blended text on the screen at the desired position with a desired font.
Definition font.qc:177
void Font_DrawRText_RGBA(vector vecOrigin, string strText, vector col, float a, font_s fnt)
Right-aligned variant of Font_DrawText_RGBA.
Definition font.qc:206
void Font_DrawText_RGB(vector vecOrigin, string strText, vector col, font_s fnt)
Draw tinted text on the screen at the desired position with a desired font.
Definition font.qc:169
void Font_DrawRText(vector vecOrigin, string strText, font_s fnt)
Right-aligned variant of Font_DrawText.
Definition font.qc:185
void Font_DrawText(vector vecOrigin, string strText, font_s fnt)
Draw text on the screen at the desired position with a desired font.
Definition font.qc:153
float Font_StringWidth(string strText, bool hasColor, font_s fnt)
Returns the width of a series of characters in pixels.
Definition font.qc:258
void Font_DrawText_A(vector vecOrigin, string strText, float a, font_s fnt)
Draw alpha-blended text on the screen at the desired position with a desired font.
Definition font.qc:161
void Font_DrawFieldAtHeight(vector vecOrigin, vector vecSize, int iTextHeight, string strText, font_s fnt, alignflags_t iAlignFlags)
Draws a textfield with line wrapping at a custom text height.
Definition font.qc:224
string Font_RGBtoHex(vector vecColor)
Converts a normalized RGB color vector to a hex color string.
Definition font.qc:235
void Font_DrawRText_RGB(vector vecOrigin, string strText, vector col, font_s fnt)
Right-aligned variant of Font_DrawText_RGB.
Definition font.qc:199
float Font_GetID(font_s fnt)
Get the internal font id.
Definition font.qc:18
Representation of a font.
Definition api_func.h:39