Resolution indpendence

Steven J Newbury steve at snewbury.org.uk
Tue Jun 24 17:11:20 PDT 2008


On Tue, 2008-06-24 at 23:27 +0200, drago01 wrote:
> On Tue, Jun 24, 2008 at 10:42 PM, Mohan Parthasarathy
> <suruti94 at gmail.com> wrote:
> > Hi,
> >
> > Both Mac OS X (Starting with Tiger and then in Leopard) and windows XP/Vista
> > (WPF) supports
> > resolution independence. In Mac OS X, there is a concept of scaling factor
> > which automatically
> > scales the UI (not sure how well it works). If i am developing a graphics
> > application on Linux,
> > how does this work ? What should the application do to handle different
> > resolution ? I understand
> > that i can set different screen resolutions. But from the application
> > perspective, what should be
> > done for getting the UI (fonts, text, images...) scale better ?
> 
X uses the display DPI as calculated from the monitor dimensions and
resolution.  Most toolkits should make this pretty transparent,
unfortunately some desktop UI's seem to have "standardised" on 96dpi and
fail to ensure their dialogs, pop-ups etc scale correctly.  The key here
is to not use pixel units...
> use svg ...
...which of course makes image scaling much easier! :) 




More information about the xorg mailing list