From: "Jan Djärv" <jan.h.d@swipnet.se>
To: "Felix E. Klee" <felix.klee@inka.de>
Cc: 20432-done@debbugs.gnu.org
Subject: bug#20432: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar
Date: Thu, 14 May 2015 14:33:29 +0200 [thread overview]
Message-ID: <55549619.6010503@swipnet.se> (raw)
In-Reply-To: <CA+m_8J3aF2Gm2mrRXDaK6t6oRQaNgPGyWGfCkw+7emYRN2OenQ@mail.gmail.com>
Den 2015-05-14 13:59, Felix E. Klee skrev:
> On Thu, May 14, 2015 at 12:34 PM, Jan Djärv <jan.h.d@swipnet.se> wrote:
>> This GTK feature is very poorly designed.
>
> HiDPI scaling works beautifully in various other GTK+ 3 applications.
I'm sure it does, but the world is bigger than Gtk+ 3.
>
>> We can not support it correctly, as we don't use Gtk+ exclusively.
>
> Thanks for the explanation.
>
>> Also, the Gtk+ code blindly multiplies anything with GTK_SCALE. So for
>> example, given GTK_SCALE=2, if we have font size 15, it becomes 30.
>
> That is what `GDK_DPI_SCALE` is for. Example:
>
> export GDK_SCALE=2
> export GDK_DPI_SCALE=0.5
That does not help. For WM hints, Gtk+ uses GDK_SCALE. GDK_DPI_SCALE is only
used for scaling Xft fonts. Anyway, multiplying with 0.5 or divide by 2 is
the same for integer arithmetics.
An alternative would be for Emacs to multply font sizes with GDK_SCALE.
I think that might be tricky, but I will check.
>
>> So there will be glitches, live with it.
>
> It’s not for me. I set up a HiDPI machine for a friend who’s turning
> eighty this year. While he has great vision given his age, some UI
> elements are just too small without scaling. They are barely visible.
>
> This is a big issue, not something that should be ignored. Get access to
> a HiDPI screen, and you’ll see what I mean.
I have three already.
Jan D.
next prev parent reply other threads:[~2015-05-14 12:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-26 10:01 bug#20432: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar Felix E. Klee
2015-04-26 21:10 ` bug#20432: Further information (plus 1/2 workaround) Felix E. Klee
2015-05-14 11:34 ` bug#20432: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar Jan Djärv
2015-05-14 11:59 ` Felix E. Klee
2015-05-14 12:33 ` Jan Djärv [this message]
2015-05-14 12:46 ` Felix E. Klee
2015-05-14 13:13 ` Jan Djärv
2015-05-14 14:04 ` Felix E. Klee
2015-05-14 16:38 ` Paul Eggert
2015-05-14 17:57 ` Jan D.
2015-05-15 2:59 ` Paul Eggert
2015-05-15 7:01 ` Jan D.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55549619.6010503@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=20432-done@debbugs.gnu.org \
--cc=felix.klee@inka.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).