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:
Troy Rollo 2005-01-24 19:00:10 +00:00 committed by Alexandre Julliard
parent aee4f25ed6
commit f679490990

View File

@ -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) ||