* Display crisp images on hidpi screens
@ 2021-02-04 21:46 Yuan Fu
0 siblings, 0 replies; only message in thread
From: Yuan Fu @ 2021-02-04 21:46 UTC (permalink / raw)
To: emacs-devel; +Cc: Alan Third
Currently images on hidpi screens are sometimes blurry. I want to fix that. The images are blurry when the underlying terminal reports logical pixel sizes to Emacs, nsterm does that, I’m not sure if pgtk does that too.
I think the best place to resolve this is at lisp level: load the image with 2x the dimension and add :scale 0.5. If we want to do this rescale automatically, lisp needs to know the “pixel radio”: the ratio between logical pixel and physical pixel. For hidpi this is usually 2: one logical pixel corresponds to 2 physical pixels. I think it would be best to add this information to display-monitor-attributes-list. Yamamoto san mentioned that Macport does this.
Alan has a patch that returns the pixel ratio for a given frame, I tried to modify it to return that of a display but with no luck.
I think pgtk can also return the pixel ratio, I remember Harano san asking about returning logical or physical size.
Can x11+gtk also report pixel ratio?
Yuan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-04 21:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 21:46 Display crisp images on hidpi screens Yuan Fu
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).