22 #ifndef AGS_SHARED_FONT_AGS_FONT_RENDERER_H 23 #define AGS_SHARED_FONT_AGS_FONT_RENDERER_H 31 virtual bool LoadFromDisk(
int fontNumber,
int fontSize) = 0;
32 virtual void FreeMemory(
int fontNumber) = 0;
33 virtual bool SupportsExtendedCharacters(
int fontNumber) = 0;
34 virtual int GetTextWidth(
const char *text,
int fontNumber) = 0;
36 virtual int GetTextHeight(
const char *text,
int fontNumber) = 0;
37 virtual void RenderText(
const char *text,
int fontNumber,
BITMAP *destination,
int x,
int y,
int colour) = 0;
38 virtual void AdjustYCoordinateForFont(
int *ycoord,
int fontNumber) = 0;
39 virtual void EnsureTextValidForFont(
char *text,
int fontNumber) = 0;
51 virtual int GetVersion() = 0;
54 virtual const char *GetRendererName() = 0;
56 virtual const char *GetFontName(
int fontNumber) = 0;
59 virtual int GetFontHeight(
int fontNumber) = 0;
63 virtual int GetLineSpacing(
int fontNumber) = 0;
73 int SizeMultiplier = 1;
89 virtual bool IsBitmapFont() = 0;
91 virtual bool LoadFromDiskEx(
int fontNumber,
int fontSize,
const FontRenderParams *params,
94 virtual void GetFontMetrics(
int fontNumber,
FontMetrics *metrics) = 0;
96 virtual void AdjustFontForAntiAlias(
int fontNumber,
bool aa_mode) = 0;
Definition: ags_font_renderer.h:71
Definition: ags_font_renderer.h:86
Definition: ags_font_renderer.h:47
Definition: ags_font_renderer.h:78
Definition: ags_font_renderer.h:29