[cairo] Creating an image with text

Oscar Lazzarino oscar.lazzarino at gmail.com
Wed Apr 28 06:23:22 PDT 2010


Hi

I'd like to build an image containing some text.

Problem is, I don't know how big the image should be, until I can
compose the Pango Layout

But I can't create the pango layout without a cairo context.

And I can't create a cairo context without an image surface.

But I don't know how big the surface shoud be

[ ad libitum ]

Any hints?

Thanks

O.


More information about the cairo mailing list