Created attachment 426856 [details]
Screenshot of a postscript of the MathML torture test
When printing MathML documents, the bars <mfrac/> and <msqrt/> are too thick. I attach a screenshot showing the problem.
I've just tried to display variables of
So the only workaround I've found for now is to fall-back to the former version if aRuleThickness >= xHeight / 3.
Does using CAIRO_HINT_METRICS_OFF here help?
Maybe we should only use CAIRO_HINT_METRICS_ON when hint_style != CAIRO_HINT_STYLE_NONE.
But glyph positions are still snapped to pixels when they are drawn, so it actually makes sense (for ordinary text at least) to have their advances snapped to pixels (which CAIRO_HINT_METRICS_ON will do).
If CAIRO_HINT_METRICS_OFF gives better results, this could be used only in the TIGHT_HINTED_OUTLINE_EXTENTS case for GetBoundingMetrics by passing an argument to gfxFcFont::GetOrMakeFont() from a new gfxFcFont::Measure() method.
> Does using CAIRO_HINT_METRICS_OFF here help?
Yes, the torture test is printed correctly.
Compared to comment 1, the values when printing are now:
It seems that this works for me now.
Karl, are you aware of any changes that could have fixed this bug?
Bug 490475, I expect.