Commit bb5aa886 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

Revert "gdi32: Do not use VDMX for mapping of negative font heights, based on a test case.".

This reverts commit 7d3cb53c.
parent 18edb16a
...@@ -4577,6 +4577,25 @@ static LONG load_VDMX(GdiFont *font, LONG height) ...@@ -4577,6 +4577,25 @@ static LONG load_VDMX(GdiFont *font, LONG height)
ppem = 0; ppem = 0;
TRACE("ppem not found for height %d\n", height); TRACE("ppem not found for height %d\n", height);
} }
} else {
ppem = -height;
if(ppem < startsz || ppem > endsz)
goto end;
for(i = 0; i < recs; i++) {
USHORT yPelHeight;
yPelHeight = GET_BE_WORD(vTable[i * 3]);
if(yPelHeight > ppem)
break; /* failed */
if(yPelHeight == ppem) {
font->yMax = GET_BE_WORD(vTable[(i * 3) + 1]);
font->yMin = GET_BE_WORD(vTable[(i * 3) + 2]);
TRACE("ppem %d found; yMax=%d yMin=%d\n", ppem, font->yMax, font->yMin);
break;
}
}
} }
end: end:
HeapFree(GetProcessHeap(), 0, vTable); HeapFree(GetProcessHeap(), 0, vTable);
......
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