[cairo] Re: Public api for getting cairo_glyph_t

Bill Spitzak spitzak at d2.com
Tue Jan 10 17:06:43 PST 2006



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.


More information about the cairo mailing list