[cairo] Re: Public api for getting cairo_glyph_t

Mike Emmel mike.emmel at gmail.com
Tue Jan 10 20:09:00 PST 2006


On 1/11/06, Bill Spitzak <spitzak at d2.com> wrote:
>
>
> Mike Emmel wrote:
> > On 1/10/06, Carl Worth <cworth at cworth.org> wrote:
> >
> >>On Mon, 9 Jan 2006 08:31:42 -0600, Mike Emmel wrote:
> >>
> >>> Cairo doesn't expose any way of converting input text
> >>> * into glyphs, so in order to use the Cairo interfaces that take
> >>> * arrays of glyphs, you must directly access the appropriate
> >>> * underlying font system.
> >>
> >>That's correct. And it's by design. You must use the underlying font
> >>system in order to use cairo's glyph-based APIs.
> >>
> >
> >
> > But as far as I could see its not documented for each backend I found
> > how pango did it and did not know if it was a short cut or
> > optimization or the official way.
> > There seems to be no example or other information in the Cairo code.
>
> Do you want this for any reason other than "find the font that will draw
> this glyph?"
>
> If you are just trying to build font sets, I think the proper solution
> is to have Cairo do this for you.
>

I'm porting the gtk port of Webkit (Safari) to the directfb/gtk port.
The design really rules out using pango since it already has its own
text layout engine so I need to implement some of the backend layout
apis which means I need to collect glyph metrics. The orginal
implementation used Xft.

Mike


More information about the cairo mailing list