Hello,<br><br>When I add to the Scene some rectangles and texts, rectangles are perfect, but text are too big.<br><br>If I add a QGraphicsSimpleTextItem with a font_size of 40, it will display bigger than the same text/font/size if I draw it in inkscape (or anywhere else).<br>
Seems that I have to scale with a ratio of 0.75 to get a correct size.<br><br>What am I doing wrong ?<br><br>here is my sample (I also attach a png with a text in Norasi with a size of 40):<br><br>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;">from PyQt4 import QtGui</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">import sys</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">app = QtGui.QApplication(sys.argv)</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">scene = QtGui.QGraphicsScene(0, 0, 400, 400)</p>
<p style="margin: 0px; text-indent: 0px;">scene.addSimpleText('HELLO 1', QtGui.QFont('Norasi', 40))</p>
<p style="margin: 0px; text-indent: 0px;">t = scene.addSimpleText('HELLO 2', QtGui.QFont('Norasi', 40))</p>
<p style="margin: 0px; text-indent: 0px;">t.setY(100)</p>
<p style="margin: 0px; text-indent: 0px;">t.scale(.75, .75)</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">view = QtGui.QGraphicsView(scene)</p>
<p style="margin: 0px; text-indent: 0px;">view.setRenderHint(QtGui.QPainter.Antialiasing)</p>
<p style="margin: 0px; text-indent: 0px;">view.setViewportUpdateMode(QtGui.QGraphicsView.BoundingRectViewportUpdate)</p>
<p style="margin: 0px; text-indent: 0px;">view.show()</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">sys.exit(app.exec_())</p><br><br><br>