emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which should the display-pixel-width function return, physical pixel


From: Lars Ingebrigtsen
Subject: Re: Which should the display-pixel-width function return, physical pixel width or logical pixel width?
Date: Sat, 02 Jan 2021 07:04:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Yuuki Harano <masm+emacs@masm11.me> writes:

> I'm going to add scale-factor in per-monitor information to support
> scaling.  dpi-sensitive emacs lisps can extract logical pixel width,
> mm width, and scale-factor from it, and calculate dpi.

Sounds good.

> "Monitor" is a recent concenpt.
> If pgtk emacs returns logical one, then compatibility may be broken.
> If pgtk emacs returns physical one, then those emacs lisps continue to
> do strange calculation.
>
> What should the display-pixel-width function (and
> display-monitor-attributes-list) return, physical pixel width, logical
> pixel width, or implementation-dependent?  The documentation of
> display-pixel-width seems to say nothing about that.

I think they should return the physical pixel width.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]