[cairo] how to get text size ?

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Sat Jul 9 12:48:12 UTC 2016

On 09.07.2016 14:18, Adrian Johnson wrote:

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

Okay, I had some errors in my code - even in my debug outputs. Now I'm
getting better results: 15..19 for fontsize 20 (normal), and 25..31
for fontsize 30 (bold+italic).

But I'm still struggling w/ the exact meaning of y_bearing ...


More information about the cairo mailing list