- 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
This commit is contained in:
Jérôme Gardou 2014-08-25 09:57:27 +00:00
parent f2b046c263
commit c8374ba758

View 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)));