22 #ifndef SCUMM_SMUSH_REBEL_FONT_REBEL2_H 23 #define SCUMM_SMUSH_REBEL_FONT_REBEL2_H 25 #include "common/scummsys.h" 26 #include "common/rect.h" 28 #include "scumm/charset_v7.h" 40 NutRenderer *fonts[kMaxFonts];
46 NutRenderer *getFont(
int id)
const;
49 NutRenderer *makeRebel2Font(
ScummEngine *vm,
const char *filename);
50 NutRenderer *makeRebel2SpriteFromData(
ScummEngine *vm,
const byte *data, int32 dataSize);
51 bool drawRebel2Codec23Sprite(NutRenderer *sprite, byte *buffer,
int pitch,
int width,
int height,
52 const Common::Rect &clipRect,
int x,
int y,
int spriteIdx,
int scale);
53 bool drawRebel2Codec45Sprite(NutRenderer *sprite, byte *buffer,
int pitch,
int width,
int height,
54 const Common::Rect &clipRect,
int x,
int y,
int spriteIdx,
int scale);
55 uint16 decodeRebel2Char(
const char *str, uint len, uint &charLen,
bool useCJK);
56 int drawRebel2Char(NutRenderer *font, byte *buffer,
Common::Rect &clipRect,
int x,
int y,
57 int pitch, int16 col, uint16 chr);
58 int getRebel2StringWidth(
const Rebel2FontSet &fontSet,
const char *str, uint len);
59 int getRebel2StringHeight(
const Rebel2FontSet &fontSet,
const char *str, uint len);
60 void drawRebel2String(
const Rebel2FontSet &fontSet,
const char *str, uint len, byte *buffer,
61 Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, TextStyleFlags flags);
62 void drawRebel2StringWrap(
const Rebel2FontSet &fontSet,
const char *str, uint len, byte *buffer,
63 Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, TextStyleFlags flags);
Definition: font_rebel2.h:35