Improved the rendering of subscripts and superscripts in Qwt.