fix wrong rendering of monospace fonts
- the font was not set to the painter
- the boundingrect of qpainter worked only for variable width fonts,
  use fontmetrics again.