From: Tarcísio Ladeia de Oliveirawyrquill@gmail.com
This follows behavior observed in tests where ppem == 0. As a consequence, tmMaxCharWidth can also be 0. --- dlls/win32u/freetype.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/dlls/win32u/freetype.c b/dlls/win32u/freetype.c index 26ab8e11cf7..21a036f2599 100644 --- a/dlls/win32u/freetype.c +++ b/dlls/win32u/freetype.c @@ -3757,9 +3757,6 @@ static BOOL freetype_set_outline_text_metrics( struct gdi_font *font ) (pHori->Ascender - pHori->Descender))));
TM.tmAveCharWidth = SCALE_X(pOS2->xAvgCharWidth); - if (TM.tmAveCharWidth == 0) { - TM.tmAveCharWidth = 1; - } TM.tmMaxCharWidth = SCALE_X(ft_face->bbox.xMax - ft_face->bbox.xMin); TM.tmWeight = FW_REGULAR; if (font->fake_bold)