[Cairo] Re: [xsvg] cairo_text_extents ?
John Ellson
ellson at research.att.com
Fri Nov 21 14:06:41 PST 2003
Carl Worth wrote:
>On Nov 10, John Ellson wrote:
> > The GraphViz tools rely on <text text-anchor="middle" ...
> > to center text in node shapes. Currently this is ignored
> > by xsvg because cairo_text_extents() is not yet implementated.
>
>An older version of xsvg did support this with an older version of
>cairo that called XftTextExtentsUtf8 to get this information.
>
>The latest versions of cairo no longer depend on Xft, but instead talk
>directly to fontconfig and freetype. The text extents stuff is a rare
>case of functionality disappearing from cairo.
>
> > Can I ask about the status of cairo_text_extents() ?
>
>It's just waiting for someone to write it. It shouldn't be too hard as
>the code already exists in Xft and can simply be lifted out.
>
>Care to take a whack at it?
>
>-Carl
>
>PS. Now that we're talking about cairo innards, any continuation of
>this thread should probably be on the cairo at cairographics.org list:
>
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
>
>
OK, Please try this. The attached tar file contains cairo and libxsvg
patches and 4 test cases.
John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: text-extents-patches.tgz
Type: application/x-tar-gz
Size: 10240 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20031121/440bf8ff/text-extents-patches.bin
More information about the cairo
mailing list