[cairo-bugs] [Bug 23333] Mismatches hinting at certain glyph pixelsizes.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 18 13:06:34 PDT 2009


http://bugs.freedesktop.org/show_bug.cgi?id=23333





--- Comment #9 from Behdad Esfahbod <freedesktop at behdad.org>  2009-08-18 13:06:31 PST ---
(In reply to comment #8)
> (In reply to comment #7)
> > When you hint the glyph outlines and the same glyph is not .8 pixel wider, you
> > MUST also change the metrics-hinted width, otherwise the result will look ugly.
> >  That's all.
> > 
> 
> Well, that makes sense.
> 
> It just seems dumb that the resultant glyph is even more inaccurate size-wise
> than just using the original unhinted metric.  But if the result would be ugly
> without metric correction, then alas I guess I have to deal with it.
> 
> How do you disable metric-hinting, anyway?  I didn't even know that was
> possible; I don't think I'll like it, but I am curious.

There's no option for it.  Search for cairo_font_options_set_hint_metrics in
gtk+/gtk/gtksettings.c


> Also, one last thing...shouldn't slight-hinting give you the same width no
> matter what?  I thought slight-hinting only hinted the vertical direction,
> never horizontal, and wouldn't need any metric correction for width.

I don't remember how slight-hinting works.  Again, we're just getting the
metrics and outline from FreeType, and rounding the metrics if metrics-hinting
is enabled.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list