22 #ifndef SCUMM_SMUSH_MULTI_FONT_H 23 #define SCUMM_SMUSH_MULTI_FONT_H 25 #include "common/scummsys.h" 26 #include "scumm/nut_renderer.h" 27 #include "scumm/scumm.h" 28 #include "scumm/smush/rebel/font_rebel2.h" 29 #include "scumm/string_v7.h" 49 static const int MAX_FONTS = 5;
55 void drawString(
const char *str, byte *buffer,
Common::Rect &clipRect,
int x,
int y, int16 col, TextStyleFlags flags);
56 void drawString(
const char *str, byte *buffer,
Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, TextStyleFlags flags);
57 void drawStringWrap(
const char *str, byte *buffer,
Common::Rect &clipRect,
int x,
int y, int16 col, TextStyleFlags flags);
60 int draw2byte(byte *buffer,
Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, uint16 chr)
override;
61 int drawCharV7(byte *buffer,
Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, TextStyleFlags flags, byte chr)
override;
62 int getCharWidth(uint16 chr)
const override;
63 int getCharHeight(uint16 chr)
const override;
64 int getFontHeight()
const override;
65 int setFont(
int id)
override;
66 bool newStyleWrapping()
const override {
return true; }
69 void setDefaultFont(
int id) { _defaultFont = id; _currentFont = id; }
72 NutRenderer *getFont(
int id);
73 NutRenderer *getCurrentFont()
const;
78 TextRenderer_v7 *_textRenderer;
79 NutRenderer *_rebel2Fonts[Rebel2FontSet::kMaxFonts];
83 bool _hardcodedFontColors;
Definition: smush_multi_font.h:47
Definition: font_rebel2.h:35