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;
49NutRenderer *makeRebel2Font(
ScummEngine *vm,
const char *filename);
50NutRenderer *makeRebel2SpriteFromData(
ScummEngine *vm,
const byte *data, int32 dataSize);
51bool drawRebel2Codec23Sprite(NutRenderer *sprite,
byte *buffer,
int pitch,
int width,
int height,
52 const Common::Rect &clipRect,
int x,
int y,
int spriteIdx,
int scale);
53bool drawRebel2Codec45Sprite(NutRenderer *sprite,
byte *buffer,
int pitch,
int width,
int height,
54 const Common::Rect &clipRect,
int x,
int y,
int spriteIdx,
int scale);
55uint16 decodeRebel2Char(
const char *str, uint len, uint &charLen,
bool useCJK);
56int drawRebel2Char(NutRenderer *font,
byte *buffer,
Common::Rect &clipRect,
int x,
int y,
57 int pitch, int16 col, uint16 chr);
58int getRebel2StringWidth(
const Rebel2FontSet &fontSet,
const char *str, uint len);
59int getRebel2StringHeight(
const Rebel2FontSet &fontSet,
const char *str, uint len);
60void 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);
62void 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