You are not logged in.
I am having issues with QT font scaling in qt and plasmashell.
output of
$ cat /etc/X11/xorg.conf.d/90-monitor.conf
Section "Monitor"
Identifier "<default monitor>"
Option "UseEdidDpi" "False"
# Option "DPI" "192 x 192"
# Option "DPI" "288 x 288"
# Option "DPI" "240 x 240"
Option "DPI" "276 x 276" #realsize
DisplaySize 294 165 # In millimeters
EndSectionand
$ xdpyinfo | grep -B 2 resolution
screen #0:
dimensions: 3200x1800 pixels (294x165 millimeters)
resolution: 276x277 dots per inchI use KDE - general font size is 10, no force fonts DPI and screen scaling set to 1.
When I open apps such as gimp and chrome, they open in a pleasant and appropriate size with accordingly suitable font size (although thunar and libreoffice still open in the kind of small format you'd expect from 96x96 dpi at this resolution).
KDM, and qt apps in general (which leads me to conclude it is not a user set setting) however, produce huge fonts across the board, with appropriately scaled widgets however.
And then there is plasmashell - which seems to be distorted into the smallest possible font possible, making it all but unreadable.
Stuff I've tried, both as root and user, to no avail:
# export QT_SCALE_FACTOR=0
# export QT_SCREEN_SCALE_FACTORS=0
# export QT_AUTO_SCREEN_SCALE_FACTOR=0
# export QT_FONT_DPI=276
# export GDK_DPI_SCALE=1How do I get QT apps to scale down to a proper font size and for plasmashell to scale up to the proper font size?
Last edited by b9anders (2018-12-09 18:38:29)
Offline
I was able to fix the tiny fonts in plasmashell by editing
/etc/xdg/autostart/org.kde.plasmashell.desktop to replace
plasmashell with
PLASMA_USE_QT_SCALING=1 plasmashell.
Had to do the same for latte-dock autostart as well. Window decorations and krunner still uses the tiny font, not sure how to override that. Using
export PLASMA_USE_QT_SCALING=1
doesn't do much. I can "fix" the huge fonts in KDE by forcing the dpi to 96, but this is to me a very inelegant solution that also causes gimp and libreoffice to scale to tiny size fonts and icons. Hence, doesn't actually solve the problem.
Last edited by b9anders (2018-12-10 10:29:31)
Offline