[cairo] questions about using scaled_font

raja raja at tachyontech.net
Tue Jul 17 21:01:29 PDT 2007

you can get the required details using
cairo_text_extents, cairo_font_extents


Micah Heyer wrote:
> Hi,
> I haven't used cairo very much so pardon me if this is a rather newbish
> question,I need to know the size a the text before I start rendering, so
> I thought ,I would use scaled_font.My question is do I use
> 'cairo_scaled_font_text_extents("string")' to find out the size of my
> text and the during the render process use 'cairo_show_text("string")'
> or is there some sort of caching that is done so I don't need to use
> cairo_show_text?
> -micah 
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo

More information about the cairo mailing list