[Interest] Achieving resolution independent font sizes with Qt
realnc at gmail.com
Sat Jun 8 02:41:51 CEST 2013
On 07/06/13 18:25, Thiago Macieira wrote:
> On sexta-feira, 7 de junho de 2013 16.57.20, Nikos Chantziaras wrote:
>> Is there an approach I can take to make the font sizes in applications
>> independent of the current resolution? [...]
> There's something wrong with your setup. Font sizes *are* resolution
> independent. The definition of "point" is that 72 pt = 1 inch of actual screen
> Now, most display systems will not update the screen DPI when changing
> resolutions. That is a known issue and please don't expect any changes
I was afraid it might be something like that. At least point size on
Windows 7 does appear to result in the same on-screen size regardless of
resolution. It's probably just X.Org that doesn't play nice.
> The question is simply: does the font size look right in the default
> resolution of your setup?
I don't have a ruler handy, but 72pt does appear to roughly correspond
to somewhere between 2 and 3 cm. So I'd say it works in the default
resolution. And given that the majority of users are most probably
using LCDs and running them at their native resolution, I guess this is
less of a problem than I first thought.
In any event, thanks for clarifying this. I wasn't aware that point
size is already supposed to be resolution independent.
More information about the Interest