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

This reverts commit 7d3cb53cf1.
This commit is contained in:
Huw Davies 2013-08-28 14:21:11 +01:00 committed by Alexandre Julliard
parent 18edb16ace
commit bb5aa8862c
1 changed files with 19 additions and 0 deletions

View File

@ -4577,6 +4577,25 @@ static LONG load_VDMX(GdiFont *font, LONG height)
ppem = 0;
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:
HeapFree(GetProcessHeap(), 0, vTable);