On Wed, 2008-08-13 at 09:15 +0400, Mykhailo Parfeniuk wrote:

> I would like to know is there any plans to add to COGL API text
> rendering, gradient and texture filling for primitives.

You can render text using Clutter's glyph cache if you include
<clutter/pangoclutter.h>. You need to create your own font map with
pango_clutter_font_map_new because Clutter's internal font map isn't
exposed. If you keep that instance around it will work as a second
cache. Then you can create a context using
pango_clutter_font_map_create_context and render layouts with
pango_clutter_render_layout.

The API isn't documented so I'm not sure if it's officially supported
yet.

- Neil

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to