GRAPHICS: Load Mac font heights too (still unused)

This commit is contained in:
Eugene Sandulenko 2017-07-28 14:33:57 +02:00
parent 2092c10d33
commit bfb757c3c0
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;
};