22 #ifndef GRAPHICS_BIG5_H 23 #define GRAPHICS_BIG5_H 25 #include "common/array.h" 26 #include "common/rect.h" 27 #include "common/stream.h" 28 #include "graphics/surface.h" 37 bool drawBig5Char(byte *dest, uint16 ch,
int maxX,
int maxY, uint32 destPitch, byte color, byte outlineColor,
bool outline =
true,
int bpp = 1)
const;
39 bool hasGlyphForBig5Char(uint16 textChar)
const {
return (textChar & 0x8000) && _chineseTraditionalIndex[textChar & 0x7fff] >= 0; }
41 int getFontHeight()
const {
return _chineseTraditionalHeight; }
43 static const int kChineseTraditionalWidth = 16;
45 static const int kChineseTraditionalMaxHeight = 16;
46 struct ChineseTraditionalGlyph {
47 byte bitmap[kChineseTraditionalMaxHeight][kChineseTraditionalWidth / 8];
48 byte outline[kChineseTraditionalMaxHeight][kChineseTraditionalWidth / 8];
50 void makeOutline(
int height);
53 template <
class T>
bool drawReal(byte *dest, uint16 textChar,
int maxX,
int maxY, uint32 destPitch, byte color, byte outlineColor,
bool outline)
const;
57 int _chineseTraditionalHeight;
Definition: formatinfo.h:28