pango_layout_get_pixel_size does look promising. I guessed that I'd put the message into a pango layout, query the size, and then use that to adjust the rect dimensions. I totally failed at that, unfortunately. One day, but right now not so much.
https://github.com/wesnoth/wesnoth/pull/8908
https://github.com/wesnoth/wesnoth/pull/8908
Statistics: Posted by white_haired_uncle — Yesterday, 11:55 pm