GRAPHICS: New method hasGlyphForBig5Char in big5font

This commit is contained in:
Vladimir Serbinenko 2023-03-21 12:20:31 +01:00 committed by Eugene Sandulenko
parent bc80106e04
commit 95bbb7c3d5

View File

@ -36,6 +36,7 @@ public:
void loadPrefixedRaw(Common::ReadStream &input, int height);
bool drawBig5Char(byte *dest, uint16 ch, int maxX, int maxY, uint32 destPitch, byte color, byte outlineColor, bool outline = true, int bpp = 8) const;
bool drawBig5Char(Graphics::Surface *surf, uint16 ch, const Common::Point &pt, uint32 color, byte outlineColor = 0, bool outline = false) const;
bool hasGlyphForBig5Char(uint16 textChar) const { return (textChar & 0x8000) && _chineseTraditionalIndex[textChar & 0x7fff] >= 0; }
int getFontHeight() const { return _chineseTraditionalHeight; }