From fe13d6a0a97765b19e1252a0ceed51dc757263e0 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Thu, 12 Feb 2004 20:04:48 +0000 Subject: [PATCH] Make sure that the font ppem is always positive. Thanks to gslink. --- dlls/wineps/download.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wineps/download.c b/dlls/wineps/download.c index 4cea3d798cb..c382c5acbb8 100644 --- a/dlls/wineps/download.c +++ b/dlls/wineps/download.c @@ -138,10 +138,10 @@ BOOL PSDRV_SelectDownloadFont(PSDRV_PDEVICE *physDev) physDev->font.fontloc = Download; physDev->font.fontinfo.Download = is_font_downloaded(physDev, ps_name); - physDev->font.size = PSDRV_YWStoDS(physDev, /* ppem */ + physDev->font.size = abs(PSDRV_YWStoDS(physDev, /* ppem */ potm->otmTextMetrics.tmAscent + potm->otmTextMetrics.tmDescent - - potm->otmTextMetrics.tmInternalLeading); + potm->otmTextMetrics.tmInternalLeading)); physDev->font.underlineThickness = potm->otmsUnderscoreSize; physDev->font.underlinePosition = potm->otmsUnderscorePosition; physDev->font.strikeoutThickness = potm->otmsStrikeoutSize; -- 2.11.4.GIT