Commit 945d98ba authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

GetCharABCWidths should fail for non-scalable fonts.

parent 10762860
...@@ -2968,6 +2968,9 @@ BOOL WineEngGetCharABCWidths(GdiFont font, UINT firstChar, UINT lastChar, ...@@ -2968,6 +2968,9 @@ BOOL WineEngGetCharABCWidths(GdiFont font, UINT firstChar, UINT lastChar,
TRACE("%p, %d, %d, %p\n", font, firstChar, lastChar, buffer); TRACE("%p, %d, %d, %p\n", font, firstChar, lastChar, buffer);
if(!FT_IS_SCALABLE(font->ft_face))
return FALSE;
for(c = firstChar; c <= lastChar; c++) { for(c = firstChar; c <= lastChar; c++) {
glyph_index = get_glyph_index(font, c); glyph_index = get_glyph_index(font, c);
WineEngGetGlyphOutline(font, glyph_index, GGO_METRICS | GGO_GLYPH_INDEX, WineEngGetGlyphOutline(font, glyph_index, GGO_METRICS | GGO_GLYPH_INDEX,
......
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