lxqt-config
lxqt-config copied to clipboard
Changing font DPI has no effect
It's under Configuration Center → Appearance → Font → Resolution (DPI). The same setting has effect in KDE's systemsettings and if changed from 96 to 192, fonts will be double-sized.
Changing font resolution is needed with HDPI monitors. Please see https://github.com/lxde/lxqt/issues/916#issuecomment-196081064 !
see #1129 Some applications ignore ~/.config/fontconfig/fonts.conf and look in xrdb
there are currently three sources that various applications look for DPI settings:
- fontconfig settings,
- xrdb
- randr settings (
xdpyinfo | grep inch
)
Setting DPI should affect all of them for consistent look.
In reverse, xrandr supports setting xrandr --dpi $OUTPUT_NAME
to automatically set dpi to native of given output. I do not know the proper way to restore consistency if DPI is changed from the other end.
also keep in mind this: https://bugs.freedesktop.org/show_bug.cgi?id=23705 and this: https://lists.x.org/archives/xorg-devel/2017-April/053430.html
@Vladimir-csp Thanks for the info!
My knowledge of this part of LXQt is poor; just reported the issue. I think @palinek and @luis-pereira could fix this.
@palinek, @luis-pereira any progress on this?
Given my previous comments: what response should there be if display has changed, i.e. laptop is connected to a monitor with completely different dimensions?
I do not know it this is a proper place, but I hope some wise people will give some valuable info: I've started a topic 'Current state of DPI settings under X' on XDG mailing list. https://lists.freedesktop.org/archives/xdg/2017-July/013926.html
I've messed around with various settings. It appears that: Qt5, Qt4 and GTK2 apps have this priority: xrdb, randr. They seem to ignore fontconfig GTK3 apps look for Xft.dpi in xrdb, ignore everything else. X apps (like conky) have this priority: fontconfig, xrdb, randr
@palinek, @luis-pereira any progress on this?
I didn't look into this yet..
Did not look into it. Helth issues in my family has taken all my "free" time.
Bumped into new info in plain sight: According to this, Fontconfig will default to the Xft.dpi xrdb value if it is set.
Also a useful feature would be the ability to leave fontconfig DPI value unset.
ok, we should spend some time on it - it might be that i will be a victim of some HDPI issues soon - my new small monitor will arrive hopefully tomorrow ... :dark_sunglasses:
EDIT: So nobody should be surprised or offended if i might force HDPI things in the next time, it's only scratching own itches.
Should be a breeze to fix at least the dpi thing - no release without it.
having this issue... i had very small tiny fonts for some reason and i could disable dpi on xfce and it was fine (same effect as setting it to 95) but on lxqt there's no option to disable it and setting it to any number does absolutely nothing
This is still an issue please kindly fix it.
If you want scaling with HDPI screens, you could use LXQt Session Settings → Global Screen Scaling
.
An update on this may be needed after years:
Qt considers the default font DPI to be 96. Any change should be reflected in the EV QT_FONT_DPI
. However, Qt5 and Q6 have different behaviors. In Qt5, setting QT_FONT_DPI
just scales the texts, while in Qt6, it also scales the GUI.
Since we should port LXQt to Qt6, setting QT_FONT_DPI
will interfere with QT_SCALE_FACTOR
(LXQt Session Settings → Global Screen Scaling). QT_SCALE_FACTOR
isn't ideal, because it doesn't take multi-screen setups into account, but it's practically good for now. With Qt6, we'll have to deal with these two EVs and more.
Add to this the behaviors of GTK3 and GTK4 (if we still want to support them), to see how complex the situation will be.
EDIT: Don't mistake the behavior of Fusion in Qt5 for a GUI scaling when QT_FONT_DPI
is set. Qt5's Fusion just scales icons and some other GUI elements alongside texts, but the the whole GUI isn't scaled. Only Qt6 scales the whole GUI (with all styles).