aboutsummaryrefslogtreecommitdiff
path: root/graphics/font.h
diff options
context:
space:
mode:
authorJohannes Schickel2006-04-16 19:54:39 +0000
committerJohannes Schickel2006-04-16 19:54:39 +0000
commite9cbf5fcbd1af19d1936593d1de736c0e0e91f89 (patch)
treedb05f01ba83a3fc96dabb366f73cf53e2f7ff604 /graphics/font.h
parent74edd90aba15db1196b16b5eae918347670d11c8 (diff)
downloadscummvm-rg350-e9cbf5fcbd1af19d1936593d1de736c0e0e91f89.tar.gz
scummvm-rg350-e9cbf5fcbd1af19d1936593d1de736c0e0e91f89.tar.bz2
scummvm-rg350-e9cbf5fcbd1af19d1936593d1de736c0e0e91f89.zip
- Moves Graphics::loadFont to Graphics::NewFont::loadFont
- adds code for caching of fonts (just for Graphics::NewFont) - implements cache using in the modern theme for custom fonts - adds cache file for current normal font in the theme zip file svn-id: r21952
Diffstat (limited to 'graphics/font.h')
-rw-r--r--graphics/font.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/graphics/font.h b/graphics/font.h
index 66a8e84222..5e8db40610 100644
--- a/graphics/font.h
+++ b/graphics/font.h
@@ -123,10 +123,11 @@ public:
virtual int getCharWidth(byte chr) const;
virtual void drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const;
-};
-NewFont *loadFont(Common::SeekableReadStream &stream);
-NewFont *loadFont(const byte *src, uint32 size);
+ static NewFont *loadFont(Common::SeekableReadStream &stream);
+ static bool cacheFontData(const NewFont &font, const Common::String &filename);
+ static NewFont *loadFromCache(Common::SeekableReadStream &stream);
+};
#if (defined(PALMOS_ARM) || defined(PALMOS_DEBUG) || defined(__GP32__))
# define DEFINE_FONT(n) \