[Interest] Font measuring inconsistency between platforms in Qt5? Or, how best to draw characters with QPainter.

Thiago Macieira thiago.macieira at intel.com
Sun Dec 29 21:43:23 CET 2013


On domingo, 29 de dezembro de 2013 17:44:56, George Tasopoulos wrote:
> Thanks for your reply.
> 
> This makes sense. But in this case shouldn't font drawing also draw at the
> same size (i.e. 28 pixels high on Linux, 27 pixels high on Windows)?

Only if both computers have the same DPI for the screen and the same font 
rendering engines. Do you even have the Liberation Mono font installed on both 
systems?

PS: the correct value for a standard 96 dpi display is 24, since 18pt = 
ΒΌ inch.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131229/6b0c8d5b/attachment.sig>


More information about the Interest mailing list