diff options
author | Paul Gilbert | 2018-11-08 21:41:58 -0800 |
---|---|---|
committer | Paul Gilbert | 2018-12-08 19:05:59 -0800 |
commit | 65167bd202f20e345bc9cdb2f0fe36c5abe28fe3 (patch) | |
tree | a6173d184548b27cc4d9d894a5ec682c5db9b7c9 /engines/gargoyle/fonts.h | |
parent | 596a36aef02e3bdd41f15c1b2f142acbd49f50f0 (diff) | |
download | scummvm-rg350-65167bd202f20e345bc9cdb2f0fe36c5abe28fe3.tar.gz scummvm-rg350-65167bd202f20e345bc9cdb2f0fe36c5abe28fe3.tar.bz2 scummvm-rg350-65167bd202f20e345bc9cdb2f0fe36c5abe28fe3.zip |
GLK: Added a fonts.dat Zip archive containing the fonts
Diffstat (limited to 'engines/gargoyle/fonts.h')
-rw-r--r-- | engines/gargoyle/fonts.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/engines/gargoyle/fonts.h b/engines/gargoyle/fonts.h index dc0bfd887d..2f2cb4145c 100644 --- a/engines/gargoyle/fonts.h +++ b/engines/gargoyle/fonts.h @@ -25,6 +25,9 @@ #include "gargoyle/glk_types.h" #include "gargoyle/utils.h" +#include "common/archive.h" +#include "common/array.h" +#include "common/file.h" #include "common/str.h" #include "common/ustr.h" #include "graphics/font.h" @@ -37,12 +40,24 @@ enum FACES { MONOR, MONOB, MONOI, MONOZ, PROPR, PROPB, PROPI, PROPZ }; enum TYPES { MONOF, PROPF }; enum STYLES { FONTR, FONTB, FONTI, FONTZ }; +/** + * Fonts manager + */ class Fonts { private: Graphics::ManagedSurface *_surface; - Graphics::Font *_fontTable[FONTS_TOTAL]; + const Graphics::Font *_fontTable[FONTS_TOTAL]; + bool _fontsMissing; private: - Graphics::Font *loadFont(FACES face, double size, double aspect, int style); + /** + * Load all the fonts + */ + bool loadFonts(); + + /** + * Load a single font + */ + const Graphics::Font *loadFont(FACES face, Common::Archive *archive, double size, double aspect, int style); public: /** * Get the index/id of a font by name |