From c8374ba7581e2fe0573ac47788e9f6fee4cb6d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Mon, 25 Aug 2014 09:57:27 +0000 Subject: [PATCH] [WIN32K] - 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/win32ss/gdi/ntgdi/freetype.c b/reactos/win32ss/gdi/ntgdi/freetype.c index 17d7bcf5f20..3d40e57c5dc 100644 --- a/reactos/win32ss/gdi/ntgdi/freetype.c +++ b/reactos/win32ss/gdi/ntgdi/freetype.c @@ -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)));