[cairo] Rendering underlines / overbars with pangocairo

Behdad Esfahbod behdad at behdad.org
Wed Dec 17 22:36:14 PST 2008


Peter Clifton wrote:

> However, it appears that the overbar doesn't fade out. When zoomed far
> out, you see very bold pixel aligned overbars, with some faded
> anti-aliased text in the few pixels below.
> 
> Poking in Pango, (and I'm a complete noob there), I'm wondering if the
> font metrics are coming through pangogc-font.c 's get_face_metrics()
> function. (The platform is Linux, and text is being rendered via
> cairo). 

Hi Peter,

I think you are hitting this bug:

  http://bugzilla.gnome.org/show_bug.cgi?id=457990

It's a very ugly bug.  I'll see if I can fix it soon.

One way to work around it is to make sure your ctm is identity and modify the
font matrix instead.  Ugly, I know.

behdad


More information about the cairo mailing list