<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2016-08-06 11:04 GMT-03:00 John Culleton <span dir="ltr"><<a href="mailto:John@wexfordpress.com" target="_blank">John@wexfordpress.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":21g" class="">> Does anyone know of any other way to<br>
> programatically measure the rendered width of a<br>
> line of text?</div></blockquote></div><br><div class="gmail_default" style="font-size:small">​Try play with:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><span style="font-family:'dejavu sans,sans-serif';font-weight:600">r</span><span style="font-family:'dejavu sans,sans-serif';font-weight:600">enderFont</span><span style="font-family:'dejavu sans,sans-serif'">(...)</span></div><p style="margin:0px"><a name="-renderFont"></a></p>
<p style="margin:0px 0px 8px 30px"><span style="font-family:'Courier New,courier'">renderFont("name", "filename", "sample", size, format="PPM") -> bool</span><span style="font-family:'dejavu sans,sans-serif'"> </span></p>
<div class="gmail_default" style="font-size:small"><span style="font-family:'dejavu sans,sans-serif'">Creates an image preview of font "name" with given text "sample" and size. If "filename" is not "", image is saved into "filename". Otherwise image data is returned as a string. The optional "format" argument specifies the image format to generate, and supports any format allowed by QPixmap.save(). Common formats are PPM, JPEG, PNG and XPM.</span>​</div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">
<font style="font-family:Helvetica,Arial,sans-serif" color="#888888"><font style="font-family:Helvetica,Arial,sans-serif" color="#888888"><font style="font-family:Helvetica,Arial,sans-serif" color="#888888"><font size="1"><font size="2"><img style="width: 75px; min-height: 100px;" alt="Meira" src="https://lh4.ggpht.com/_75EesisxR5g/TENbAQVXMLI/AAAAAAAADHs/ChNQzn8eOT0/meira-75x100.jpg" align="left" hspace="8" vspace="6"></font></font></font></font><hr>
</font><span style="font-family:Helvetica,Arial,sans-serif">nome: "</span><a href="https://plus.google.com/+JoséAntonioMeiradaRocha/" target="_blank"><span style="font-weight:bold;font-family:Helvetica,Arial,sans-serif">José Antonio Meira da Rocha</span></a><span style="font-family:Helvetica,Arial,sans-serif">" </span><br style="font-family:Helvetica,Arial,sans-serif">

<small style="font-family:Helvetica,Arial,sans-serif">email: <a href="mailto:joseantoniorocha@gmail.com" target="_blank">joseantoniorocha@gmail.com</a><br>
veículo: [ <a href="http://meiradarocha.jor.br/" target="_blank">http://meiradarocha.jor.br</a>
] <br>fones: [ 55-8448-3866  55-3744-2994 ] 🐊<br></small>
<hr style="width:100%;height:2px;font-family:Helvetica,Arial,sans-serif">
</div></div></div></div>
</div></div>