Plasma 6 - font issue in qt5 apps

Having a problem only on fresh installs of EOS (Plasma 6). Fonts in qt5 apps such as vlc are way too small and do not follow changes made in system settings. Old installs that are upgraded from plasma 5 to plasma 6 do not have the problem. Here is what the terminal shows when I start any qt5 based app.

VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126b)
[00005a47220e1550] main libvlc: Running vlc with the default interface. Use ‘cvlc’ to use vlc without interface.
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,12,-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’
[00005a47221756c0] main playlist: playlist is empty

Can anyone else confirm that they have the same problem ? I have been able to duplicate this on three different machines. Thanks

Try using this app to fix it:

Thanks for the tip, I should have mentioned that I did try qt5ct, but got very strange results, fonts were all stretched out and large spaces between words.

I don’t have that problem with the fonts.

Found this:

`QFont font("Norasi", 10, QFont::Bold)`: works
`QFont font("Norasi", 10, QFont::Normal)`: doesn't work

Taken from:

I think the idea is to just change the font (or font weight) and see if it works. Have you tried that?

I found a solution to my problem - I compared the file ~/.config/kdeglobals between a fresh install and one that was updated from plasma 5. Under the [General] section there are 5 lines with font names and a series of numbers (same as in the error message in the first post). These entries were very different between the 2 files. I replaced these lines on the fresh install with those from an updated install and the problem disappeared immediately. No side effects noted as of yet. Thanks to those who were trying to help me figure this out.

1 Like

Just an update - I found a better solution to this issue. Fresh install seems to be missing a few important packages which provide support for qt5 apps. You will need to install plasma5-integration and breeze5. Details here

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.