From bfb757c3c0d3e7b1281ae3059e31cd53742644ab Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 28 Jul 2017 14:33:57 +0200 Subject: GRAPHICS: Load Mac font heights too (still unused) --- graphics/fonts/macfont.cpp | 4 +--- graphics/fonts/macfont.h | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'graphics') diff --git a/graphics/fonts/macfont.cpp b/graphics/fonts/macfont.cpp index 9ddb5a6c71..80c1dc4435 100644 --- a/graphics/fonts/macfont.cpp +++ b/graphics/fonts/macfont.cpp @@ -328,10 +328,8 @@ bool MacFONTFont::loadFont(Common::SeekableReadStream &stream, MacFontFamily *fa } if (_data._fontType & kFontTypeImageHeightTable) { - warning("Skipping image height table"); - for (uint16 i = 0; i < glyphCount; i++) - stream.readUint16BE(); + _data._glyphs[i].height = stream.readUint16BE(); } free(bitmapOffsets); diff --git a/graphics/fonts/macfont.h b/graphics/fonts/macfont.h index 874d304337..b2e1fb0d11 100644 --- a/graphics/fonts/macfont.h +++ b/graphics/fonts/macfont.h @@ -102,12 +102,14 @@ struct MacGlyph { void clear() { bitmapOffset = 0; width = 0; + height = 0; bitmapWidth = 0; kerningOffset = 0; } uint16 bitmapOffset; byte width; + uint16 height; uint16 bitmapWidth; int kerningOffset; }; -- cgit v1.2.3