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