[cairo] Sign of cairo_font_extents->descent

Carl Worth cworth at redhat.com
Mon May 2 13:45:28 PDT 2005


On Fri, 29 Apr 2005 12:34:44 -0400, Owen Taylor wrote:
> I just discovered that the FreeType and Win32 font backends don't agree
> on the sign of cairo_font_extents->descent.

Ouch!

>  FreeType backend: a font that descends below the baseline has  a 
>    negative descent
> 
>    (Like in the FreeType API)
> 
>  Win32 backend: a font that descends below the baseline as a 
>    positive descent
> 
>    (Like Xft, Pango, Windows, ATSUI APIs)
> 
> I'd suggest we change the FreeType backend.

I have no intrinsic authority on which to base an opinion here. I
would defer to consensus among well-established text APIs, and I think
you've demonstrated that quite clearly that that lies in favor of the
change.

So I won't stand in the way of this one.

-Carl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050502/c07179d5/attachment.pgp


More information about the cairo mailing list