1 |
> On 2020-06-25, at 13:40, Valmor de Almeida <val.gentoo@×××××.com> wrote: |
2 |
> |
3 |
> On Thu, Jun 25, 2020 at 9:43 AM Andrew Udvare <audvare@×××××.com> wrote: |
4 |
>> |
5 |
>> On 25/06/2020 04:59, Valmor de Almeida wrote: |
6 |
>>> Hello, |
7 |
>>> Does anyone know how to fix Thunderbird UI fonts on a HiDPI |
8 |
>>> Gentoo/OpenBox system with no desktop? |
9 |
>>> A similar problem exists with Firefox but it can be fixed using a CSS |
10 |
>>> file (userChrome.css). However I can't get Thunderbird to work using a |
11 |
>>> similar fix. The UI fonts are so small that the app is useless. |
12 |
>>> Thanks, |
13 |
>>> -- |
14 |
>>> Valmor |
15 |
>>> |
16 |
>> |
17 |
>> Do you have an ~/.Xresources file? It can have something like: |
18 |
>> |
19 |
>> Xft.dpi: 144 |
20 |
>> |
21 |
>> Which is also passed to Xorg for me: -dpi 144 (Plasma does this by |
22 |
>> modifying SDDM service file(s) to systemd). |
23 |
>> |
24 |
> |
25 |
> No I don't have it. I thought the line |
26 |
> |
27 |
> xrandr --dpi 192 & |
28 |
> or |
29 |
> xrandr --output eDP-1 --mode "3840x2160" --scale "0.75x0.75" |
30 |
> |
31 |
> in ~/.xinitrc was sufficient to fix Firefox; it doesn't fix TB. |
32 |
> |
33 |
> I just added |
34 |
> Xft.dpi: 192 |
35 |
> to ~/.Xresources and not only TB works but LibreOffice works too. |
36 |
> Of course all of this defies the purpose of having an HiDPI laptop but |
37 |
> it is either that or no use at all. |
38 |
|
39 |
For Qt apps you might want these environment variables in .xinitrc: |
40 |
|
41 |
QT_SCREEN_SCALE_FACTORS=DVI-I-0=1.5;DVI-I-1=1.5;HDMI-0=1.5;DP-0=1.5;DP-1=1.5;DP-2=1.5;DP-3=1.5;DP-4=1.5;DP-5=1.5; |
42 |
|
43 |
(These device names are the same as what xrandr shows.) |
44 |
|
45 |
QT_AUTO_SCREEN_SCALE_FACTOR=0 |
46 |
|
47 |
Currently I have an issue where opening Qt apps from certain contexts results in resetting the DPI scale to 2 instead of 1.5. Primarily this happens when Chrome launches a Qt-based viewer such as Kate, and sometimes it happens from Konsole. Have yet to file bugs. |