Pango cairo target surface size
Rob Kramer <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I would like to create a cairo image surface that is equal to the
logical extents of a text string. This seems to be a chicken-and-egg
problem, since I need a cairo_t with surface before I can use layout
functions (and the surface size isn't known yet).
If I use plain Pango to calculate the extents beforehand, then the
layout calculations have to be done twice, since Cairo pango will do
them again.
Is there a better way to do this?
Cheers!
Rob
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo