Re: how to get text size ?

Lawrence D'Oliveiro <[email protected]>
Newsgroups gmane.comp.lib.cairo
Organization Geek Central
Message-ID <[email protected]>
On Fri, 08 Jul 2016 15:04:34 +0200, Stefan Salewski wrote:

> https://cairographics.org/manual/cairo-text.html#cairo-text-extents

Also, I just added the ability to write

    ctx.text_extents(some_text).bounds
      # returns bounds as a Rect

and

    ctx.text_extents(some_text).advance
      # returns advance as a Vector

to Qahirah <https://github.com/ldo/qahirah>.
-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.