On Thu, 2008-06-26 at 20:53 +0800, D Gautam-A21367 wrote:
> Hi All,
>  
> I have a question about text rendering in Clutter applications.
>  
> From my understanding, Clutter sits on top of OpenGL (or OpenGL-ES)
> and provides an easy way for developers to use OpenGL's capabilities.
> So ultimately, I assume that Clutter would rely on OpenGL to render
> text also.

yes and no.

Clutter trunk uses PangoCairo to render the glyps to a cache implemented
using a GL texture.

> Also, from my reading on the web, I gather that OpenGL does not really
> handle text so well, and uses either 'Bitmap fonts', 'Outline fonts'
> or 'Texture mapped fonts' to display text.

this has nothing to do with Clutter.

> My question is which of these methods is used internally when the
> function "clutter_label_new_with_text" is called?

none.

> I had a look at the function "clutter_label_new_with_text" in the file
> "clutter/clutter-label.c", but here I see that "g_object_new" is being
> called. Does this mean that Clutter uses one of its dependent
> libraries to handle text tendering? If so, which one is it?

as we say on the website and multiple times in the the documentation,
Clutter uses Pango to render the glyphs.

> Is there any document(s) that I can refer to better understand text display 
> (in Clutter/OpenGL).

yes: the API reference and the code inside the clutter/pango directory.
 
> p.s. 2: My target embedded device will not have GLUT or GLX.

Clutter does not depend on, or require, Glut.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, OpenedHand Ltd.
Unit R, Homesdale Business Centre
216-218 Homesdale Rd., Bromley - BR12QZ
http://www.o-hand.com

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

Reply via email to