gdi32: Skip vdmx records with charset == 0.
This commit is contained in:
parent
d089ca67e3
commit
2f20032dd3
|
@ -4512,6 +4512,8 @@ 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);
|
TRACE("Ratios[%d] %d %d : %d -> %d\n", i, ratio.bCharSet, ratio.xRatio, ratio.yStartRatio, ratio.yEndRatio);
|
||||||
|
|
||||||
|
if (!ratio.bCharSet) continue;
|
||||||
|
|
||||||
if((ratio.xRatio == 0 &&
|
if((ratio.xRatio == 0 &&
|
||||||
ratio.yStartRatio == 0 &&
|
ratio.yStartRatio == 0 &&
|
||||||
ratio.yEndRatio == 0) ||
|
ratio.yEndRatio == 0) ||
|
||||||
|
@ -4526,10 +4528,7 @@ static LONG load_VDMX(GdiFont *font, LONG height)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(offset == -1) {
|
if(offset == -1) return 0;
|
||||||
FIXME("No suitable ratio found\n");
|
|
||||||
return ppem;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(get_font_data(font, MS_VDMX_TAG, offset, &group, 4) != GDI_ERROR) {
|
if(get_font_data(font, MS_VDMX_TAG, offset, &group, 4) != GDI_ERROR) {
|
||||||
USHORT recs;
|
USHORT recs;
|
||||||
|
|
Loading…
Reference in New Issue