Fixed font metric rounding error.

This commit is contained in:
Ian Pilcher 2001-05-31 21:34:17 +00:00 committed by Alexandre Julliard
parent b412b3ccbe
commit afdeba82ae
1 changed files with 1 additions and 1 deletions

View File

@ -824,7 +824,7 @@ static VOID CalcWindowsMetrics()
wm.usUnitsPerEm = 1000; /* for PostScript fonts */
wm.sTypoAscender = (SHORT)(afm->Ascender + 0.5);
wm.sTypoDescender = (SHORT)(afm->Descender + 0.5);
wm.sTypoDescender = (SHORT)(afm->Descender - 0.5);
wm.sTypoLineGap = 1200 - (wm.sTypoAscender - wm.sTypoDescender);
if (wm.sTypoLineGap < 0)