Akihiro Sagawa sagawa.aki@gmail.com writes:
@@ -5866,10 +5867,22 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format, return GDI_ERROR; }
- if (!font->orientation) {
TEXTMETRICW tm;
double advance = (ft_face->glyph->metrics.horiAdvance + 63) >> 6;
get_text_metrics(incoming_font, &tm);
if (!(tm.tmPitchAndFamily & TMPF_FIXED_PITCH) &&
(tm.tmAveCharWidth * 2) != (INT)(advance * widthRatio) &&
(tm.tmAveCharWidth * 2) == (INT)((advance + 1.0) * widthRatio)) {
TRACE("add fullwidth character padding\n");
padding = 1 << 6;
}
- }
Is it really limited to orientation==0? A test case with a different orientation would be useful.