diff options
author | Eugene Sandulenko | 2016-10-06 07:44:18 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-06 07:44:18 +0200 |
commit | 9730e42fac5b7d0fd70939cddb6888a508f8056e (patch) | |
tree | 66e886e5549436666b88e7f2d8d2dde228a7444b /graphics/fonts/bdf.h | |
parent | 0d4d5459f27abaac7d41288583acc80b2a5ad9fb (diff) | |
download | scummvm-rg350-9730e42fac5b7d0fd70939cddb6888a508f8056e.tar.gz scummvm-rg350-9730e42fac5b7d0fd70939cddb6888a508f8056e.tar.bz2 scummvm-rg350-9730e42fac5b7d0fd70939cddb6888a508f8056e.zip |
GRAPHICS: Parse font size from BDF fonts
Diffstat (limited to 'graphics/fonts/bdf.h')
-rw-r--r-- | graphics/fonts/bdf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/fonts/bdf.h b/graphics/fonts/bdf.h index 140b1f7f4e..bc1ced9599 100644 --- a/graphics/fonts/bdf.h +++ b/graphics/fonts/bdf.h @@ -44,6 +44,7 @@ struct BdfFontData { int maxAdvance; int height; + int size; BdfBoundingBox defaultBox; int ascent; @@ -68,6 +69,7 @@ public: virtual void drawChar(Surface *dst, uint32 chr, int x, int y, uint32 color) const; const char *getFamilyName() const; + int getFontSize() const; static BdfFont *loadFont(Common::SeekableReadStream &stream); static bool cacheFontData(const BdfFont &font, const Common::String &filename); |