Re: how to get text size ?
"Enrico Weigelt, metux IT consult" <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
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 ... --mtx -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo