At Fri, 17 Apr 2026 22:42:15 -0400, Nick <[email protected]> wrote: Subject: Re: [Xquartz-dev] Re: Enabling 120dpi with Xquartz? > > I'm late to this discussion, however am interested because I think it's > about Retina display resolution being much greater then what X11 is > typically used with.
I've always used X11 at maximum resolution, but of course these new "Hi-DPI" displays that are much greater than 100dpi do pose some challenges. > What font set are you using? Did you use > something like FontForge and create your own? I mostly use availabje TrueType fonts, as is documented in my dotfiles, in particular in ~/.X11-m4macros.m4, but also in ~/.xinitrc and ~/.fonts.alias.m4. (https://github.com/robohack/dotfiles/) My primary choice these days are the DejaVu fonts, especially of course "DejaVu Sans Mono". I've toyed with CommitMono, Liberation Mono, FreeMono, IBM Plex Mono, and Cascadia Mono. > How did you get XQuartz to use higher reslution? With "xrandr", as shown in my ~/.xinitrc: MAXRES=$(xrandr 2>/dev/null | awk '/^Screen [0-9]+:/ {print $(NF-2) "x" $(NF); exit 0;}') # # XXX Though xrandr has options to set the screen size and the DPI, they # don't seem to actually stick and don't have any effect, at least in # XQuartz. As-is though XQuartz for one seems to get the calculations # slightly wrong, somehow using a different, and seemingly slightly # wrong, DPI for the vertical direction and then calculating the # vertical size slightly wrongly. Of course knowing the physical screen # size to fix this would require more hard-coded parameterisation. # # XXX xrandr --verbose --screen 0 --fbmm 292x189 --dpi 224 -s ${MAXRES} xrandr --verbose -s ${MAXRES} echo "$argv0: Done xrandr ...." Each time you want to return to XQuartz once it is running you have to run "xrandr" again, and I have a "ShortCuts" script to do that, bound to <Command-Option-A>, as also documented in my ~/.xinitrc. > It's my understanding XQuartz uses scaled down resolution Indeed, by default it runs at the same scaled-down resolution as the rest of (or most of the rest of) macos. > plus it's a > small security risk running as root if you are > doing other daily things on MacOS. I suppose -- but for someone who has run X11 for decades, these risks and their mitigations are well known. > Given this, I used VMWare Fusion > which allows Full Retina Resolution, which seems to work well Interesting. I've tried getting QEMU to open or take over the display at full resolution, but not much luck, at least not via the UTM GUI. > however > most X11 bitmap fonts are too small to fill this resolution. I haven't used the ancient X11 bitmap fonts for decades. They should have been removed from the sources back when Xft was first released, but sadly they were not. > Also, many > GTK3/4 app widgets don't like such a high resolution in their bitmap > widgets being way too small. Indeed some applications make too much use of un-scalable widget icons. Some can be re-scaled manually and used though -- e.g. I've done so with a tile set for Xmahjongg and the icons for some Emacs apps, such as Wanderlust. Probably this could be done for other apps but I haven't had the need (though I might try with xfig at some point if I have to use it more intensely for something). -- Greg A. Woods <[email protected]> Kelowna, BC +1 250 762-7675 RoboHack <[email protected]> Planix, Inc. <[email protected]> Avoncote Farms <[email protected]>
pgpTmvEewY4Hg.pgp
Description: OpenPGP Digital Signature
