Commit afdeba82 authored by Ian Pilcher's avatar Ian Pilcher Committed by Alexandre Julliard

Fixed font metric rounding error.

parent b412b3cc
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment