Open Thaodan opened 3 years ago
I don't think we explicitly do support GDK_DPI_SCALE, it's listed as a x specific in gtk3 documentation
is your plasma session running on X or wayland? apparently neither work on wayland, but are expected to have some effect on X
https://developer.gnome.org/gtk3/stable/gtk-x11.html#x11-envar
I didn't implement X11-specific feature explicitly.
My session is on X11.
Anyway fractional scaling support would be great. 2.0 scaling is to be for me on 4k and 27".
OK, I'll consider whether it can be implemented. Does X-build emacs support it?
OK, I'll consider whether it can be implemented. Does X-build emacs support it? Not really but you can use the XRessource
Xft.dpi
to simulate it.
I don't use Xft.dpi because I can't get it in pure-gtk way. Instead, I'll use GDK_DPI_SCALE.
I don't use Xft.dpi because I can't get it in pure-gtk way. Sure but you asked about the GTK build that had X11 bits next to GTK.
Sure but you asked about the GTK build that had X11 bits next to GTK.
Sorry, I misunderstood your words.
Thanks. I'll implement in pgtk while referring to how to use Xft.dpi in X-build.
I tried to support GDK_DPI_SCALE, and push it to feature/pgtk of https://github.com/masm11/emacs. Could you try it?
Did you try it?
For what is worth I tried the latest code from emacs-mirror:feature/pgtk and it supports fractional scaling under Wayland already without this patch. Maybe it's only required for X11?
@oabdullah1 Yes, it's only for X11.
Hey sorry for the late reply.
It works for the ui however fonts are not scaled up (compare the fonts on the ui in grey vs. the text black/white).
It works on my GNOME(Xorg). Did you try feature/pgtk on https://github.com/masm11/emacs, not savannah? savannah's one doesn't contains this support.
I'll try it on Plasma later.
It works on Plasma 5.21.4.
Is that supported? I tried to set it up with:
However I can't make it work. My DE is Plasma 20.0.5.