PDA

View Full Version : QFontMetrics gives width and height different on MAC OS and windows



nikhil
11th May 2010, 11:13
QFontMetrics gives width and height different on MAC OS and windows

aamer4yu
11th May 2010, 13:12
I guess that might be system dependant...
some OS , if they are not able to render in a given size, they adjust themselves...
however this should not be a major issue,,, is it ?

nikhil
11th May 2010, 13:20
Thanks for reply
there is requirement that i have to make width and height of any text on windows and mac same

is there any way to increase display size of fonts on MAC

Lykurg
13th May 2010, 09:20
the problem is, that windows and mac uses different dpi for their display. So just set your font up with a pixel size and all should be fine, or draw an image and scale it to the available space.