Gavin,<br>The font bug causes fonts to appear garbled when we try to paint a font with a very small size onto a QGraphicsItem.&nbsp; An example is here: <a href="http://img457.imageshack.us/my.php?image=fontmessiz6.png">http://img457.imageshack.us/my.php?image=fontmessiz6.png
</a><br>So far, I&#39;ve only seen it with Qt4 on Ubuntu, although other Linux distros may also be affected.&nbsp;&nbsp; Windows and OSX appear to be fine.<br>My workaround was to simply make the font 10 times larger and scale the painter down by a factor of 10.&nbsp; If you didn&#39;t scale the painter, then you would need to set the FONT_WORKAROUND_SCALE to 1 to make the fonts appear at their correct size.&nbsp; Another note is that the metrics needs to be created before scaling the font size, unless you also draw the bounding box while the QPainter is scaled down.
<br>If you could send me a patch or commit your changes so I can take a look at it, that would be helpful.<br>Thanks for your work!<br>Steven<br><blockquote><br><br>Hi,<br><br>An observation about the recent font bug workaround commits for the map
<br>composer....<br><br>I have been working on ticket #181 (multiline labels in the map composer)<br>and have a working solution that seems to have rendered the qt font bug<br>workaround unnecessary (I needed to set FONT_WORKAROUND_SCALE to 1 to get
<br>the label font to draw at the right size).<br><br>I&#39;m not sure what the qt font bug is, and hence am not sure why my<br>multiline changes have removed the need for the workaround (I am using<br>QPainter::draw(QRectF, ..., QString) instead of QPainter::draw(QString)
<br>with the QRectF obtained from QFontMetrics::size()).<br><br>Does anyone know what the font bug is?<br><br>Gavin</blockquote>