Fix in the text rendering utilities

- Fixed a problem in the pango/cairo-based text renderer.