Fix a typo in font loading.

This commit is contained in:
Unknown W. Brackets 2015-02-01 01:20:28 -08:00
parent deb2f838d0
commit 32573ce121

View File

@ -494,7 +494,7 @@ bool PGF::ReadCharGlyph(const u8 *fontdata, size_t charPtr, Glyph &glyph) {
{
int yAdjustIndex = consumeBits(8, fontdata, charPtr);
if (yAdjustIndex < header.xAdjustTableLength) {
if (yAdjustIndex < header.yAdjustTableLength) {
glyph.yAdjustH = yAdjustTable[0][yAdjustIndex];
glyph.yAdjustV = yAdjustTable[1][yAdjustIndex];
}