StaticCairoText: recompute the extents if they exceed the maximum size
Keep the texture the most little that we can, then adjust its position when drawing. Fixes: https://bugs.launchpad.net/bugs/1155550, https://bugs.launchpad.net/bugs/1155553.
Approved by PS Jenkins bot, Andrea Azzarone.