diff options
author | Eugene Sandulenko | 2016-10-05 23:24:53 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-05 23:24:53 +0200 |
commit | 15e499772032ae050627e1558904f119815ec51f (patch) | |
tree | 64c0a244ea14ec94a2f4789d8a4d85006d617167 /graphics/fonts/bdf.h | |
parent | 3f30e2dd06dbdf0d12849a9850a21e84b60f2b6c (diff) | |
download | scummvm-rg350-15e499772032ae050627e1558904f119815ec51f.tar.gz scummvm-rg350-15e499772032ae050627e1558904f119815ec51f.tar.bz2 scummvm-rg350-15e499772032ae050627e1558904f119815ec51f.zip |
GRAPHICS: Load Face Name from BDF files
Also adjust the devtools and built-in fonts accordingly.
Diffstat (limited to 'graphics/fonts/bdf.h')
-rw-r--r-- | graphics/fonts/bdf.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/fonts/bdf.h b/graphics/fonts/bdf.h index b91834785f..4e3295ca5f 100644 --- a/graphics/fonts/bdf.h +++ b/graphics/fonts/bdf.h @@ -40,6 +40,8 @@ struct BdfBoundingBox { }; struct BdfFontData { + const char *faceName; + int maxAdvance; int height; BdfBoundingBox defaultBox; @@ -65,6 +67,8 @@ public: virtual int getCharWidth(uint32 chr) const; virtual void drawChar(Surface *dst, uint32 chr, int x, int y, uint32 color) const; + const char *getFaceName() const; + static BdfFont *loadFont(Common::SeekableReadStream &stream); static bool cacheFontData(const BdfFont &font, const Common::String &filename); static BdfFont *loadFromCache(Common::SeekableReadStream &stream); |