mirror of
https://github.com/reactos/wine.git
synced 2025-02-02 18:25:19 +00:00
Don't refuse to process VDMX ratio entries with bCharSet == 0. These
entries are at least as useful as those with bCharSet == 1. Add comment containing URL of documentation for VDMX records.
This commit is contained in:
parent
aee4f25ed6
commit
f679490990
@ -1425,6 +1425,10 @@ static LONG load_VDMX(GdiFont font, LONG height)
|
||||
LONG ppem = 0;
|
||||
int i;
|
||||
|
||||
/* For documentation on VDMX records, see
|
||||
* http://www.microsoft.com/OpenType/OTSpec/vdmx.htm
|
||||
*/
|
||||
|
||||
result = WineEngGetFontData(font, MS_VDMX_TAG, 0, hdr, 6);
|
||||
|
||||
if(result == GDI_ERROR) /* no vdmx table present, use linear scaling */
|
||||
@ -1447,9 +1451,6 @@ static LONG load_VDMX(GdiFont font, LONG height)
|
||||
|
||||
TRACE("Ratios[%d] %d %d : %d -> %d\n", i, ratio.bCharSet, ratio.xRatio, ratio.yStartRatio, ratio.yEndRatio);
|
||||
|
||||
if(ratio.bCharSet != 1)
|
||||
continue;
|
||||
|
||||
if((ratio.xRatio == 0 &&
|
||||
ratio.yStartRatio == 0 &&
|
||||
ratio.yEndRatio == 0) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user