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"
38 static const int MAX_FONTS = 5;
43 void drawString(
const char *str,
byte *buffer,
Common::Rect &clipRect,
int x,
int y, int16 col, TextStyleFlags flags);
44 void drawString(
const char *str,
byte *buffer,
Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, TextStyleFlags flags);
45 void drawStringWrap(
const char *str,
byte *buffer,
Common::Rect &clipRect,
int x,
int y, int16 col, TextStyleFlags flags);
46 void drawStringWrap(
const char *str,
byte *buffer,
Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, TextStyleFlags flags);
48 int draw2byte(
byte *buffer,
Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, uint16 chr)
override;
49 int drawCharV7(
byte *buffer,
Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, TextStyleFlags flags,
byte chr)
override;
50 int getCharWidth(uint16 chr)
const override;
51 int getCharHeight(uint16 chr)
const override;
52 int getFontHeight()
const override;
53 int setFont(
int id)
override;
54 bool newStyleWrapping()
const override {
return true; }
56 void setDefaultFont(
int id) { _defaultFont = id; _currentFont = id; }
59 NutRenderer *getFont(
int id);
60 NutRenderer *getCurrentFont()
const;
65 TextRenderer_v7 *_textRenderer;
66 NutRenderer *_rebel2Fonts[Rebel2FontSet::kMaxFonts];
70 bool _hardcodedFontColors;
Definition: smush_multi_font.h:36
Definition: font_rebel2.h:35