From 550cff84f81f016a2b54700e170b4cd9712793f3 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 23 Feb 2011 13:52:12 -0500 Subject: GRAPHICS: Add support for PE FON files This hopefully will work out of the box, but requires testing --- graphics/fonts/winfont.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'graphics/fonts/winfont.h') diff --git a/graphics/fonts/winfont.h b/graphics/fonts/winfont.h index b23455e2d5..fbe4a778e2 100644 --- a/graphics/fonts/winfont.h +++ b/graphics/fonts/winfont.h @@ -69,6 +69,10 @@ public: void drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const; private: + bool loadFromPE(const Common::String &fileName, const WinFontDirEntry &dirEntry); + bool loadFromNE(const Common::String &fileName, const WinFontDirEntry &dirEntry); + + uint32 getFontIndex(Common::SeekableReadStream &stream, const WinFontDirEntry &dirEntry); bool loadFromFNT(Common::SeekableReadStream &stream); char indexToCharacter(uint16 index) const; uint16 characterToIndex(byte character) const; -- cgit v1.2.3