xpra icon
Bug tracker and wiki

Changes between Initial Version and Version 1 of DPI

11/13/15 04:04:16 (5 years ago)
Antoine Martin



  • DPI

    v1 v1  
     2= DPI =
     7{{{#!div class="box"
     8== Introduction ==
     10We try to synchronize the DPI from the client to the server, so that applications will render with the correct settings and "look right" on the client.
     13* DPI support is much improved in version 0.16. With previous versions, your mileage may vary
     14* with X11, there are far too many places where the DPI can be looked up, many places where it can be overriden - it is hard to get right
     15* for virtualized "hardware DPI" which some applications calculate from the virtual monitor dimensions, you will need a patched [/wiki/Xdummy] driver and [/wiki/FakeXinerama]
     16* many applications will not reload the DPI settings, so they must be started ''after'' the client connects to get the correct DPI value
     20{{{#!div class="box"
     21== Links ==
     22* [https://www.happyassassin.net/2015/07/09/of-dpis-desktops-and-toolkits/ Of DPIs, desktops, and toolkits]
     23* win32 API:
     24 * [https://msdn.microsoft.com/en-us/library/windows/desktop/dn312083(v=vs.85).aspx WM_DPICHANGED]
     25 * [https://msdn.microsoft.com/en-us/library/windows/desktop/dn302058(v=vs.85).aspx GetDpiForMonitor]
     26 * [https://msdn.microsoft.com/en-us/library/windows/desktop/dn302122.aspx SetProcessDpiAwareness]
     27 * [https://msdn.microsoft.com/en-us/library/windows/desktop/dn469266(v=vs.85).aspx Writing DPI-Aware Desktop and Win32 Applications]
     28* [http://www.anandtech.com/show/7939/scaling-windows-the-dpi-arms-race Scaling Windows - The DPI Arms Race], in particular: [http://www.anandtech.com/show/7939/scaling-windows-the-dpi-arms-race/5 Windows 8.1 - More DPI Changes]
     29* [https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Introduction/Introduction.html About High Resolution for OS X]
     30* [http://blog.qt.io/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/ Qt: Retina display support for Mac OS, iOS and X11]
     31* [https://bugs.freedesktop.org/show_bug.cgi?id=23705 xserver forces 96 DPI on randr-1.2-capable drivers, overriding correct autodetection]
     32* [https://bugs.freedesktop.org/show_bug.cgi?id=41115 please add option to avoid forcing of 96dpi]
     35{{{#!div class="box"
     36== Related xpra tickets ==
     37* #697 gtk screen dimension detection is broken with high dpi displays on windows7 and later
     38* #163 pass client DPI preference to server (and use sane defaults of 96dpi)
     39* #976 client display scaling
     40* #919 frame extents synchronization
     43{{{#!div class="box"
     44== Data ==