GNU bug report logs - #20432
GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll bar

Previous Next

Package: emacs;

Reported by: "Felix E. Klee" <felix.klee <at> inka.de>

Date: Sun, 26 Apr 2015 17:28:02 UTC

Severity: normal

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

Full log


Message #22 received at 20432-done <at> debbugs.gnu.org (full text, mbox):

From: "Felix E. Klee" <felix.klee <at> inka.de>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 20432-done <at> debbugs.gnu.org
Subject: Re: bug#20432: GDK_SCALE=2 GDK_DPI_SCALE=0.5 destroys GTK+ 3 scroll
 bar
Date: Thu, 14 May 2015 13:46:05 +0100
On Thu, May 14, 2015 at 1:33 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:
>> 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.

OK. BTW on the system I’ve set up I position and resize windows with the
WM (FVWM), and there are no issues with `GDK_SCALE`. If I specify that a
window should be sized 2000 × 1000 px, then it’s set to that size.
`GDK_SCALE` only affects the contents of the window.

> Anyway, multiplying with 0.5 or divide by 2 is the same for integer
> arithmetics.

0.5 is not an integer. ;-)

> An alternative would be for Emacs to multply font sizes with
> GDK_SCALE.

Why bother? Don’t fonts get rendered via the GTK+ API?




This bug report was last modified 10 years and 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.