Re: how to get text size ?

Adrian Johnson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On 09/07/16 20:02, Enrico Weigelt, metux IT consult wrote:
> On 08.07.2016 15:04, Stefan Salewski wrote:
> 
>> 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
> 
> that only gives me usable width - the height is really strange:
> for strings it gives 0, for others 6 (i'm using font sizes 20 and 30)
> 
> --mtx
> 

I don't know why you are getting the unusual results for height. A test
case would help us identify the cause. But for text height usually the
font height is better value to use (see cairo_scaled_font_extents).

-- 
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.