I’m trying to get a bounding box for text. That is I have text (several lines) and I would like to get, before rendering to cairo surface:
- Width of text with no line breaking
- Height of rendered text
- Distance of baseline from top of the box
It seems Pango is correct tool to the job but I cannot find information on how to do it (outside of low-level operations which I’m not sure if I do correctly as I’m not that familiar with font rendering).