Commit 65dbecbb authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

sfnt2fnt: Take into account external leading when calculating the font point size.

This makes the dfPoints field of the Japanese System font match the Windows one.
parent bee36fe8
......@@ -414,7 +414,7 @@ static struct fontinfo *fill_fontinfo( const char *face_name, int ppem, int enc,
info->dfCharTable[i].offset = start + (width_bytes * ppem);
info->hdr.fi.dfType = 0;
info->hdr.fi.dfPoints = ((ppem - il) * 72 + dpi/2) / dpi;
info->hdr.fi.dfPoints = ((ppem - il - el) * 72 + dpi/2) / dpi;
info->hdr.fi.dfVertRes = dpi;
info->hdr.fi.dfHorizRes = dpi;
info->hdr.fi.dfAscent = ascent;
......
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