Bug 482872 - Font dpi doesn't apply to qt5 apps
Summary: Font dpi doesn't apply to qt5 apps
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_fonts (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-08 13:22 UTC by Alberto Salvia Novella
Modified: 2024-03-09 01:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Salvia Novella 2024-03-08 13:22:45 UTC
Setting fonts dpi doesn't affect qt5 apps, like pcmanfm-qt or qt4wine.

OS: Arch Linux.
Comment 1 Alberto Salvia Novella 2024-03-08 14:14:23 UTC
The culprit is qt5 apps not understanding the font format in "~/.config/kdeglobals".

If I run:
pcmanfm-qt

I get:
QFont::fromString: Invalid description 'Noto Sans,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1'                                          
QFont::fromString: Invalid description 'Hack,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1'
QFont::fromString: Invalid description 'Noto Sans,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1'
QFont::fromString: Invalid description 'Noto Sans,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1'

But if in kdeglobals I change:
font=Noto Sans,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1

To:
font=Noto Sans,11

Both qt5 and qt6 apps shows the correct font size.

So if that is a new qt6 format, maybe we should delay that a little bit. Till more apps use qt6.

For example pcmanfm-qt will upgrade to qt6 at the end of April:
https://github.com/lxqt/pcmanfm-qt/commit/adf83ac373cd826c1ac16ad9702c04de8f757f8c
Comment 2 Nicolas Fella 2024-03-08 23:27:57 UTC
Is plasma5-integration installed?
Comment 3 Alberto Salvia Novella 2024-03-09 01:04:11 UTC
Installing the packages mentioned here:
https://discuss.kde.org/t/how-to-set-qt5-font-size/11820/7?u=albertosalvianovella

Solved the issue, so I guess this isn't a bug.