- 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
This commit is contained in:
Johannes Schickel 2006-04-16 19:54:39 +00:00
parent 74edd90aba
commit e9cbf5fcbd
5 changed files with 191 additions and 30 deletions

View file

@ -364,6 +364,7 @@ private:
void setupFonts();
void deleteFonts();
const Graphics::Font *loadFont(const char *filename);
Common::String genCacheFilename(const char *filename);
const Graphics::Font *_fonts[kFontStyleMax];
public: