Skip to content
Snippets Groups Projects
Commit fe13d6a0 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard
Browse files

Make sure that the font ppem is always positive. Thanks to gslink.

parent 9fd0183c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment