aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts/winfont.h
diff options
context:
space:
mode:
authorMatthew Hoops2011-02-23 13:52:12 -0500
committerMatthew Hoops2011-02-23 14:43:18 -0500
commit550cff84f81f016a2b54700e170b4cd9712793f3 (patch)
treeee6626505e98311973574aea198c1245963ef12f /graphics/fonts/winfont.h
parente053373dd344b96e9c29128b97196b3d7f9d2e75 (diff)
downloadscummvm-rg350-550cff84f81f016a2b54700e170b4cd9712793f3.tar.gz
scummvm-rg350-550cff84f81f016a2b54700e170b4cd9712793f3.tar.bz2
scummvm-rg350-550cff84f81f016a2b54700e170b4cd9712793f3.zip
GRAPHICS: Add support for PE FON files
This hopefully will work out of the box, but requires testing
Diffstat (limited to 'graphics/fonts/winfont.h')
-rw-r--r--graphics/fonts/winfont.h4
1 files changed, 4 insertions, 0 deletions
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;