[WIN32K]
authorJérôme Gardou <jerome.gardou@reactos.org>
Mon, 25 Aug 2014 09:57:27 +0000 (09:57 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Mon, 25 Aug 2014 09:57:27 +0000 (09:57 +0000)
 - Addendum to r63933: Pass absolute value of the font width to freetype.
CORE-4657 Somehow got lost in the number of attached files.
Spotted by Thomas Faber

svn path=/trunk/; revision=63946

reactos/win32ss/gdi/ntgdi/freetype.c

index 17d7bcf..3d40e57 100644 (file)
@@ -1601,7 +1601,7 @@ ftGdiGetGlyphOutline(
     }
 
     FT_Set_Pixel_Sizes(ft_face,
-                       TextObj->logfont.elfEnumLogfontEx.elfLogFont.lfWidth,
+                       abs(TextObj->logfont.elfEnumLogfontEx.elfLogFont.lfWidth),
     /* FIXME: Should set character height if neg */
                        (TextObj->logfont.elfEnumLogfontEx.elfLogFont.lfHeight == 0 ?
                         dc->ppdev->devinfo.lfDefaultFont.lfHeight : abs(TextObj->logfont.elfEnumLogfontEx.elfLogFont.lfHeight)));