At Sun, 22 Mar 2026 00:48:42 +0100, Peter Dyballa <[email protected]> wrote:
Subject: [Xquartz-dev] Re: Enabling 120dpi with Xquartz?
> 
> 
> > Am 21.03.2026 um 23:57 schrieb Greg A. Woods
> > <[email protected]>:
> >  Somehow I've never even heard of xscreenruler before, though I
> > see it has been around forever.  I'm not sure I would trust it
> > though without placing a physical ruler side-by-side!
> 
> The former measures dots… And it's actually 15 physical screen
> dots for 10 display dots: 2 dots for the black mark and 1 dot for
> the white mark or interspace.

I'm not sure what you mean by all that -- I go by pixels, as counted by
X11, and as documented by the display manufacturer.

> https://github.com/vkalyvayut-roboty-a-ne-chelovek/xscreenruler –
> very raw.

Raw, and kinda useless -- it can't even see the full size of my display
-- it misses 10 pixels.

For reference my main display is an Apple XDR Pro:

Apple says:

    Resolution: 6016 by 3384 pixels (20.4 million pixels) at 218 pixels per inch
    Aspect ratio: 16:9   [32-inch (diagonal)]

Unfortunately they only give the outside dimensions, not the dimensions
of the viewable area.  As you may have seen in my ~/.xinitrc notes the
way X11 computes the screen size is based on the number of pixels the
hardware tells it divided by the DPI value given on the X command line.

Xdpyinfo says:

screen #0:
  dimensions:    6016x3384 pixels (700x394 millimeters)
  resolution:    218x218 dots per inch

I'm not 100% sure the vertical DPI is exactly 218 pixels per inch, but
it's good enough for font scaling to look good at that resolution.

-- 
                                        Greg A. Woods <[email protected]>

Kelowna, BC     +1 250 762-7675           RoboHack <[email protected]>
Planix, Inc. <[email protected]>     Avoncote Farms <[email protected]>

Attachment: pgpxMPIWa3A2V.pgp
Description: OpenPGP Digital Signature

Reply via email to