Some while ago this topic was discussed on the x11-users mailinglist and a bug report was filed http://lists.apple.com/archives/x11-users/2008/Jul/msg00003.html how the X11 display resoultion of 75 dpi could be easily changed to the more appropriate 96 dpi. For more information see this hint http://www.macosxhints.com/article.php?story=20080621201901244 Since the fix is quite small, is there any chance that this will go into the upcoming 2.3.2 ? Setting defaultserverargs="-dpi 96" in /usr/X11/bin/startx will be sufficient. Thx Simone
Quoted Simone Karin Lehmann <simone@lisanet.de>:
Some while ago this topic was discussed on the x11-users mailinglist and a bug report was filed
http://lists.apple.com/archives/x11-users/2008/Jul/msg00003.html
how the X11 display resoultion of 75 dpi could be easily changed to the more appropriate 96 dpi. For more information see this hint
http://www.macosxhints.com/article.php?story=20080621201901244
Since the fix is quite small, is there any chance that this will go into the upcoming 2.3.2 ? Setting
defaultserverargs="-dpi 96"
in /usr/X11/bin/startx will be sufficient.
Thx Simone
That sounds like a step in the right direction. It should result in better font and primitive drawing sizes with some toolkits that depend on the DPI for scaling quantities. My only concern is that the -dpi setting will be wrong with some displays. We should really be querying the native window system and hardware to retrieve such data. X11 on bare hardware uses hardware support based on VESA standards like EDID to produce a DPI setting. It's probably just a matter of using the native Mac API to retrieve the display dimensions, and setting the dimensions in XQuartz, so that things like WidthMMOfScreen/HeightMMOfScreen are right. George -- http://people.freedesktop.org/~gstaplin/
My only concern is that the -dpi setting will be wrong with some displays. We should really be querying the native window system and hardware to retrieve such data.
hhmm, I've tested this on my iMac 20" and on my MacBook 13.3". Although the iMac has a physical display resolution of ~ 98 dpi and the MacBook 113 dpi, setting "-dpi 96" in startx gives me the same font sizes, compared to non-X11 apps. Somehow it seems to me, that the internal resolution X11 uses, is 96 dpi, regardless of the physical display resolution. But maybe Jeremy could tell us more about this issue. Simone
On Mon, Oct 20, 2008 at 4:35 PM, Simone Karin Lehmann <simone@lisanet.de>wrote:
My only concern is that the -dpi setting will be wrong with some displays. We should really be querying the native window system and hardware to retrieve such data.
hhmm, I've tested this on my iMac 20" and on my MacBook 13.3". Although the iMac has a physical display resolution of ~ 98 dpi and the MacBook 113 dpi, setting "-dpi 96" in startx gives me the same font sizes, compared to non-X11 apps.
You must have done something wrong because it definitely makes a difference, at least in terms and emacs. Bob
While it is not the correct end-game fix, I agree that 96 is a better arbitrary dpi to set default than 75. That change is in git. --Jeremy On Oct 21, 2008, at 06:07, Bob wrote:
On Mon, Oct 20, 2008 at 4:35 PM, Simone Karin Lehmann <simone@lisanet.de
wrote:
My only concern is that the -dpi setting will be wrong with some displays. We should really be querying the native window system and hardware to retrieve such data.
hhmm, I've tested this on my iMac 20" and on my MacBook 13.3". Although the iMac has a physical display resolution of ~ 98 dpi and the MacBook 113 dpi, setting "-dpi 96" in startx gives me the same font sizes, compared to non-X11 apps.
You must have done something wrong because it definitely makes a difference, at least in terms and emacs.
Bob _______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
It's not a simple or trivial fix. Consider the case where we have multiple displays with different resolutions. XQuartz treats the entire desktop as one big display, not two. So what should it report in that case? It's not a simple issue. --Jeremy On Oct 20, 2008, at 13:26, Simone Karin Lehmann wrote:
Some while ago this topic was discussed on the x11-users mailinglist and a bug report was filed
http://lists.apple.com/archives/x11-users/2008/Jul/msg00003.html
how the X11 display resoultion of 75 dpi could be easily changed to the more appropriate 96 dpi. For more information see this hint
http://www.macosxhints.com/article.php?story=20080621201901244
Since the fix is quite small, is there any chance that this will go into the upcoming 2.3.2 ? Setting
defaultserverargs="-dpi 96"
in /usr/X11/bin/startx will be sufficient.
Thx Simone
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
I second this. It's not like native applications (in Leopard anyway) bother with the true pixel density either. So reporting a constant dpi means the sizes of native and X11 apps are always the same, relative to each other. On Oct 20, 2008, at 10:34 PM, Simone Karin Lehmann wrote:
It's not a simple or trivial fix. Consider the case where we have multiple displays with different resolutions. XQuartz treats the entire desktop as one big display, not two. So what should it report in that case?
IMO it should report 96 dpi, as it does it now with 75 dpi.
I second this. It's not like native applications (in Leopard anyway) bother with the true pixel density either. So reporting a constant dpi means the sizes of native and X11 apps are always the same, relative to each other.
AFAIK, in former times, it was assumed on Macs that each display has a resolution of 72 dpi, as X assumes a default of 75 dpi. I don't know when, but this has changed to 96 dpi. Isn't it so? Simone
Yes, I would really like to see this as well. I was carrying a simple patch to do this for some time, but lost it on an upgrade. So I stayed with 75dpi and made my fonts smaller but they just do not look as nice. I've been meaning to get it back to 96 dpi. As almost ALL macs have at least 96 dpi, this is the sensible default, not 75 dpi as it is now. I'll send a patch along when I get back on my Leopard machine (this one is still Tiger). Bob On Mon, Oct 20, 2008 at 2:26 PM, Simone Karin Lehmann <simone@lisanet.de>wrote:
Some while ago this topic was discussed on the x11-users mailinglist and a bug report was filed
http://lists.apple.com/archives/x11-users/2008/Jul/msg00003.html
how the X11 display resoultion of 75 dpi could be easily changed to the more appropriate 96 dpi. For more information see this hint
http://www.macosxhints.com/article.php?story=20080621201901244
Since the fix is quite small, is there any chance that this will go into the upcoming 2.3.2 ? Setting
defaultserverargs="-dpi 96"
in /usr/X11/bin/startx will be sufficient.
Thx Simone
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
participants (6)
-
Bob
-
George Peter Staplin
-
Jeremy Huddleston
-
Jeremy Huddleston
-
Simone Karin Lehmann
-
William Mortensen