GetCharABCWidths should fail for non-scalable fonts.

This commit is contained in:
Huw Davies 2004-08-09 23:38:10 +00:00 committed by Alexandre Julliard
parent 1076286020
commit 945d98ba26
1 changed files with 3 additions and 0 deletions

View File

@ -2968,6 +2968,9 @@ BOOL WineEngGetCharABCWidths(GdiFont font, UINT firstChar, UINT lastChar,
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++) {
glyph_index = get_glyph_index(font, c);
WineEngGetGlyphOutline(font, glyph_index, GGO_METRICS | GGO_GLYPH_INDEX,