22 #ifndef AGS_SHARED_FONT_WFN_FONT_RENDERER_H 23 #define AGS_SHARED_FONT_WFN_FONT_RENDERER_H 25 #include "common/std/map.h" 26 #include "ags/lib/std.h" 27 #include "ags/shared/font/ags_font_renderer.h" 38 bool LoadFromDisk(
int fontNumber,
int fontSize)
override;
39 void FreeMemory(
int fontNumber)
override;
40 bool SupportsExtendedCharacters(
int fontNumber)
override;
41 int GetTextWidth(
const char *text,
int fontNumber)
override;
42 int GetTextHeight(
const char *text,
int fontNumber)
override;
43 void RenderText(
const char *text,
int fontNumber,
BITMAP *destination,
int x,
int y,
int colour)
override;
44 void AdjustYCoordinateForFont(
int *ycoord,
int fontNumber)
override;
45 void EnsureTextValidForFont(
char *text,
int fontNumber)
override;
48 int GetVersion()
override {
return 26; }
49 const char *GetRendererName()
override {
return "WFNFontRenderer"; }
50 const char *GetFontName(
int )
override {
return ""; }
51 int GetFontHeight(
int fontNumber)
override {
return 0; }
52 int GetLineSpacing(
int fontNumber)
override {
return 0; }
55 bool IsBitmapFont()
override;
59 void AdjustFontForAntiAlias(
int ,
bool )
override { }
Definition: ags_font_renderer.h:75
Definition: ags_font_renderer.h:107
Definition: ags_font_renderer.h:82
Definition: wfn_font_renderer.h:33
Definition: wfn_font.h:86