Fixed bugs in the TextRenderer:
- Before calling the destructor of TextRenderer one must make current
the OpenGL context.
- QFontMetrics::maxWidth always returns 0, I dunno why, but instead we
must use the current character width.