[cairo] how to get text size ?
Stefan Salewski
mail at ssalewski.de
Fri Jul 8 13:04:34 UTC 2016
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.
More information about the cairo
mailing list