Akihiro Sagawa sagawa.aki@gmail.com writes:
@@ -6519,11 +6519,17 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format, }
lpgm->gmBlackBoxX = (right - left) >> 6;
- if (lpgm->gmBlackBoxX == 0)
lpgm->gmBlackBoxY = (top - bottom) >> 6;lpgm->gmBlackBoxX = 1;
- if (lpgm->gmBlackBoxY == 0)
lpgm->gmptGlyphOrigin.x = origin_x >> 6; lpgm->gmptGlyphOrigin.y = origin_y >> 6; abc->abcA = left >> 6; abc->abcB = (right - left) >> 6;lpgm->gmBlackBoxY = 1;
- if (abc->abcB == 0)
abc->abcC = adv - abc->abcA - abc->abcB;abc->abcB = 1;
It would be a good idea to add tests for the ABC metrics too.