I run Gnome, which has pretty good support for my HiDPI screen. However, when I run QT apps I can't seem to find a way to scale the fonts. Is there a way to do this without installing a full version of KDE?
How to set the default font size for all Qt5 apps
configurationfontsqt
Related Question
- Fonts way to big with Awesome WM
- How to set default font for all Qt5 applications
- How to Determine Which Font File is Chosen for a System Generic Font Alias
- Larger “xterm” fonts on HIDPI displays
- Fedora – Font Rendering Change After Upgrade from Fedora 25 to 26
- Linux – How to make all fonts with all font faces show a sample string for comparison
Best Answer
Updated:
Since Qt 5.6, Qt 5 applications can be instructed to honor screen DPI by setting the
QT_AUTO_SCREEN_SCALE_FACTOR
environment variable. If automatic detection of DPI does not produce the desired effect, scaling can be set manually per-screen (QT_SCREEN_SCALE_FACTORS
) or globally (QT_SCALE_FACTOR
). You can also useQT_FONT_DPI
to adjust scaling of text.Original:
You can try this recipe from the archwiki