On Sat, 2008-07-26 at 13:39 -0400, Jack Smith wrote:
> I'd like to specify font height in pixels, so I can adjust it
> according to the resolution of the screen.

just create a Label and set the text in pixels instead of points:

  label = new Clutter.Label ();
  label.font_name = "Sans 24px";

this will do what you want.

the resolution used depends on the backend; the GLX backend will use a
96.0 DPI resolution, but you can change it using the ClutterBackend API.

> I'm guessing the current fonts are stored as bitmaps,

no, they are not. each glyph is cached, so if the same font, the same
size and the same glyph is requested to Pango, it will be extracted from
the cache instead of being redrawn.

> so would I have to create each letter from scratch to get this effect?

Clutter is not OpenGL - you don't need to care about font bitmaps. :-)

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