22 #ifndef AGS_PLUGINS_AGS_SPRITE_FONT_VAR_WIDTH_SPR_FONT_H 23 #define AGS_PLUGINS_AGS_SPRITE_FONT_VAR_WIDTH_SPR_FONT_H 25 #include "ags/plugins/plugin_base.h" 26 #include "ags/plugins/ags_plugin.h" 27 #include "ags/plugins/ags_sprite_font/variable_width_font.h" 31 namespace AGSSpriteFont {
39 void Draw(
BITMAP *src,
BITMAP *dest,
int destx,
int desty,
int srcx,
int srcy,
int width,
int height,
int colour);
44 void SetGlyph(
int fontNum,
int charNum,
int x,
int y,
int width,
int height);
45 void SetSprite(
int fontNum,
int spriteNum);
46 void SetSpacing(
int fontNum,
int spacing);
48 void SetLineHeightAdjust(
int fontNum,
int LineHeight,
int SpacingHeight,
int SpacingOverride);
51 bool LoadFromDisk(
int fontNumber,
int fontSize)
override {
55 void FreeMemory(
int fontNumber)
override;
56 bool SupportsExtendedCharacters(
int fontNumber)
override;
57 int GetTextWidth(
const char *text,
int fontNumber)
override;
58 int GetTextHeight(
const char *text,
int fontNumber)
override;
59 void RenderText(
const char *text,
int fontNumber,
BITMAP *destination,
int x,
int y,
int colour)
override;
60 void AdjustYCoordinateForFont(
int *ycoord,
int fontNumber)
override { }
61 void EnsureTextValidForFont(
char *text,
int fontNumber)
override;
64 int GetVersion()
override {
return 26; }
65 const char *GetRendererName()
override {
return "VariableWidthSpriteFontRenderer"; }
66 const char *GetFontName(
int fontNumber)
override {
return ""; }
67 int GetFontHeight(
int fontNumber)
override;
68 int GetLineSpacing(
int fontNumber)
override;
Definition: ags_font_renderer.h:47
Definition: ags_plugin.h:328
Definition: variable_width_font.h:33
Definition: variable_width_sprite_font.h:33