Commit 7be29570 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Fix ppem in the case that there isn't an exact height match in the vdmx table.

parent 0c06ec1b
......@@ -2092,6 +2092,7 @@ static LONG load_VDMX(GdiFont font, LONG height)
}
font->yMax = GET_BE_WORD(vTable[(i * 3) + 1]);
font->yMin = GET_BE_WORD(vTable[(i * 3) + 2]);
ppem = GET_BE_WORD(vTable[i * 3]);
TRACE("ppem %ld found; height=%ld yMax=%d yMin=%d\n", ppem, height, font->yMax, font->yMin);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment