[Qt-interest] pdf printer 1200 DPI and font size

Sylvain Pointeau sylvain.pointeau at gmail.com
Tue Apr 5 09:47:13 CEST 2011


>
> Now that the transform from mm to printer pixels is working OK, converting
> font sizes from points (= 1/72 of an inch) to mm should be straight
> forward.  To correctly measure an individual character, you will need to get
> the character's tightBoundingRect from the QFontInfo.
>

This was what I tried and I made some tests:

font point size = 1 -> result ~ 16.2 mm
font point size = 2.54 -> result ~ 40 mm

so it is somewhere transformed...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110405/20eb0605/attachment.html 


More information about the Qt-interest-old mailing list