Re: how to get text size ?
Stefan Salewski <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2016-07-08 at 13:41 +0200, Enrico Weigelt, metux IT consult wrote: > Hi folks, > > > how can I find out how much space some given piece of > text needs on the surface ? > > Maybe I miss something, but when I type "cairo text" in google I get this proposal at the top https://cairographics.org/manual/cairo-text.html#cairo-text-extents There are related functions like cairo_glyph_extents () and maybe pango functions -- generally we use pango for text rendering. -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo