22 #ifndef AGS_SHARED_FONT_AGS_FONT_RENDERER_H 23 #define AGS_SHARED_FONT_AGS_FONT_RENDERER_H 25 #include "common/std/utility.h" 26 #include "ags/shared/core/types.h" 27 #include "ags/shared/util/string.h" 35 virtual bool LoadFromDisk(
int fontNumber,
int fontSize) = 0;
36 virtual void FreeMemory(
int fontNumber) = 0;
37 virtual bool SupportsExtendedCharacters(
int fontNumber) = 0;
38 virtual int GetTextWidth(
const char *text,
int fontNumber) = 0;
40 virtual int GetTextHeight(
const char *text,
int fontNumber) = 0;
41 virtual void RenderText(
const char *text,
int fontNumber,
BITMAP *destination,
int x,
int y,
int colour) = 0;
42 virtual void AdjustYCoordinateForFont(
int *ycoord,
int fontNumber) = 0;
43 virtual void EnsureTextValidForFont(
char *text,
int fontNumber) = 0;
55 virtual int GetVersion() = 0;
58 virtual const char *GetRendererName() = 0;
60 virtual const char *GetFontName(
int fontNumber) = 0;
63 virtual int GetFontHeight(
int fontNumber) = 0;
67 virtual int GetLineSpacing(
int fontNumber) = 0;
77 int SizeMultiplier = 1;
87 int NominalHeight = 0;
102 inline int ExtentHeight()
const {
return VExtent.second - VExtent.first; }
110 virtual bool IsBitmapFont() = 0;
112 virtual bool LoadFromDiskEx(
int fontNumber,
int fontSize,
AGS::Shared::String *src_filename,
115 virtual void GetFontMetrics(
int fontNumber,
FontMetrics *metrics) = 0;
117 virtual void AdjustFontForAntiAlias(
int fontNumber,
bool aa_mode) = 0;
Definition: ags_font_renderer.h:75
Definition: ags_font_renderer.h:107
Definition: ags_font_renderer.h:51
Definition: ags_font_renderer.h:82
Definition: ags_font_renderer.h:33