From 9730e42fac5b7d0fd70939cddb6888a508f8056e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 6 Oct 2016 07:44:18 +0200 Subject: GRAPHICS: Parse font size from BDF fonts --- graphics/fonts/bdf.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'graphics/fonts/bdf.h') 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); -- cgit v1.2.3