22 #ifndef AGS_SHARED_FONT_TTF_FONT_RENDERER_H 23 #define AGS_SHARED_FONT_TTF_FONT_RENDERER_H 25 #include "common/std/map.h" 26 #include "ags/shared/font/ags_font_renderer.h" 27 #include "ags/shared/util/string.h" 38 bool LoadFromDisk(
int fontNumber,
int fontSize)
override;
39 void FreeMemory(
int fontNumber)
override;
40 bool SupportsExtendedCharacters(
int )
override {
43 int GetTextWidth(
const char *text,
int fontNumber)
override;
44 int GetTextHeight(
const char *text,
int fontNumber)
override;
45 void RenderText(
const char *text,
int fontNumber,
BITMAP *destination,
int x,
int y,
int colour)
override;
46 void AdjustYCoordinateForFont(
int *ycoord,
int fontNumber)
override;
47 void EnsureTextValidForFont(
char *text,
int fontNumber)
override;
50 int GetVersion()
override {
return 26; }
51 const char *GetRendererName()
override {
return "TTFFontRenderer"; }
52 const char *GetFontName(
int fontNumber)
override;
53 int GetFontHeight(
int fontNumber)
override;
54 int GetLineSpacing(
int fontNumber)
override {
return 0; }
57 bool IsBitmapFont()
override;
60 void GetFontMetrics(
int fontNumber,
FontMetrics *metrics)
override;
61 void AdjustFontForAntiAlias(
int fontNumber,
bool aa_mode)
override;
Definition: ags_font_renderer.h:75
Definition: ags_font_renderer.h:107
Definition: ttf_font_renderer.h:33
Definition: ags_font_renderer.h:82