Bug 374014 - Plasmashell renders fonts in QT5-Apps pixelated
Summary: Plasmashell renders fonts in QT5-Apps pixelated
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.8.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
: 374455 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-21 23:06 UTC by hotschi
Modified: 2018-01-20 21:02 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
QT-Creator - Fonts are broken (3.13 MB, image/png)
2016-12-21 23:06 UTC, hotschi
Details
Fontview - Fonts on the right side are broken (332.30 KB, image/png)
2016-12-21 23:06 UTC, hotschi
Details
How KMail fails (154.06 KB, image/png)
2016-12-21 23:07 UTC, hotschi
Details
pdf rendering fails (88.70 KB, image/png)
2016-12-21 23:07 UTC, hotschi
Details
How the pdf should look like (137.21 KB, image/png)
2016-12-21 23:08 UTC, hotschi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hotschi 2016-12-21 23:06:10 UTC
Created attachment 102929 [details]
QT-Creator - Fonts are broken

If the scaling-factor in Systemsettings->Hardware->Display & Monitor->scale display differs from 1 (e.g. 1.4), the font-rendering in QT fails and you get pixelated fonts for QT-Apps.

If you use 1.5 it is not as worse as using 1.4 or 1.3 but it is still not perfect.

Using a failing scaling-factor results in KMail displaying the emails in a "broken way", so you are unable to click on links or reply to emails.

I am using an 3k-Monitor (2880*1680 Pixels). 

If you set the DPI in Systemsettings->Font->force dpi to a higher number (e.g. 144) and the scaling factor to 1 it works perfectly.
Comment 1 hotschi 2016-12-21 23:06:41 UTC
Created attachment 102930 [details]
Fontview - Fonts on the right side are broken
Comment 2 hotschi 2016-12-21 23:07:14 UTC
Created attachment 102931 [details]
How KMail fails
Comment 3 hotschi 2016-12-21 23:07:42 UTC
Created attachment 102932 [details]
pdf rendering fails
Comment 4 hotschi 2016-12-21 23:08:10 UTC
Created attachment 102933 [details]
How the pdf should look like
Comment 5 hotschi 2016-12-21 23:12:05 UTC
Comment on attachment 102929 [details]
QT-Creator - Fonts are broken

font rendering fails in the QT-Creator
Comment 6 David Edmundson 2016-12-23 14:04:32 UTC
Can you include your ~/.config/kdeglobals
Comment 7 hotschi 2016-12-23 23:15:05 UTC
~/.config/kdeglobals

[$Version]
update_info=fonts_global.upd:Fonts_Global

[Appmenu Style]
Style=InApplication

[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2

[ColorEffects:Inactive]
ChangeSelectionColor=true
Color=112,111,110
ColorAmount=0.025
ColorEffect=2
ContrastAmount=0.1
ContrastEffect=2
Enable=false
IntensityAmount=0
IntensityEffect=0

[Colors:Button]
BackgroundAlternate=77,77,77
BackgroundNormal=49,54,59
DecorationFocus=61,174,233
DecorationHover=61,174,233
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=239,240,241
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[Colors:Complementary]
BackgroundAlternate=59,64,69
BackgroundNormal=49,54,59
DecorationFocus=30,146,255
DecorationHover=61,174,230
ForegroundActive=246,116,0
ForegroundInactive=175,176,179
ForegroundLink=61,174,230
ForegroundNegative=237,21,21
ForegroundNeutral=201,206,59
ForegroundNormal=239,240,241
ForegroundPositive=17,209,22
ForegroundVisited=61,174,230

[Colors:Selection]
BackgroundAlternate=29,153,243
BackgroundNormal=61,174,233
DecorationFocus=61,174,233
DecorationHover=61,174,233
ForegroundActive=252,252,252
ForegroundInactive=239,240,241
ForegroundLink=253,188,75
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=239,240,241
ForegroundPositive=39,174,96
ForegroundVisited=189,195,199

[Colors:Tooltip]
BackgroundAlternate=77,77,77
BackgroundNormal=49,54,59
DecorationFocus=61,174,233
DecorationHover=61,174,233
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=239,240,241
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[Colors:View]
BackgroundAlternate=49,54,59
BackgroundNormal=35,38,41
DecorationFocus=61,174,233
DecorationHover=61,174,233
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=239,240,241
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[Colors:Window]
BackgroundAlternate=77,77,77
BackgroundNormal=49,54,59
DecorationFocus=61,174,233
DecorationHover=61,174,233
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=239,240,241
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[DirSelect Dialog]
DirSelectDialog Size=640,480
History Items[$e]=file:///media/Daten/Musik,file:///media/Daten/OwnCloud,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung19,file:$HOME,file:$HOME/Sortieren,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung17,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung16,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung15,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung14,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung13,file:///media/Daten/Downloads/Torrents,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung 12.1,file:///media/Daten/OwnCloud/FH/1. Semester/IP1/Uebungen/Uebung09/Damenproblem

[General]
BrowserApplication=firefox.desktop
ColorScheme=Breeze Dark
Name=Breeze Dark
dbfile=/home/hansi/.mozilla/firefox/jkeq00f7.default/places.sqlite
fixed=Hack,12,-1,5,50,0,0,0,0,0
font=Noto Sans,14,-1,5,50,0,0,0,0,0
menuFont=Noto Sans,14,-1,5,50,0,0,0,0,0
shadeSortColumn=true
smallestReadableFont=Noto Sans,10,-1,5,50,0,0,0,0,0
toolBarFont=Noto Sans,12,-1,5,50,0,0,0,0,0
widgetStyle=Breeze

[Icons]
Theme=breeze-dark

[KDE]
ColorScheme=Breeze
DoubleClickInterval=400
LookAndFeelPackage=org.kde.breezedark.desktop
ShowDeleteCommand=false
ShowIconsInMenuItems=true
ShowIconsOnPushButtons=true
SingleClick=false
StartDragDist=1
StartDragTime=500
WheelScrollLines=5
contrast=4
widgetStyle=Breeze

[KFileDialog Settings]
Automatically select filename extension=false
Breadcrumb Navigation=true
Decoration position=0
LocationCombo Completionmode=5
PathCombo Completionmode=5
Previews=false
Show Bookmarks=false
Show Full Path=false
Show Preview=false
Show Speedbar=true
Show hidden files=false
Sort by=Name
Sort directories first=true
Sort reversed=false
Speedbar Width=252
View Style=Simple
listViewIconSize=0

[KScreen]
ScaleFactor=1
ScreenScaleFactors=eDP1=1;DP1=1;DP2=1;HDMI1=1;HDMI2=1;VIRTUAL1=1;

[KShortcutsDialog Settings]
Dialog Size=631,480

[PreviewSettings]
MaximumRemoteSize=0

[Toolbar style]
ToolButtonStyle=TextBesideIcon
ToolButtonStyleOtherToolbars=TextBesideIcon

[Translations]
LANGUAGE=de:en_US

[WM]
activeBackground=49,54,59
activeBlend=255,255,255
activeFont=Noto Sans,14,-1,5,50,0,0,0,0,0
activeForeground=239,240,241
inactiveBackground=49,54,59
inactiveBlend=75,71,67
inactiveForeground=127,140,141
Comment 8 hotschi 2016-12-23 23:18:58 UTC
~/.config/kdeglobals for broken font-rendering:

[$Version]
update_info=fonts_global.upd:Fonts_Global

[Appmenu Style]
Style=InApplication

[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2

[ColorEffects:Inactive]
ChangeSelectionColor=true
Color=112,111,110
ColorAmount=0.025
ColorEffect=2
ContrastAmount=0.1
ContrastEffect=2
Enable=false
IntensityAmount=0
IntensityEffect=0

[Colors:Button]
BackgroundAlternate=77,77,77
BackgroundNormal=49,54,59
DecorationFocus=61,174,233
DecorationHover=61,174,233
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=239,240,241
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[Colors:Complementary]
BackgroundAlternate=59,64,69
BackgroundNormal=49,54,59
DecorationFocus=30,146,255
DecorationHover=61,174,230
ForegroundActive=246,116,0
ForegroundInactive=175,176,179
ForegroundLink=61,174,230
ForegroundNegative=237,21,21
ForegroundNeutral=201,206,59
ForegroundNormal=239,240,241
ForegroundPositive=17,209,22
ForegroundVisited=61,174,230

[Colors:Selection]
BackgroundAlternate=29,153,243
BackgroundNormal=61,174,233
DecorationFocus=61,174,233
DecorationHover=61,174,233
ForegroundActive=252,252,252
ForegroundInactive=239,240,241
ForegroundLink=253,188,75
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=239,240,241
ForegroundPositive=39,174,96
ForegroundVisited=189,195,199

[Colors:Tooltip]
BackgroundAlternate=77,77,77
BackgroundNormal=49,54,59
DecorationFocus=61,174,233
DecorationHover=61,174,233
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=239,240,241
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[Colors:View]
BackgroundAlternate=49,54,59
BackgroundNormal=35,38,41
DecorationFocus=61,174,233
DecorationHover=61,174,233
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=239,240,241
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[Colors:Window]
BackgroundAlternate=77,77,77
BackgroundNormal=49,54,59
DecorationFocus=61,174,233
DecorationHover=61,174,233
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=239,240,241
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[DirSelect Dialog]
DirSelectDialog Size=640,480
History Items[$e]=file:///media/Daten/Musik,file:///media/Daten/OwnCloud,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung19,file:$HOME,file:$HOME/Sortieren,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung17,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung16,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung15,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung14,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung13,file:///media/Daten/Downloads/Torrents,file:///media/Daten/OwnCloud/FH/2. Semester/IP2/Uebung 12.1,file:///media/Daten/OwnCloud/FH/1. Semester/IP1/Uebungen/Uebung09/Damenproblem

[General]
BrowserApplication=firefox.desktop
ColorScheme=Breeze Dark
Name=Breeze Dark
dbfile=/home/hansi/.mozilla/firefox/jkeq00f7.default/places.sqlite
fixed=Hack,12,-1,5,50,0,0,0,0,0
font=Noto Sans,14,-1,5,50,0,0,0,0,0
menuFont=Noto Sans,14,-1,5,50,0,0,0,0,0
shadeSortColumn=true
smallestReadableFont=Noto Sans,10,-1,5,50,0,0,0,0,0
toolBarFont=Noto Sans,12,-1,5,50,0,0,0,0,0
widgetStyle=Breeze

[Icons]
Theme=breeze-dark

[KDE]
ColorScheme=Breeze
DoubleClickInterval=400
LookAndFeelPackage=org.kde.breezedark.desktop
ShowDeleteCommand=false
ShowIconsInMenuItems=true
ShowIconsOnPushButtons=true
SingleClick=false
StartDragDist=1
StartDragTime=500
WheelScrollLines=5
contrast=4
widgetStyle=Breeze

[KFileDialog Settings]
Automatically select filename extension=false
Breadcrumb Navigation=true
Decoration position=0
LocationCombo Completionmode=5
PathCombo Completionmode=5
Previews=false
Show Bookmarks=false
Show Full Path=false
Show Preview=false
Show Speedbar=true
Show hidden files=false
Sort by=Name
Sort directories first=true
Sort reversed=false
Speedbar Width=252
View Style=Simple
listViewIconSize=0

[KScreen]
ScaleFactor=1.4
ScreenScaleFactors=eDP1=1.4;DP1=1.4;DP2=1.4;HDMI1=1.4;HDMI2=1.4;VIRTUAL1=1.4;

[KShortcutsDialog Settings]
Dialog Size=631,480

[PreviewSettings]
MaximumRemoteSize=0

[Toolbar style]
ToolButtonStyle=TextBesideIcon
ToolButtonStyleOtherToolbars=TextBesideIcon

[Translations]
LANGUAGE=de:en_US

[WM]
activeBackground=49,54,59
activeBlend=255,255,255
activeFont=Noto Sans,14,-1,5,50,0,0,0,0,0
activeForeground=239,240,241
inactiveBackground=49,54,59
inactiveBlend=75,71,67
inactiveForeground=127,140,141
Comment 9 David Edmundson 2016-12-24 17:31:19 UTC
OK, maybe I should limit the scaling to integer or at least .5's.

Whilst it normally work pretty well, the few places that don't have proper  high DPI support natively have the artefacts exacerbated. 

Locally set it to 1.5 or 2 in the UI. You can fine tune the font DPI afterwards indepently.

As for the 3 examples, those need fixing in the respective applications. There is nothing we can do on the plasma side about that. Can you file individual bugs on the respective applications (kmail and okular) so that they can be tracked there please.

I'll file the report for the font installer.
Comment 10 hotschi 2016-12-26 23:29:28 UTC
Yes, I will write the bugreports for these two applications.

I will also try a few other applications, maybe I find another one which crashes with a wrong failing factor.
Comment 11 hotschi 2016-12-26 23:30:15 UTC
sorry, I ment scaling-factor^^
Comment 12 Evotopid 2017-01-01 12:42:48 UTC
For Okular there is already bug #362856, however for KMail and Qt Creator there dosen't seem to be a bug report yet.
Comment 13 David Edmundson 2017-01-02 19:39:46 UTC
*** Bug 374455 has been marked as a duplicate of this bug. ***
Comment 14 David Edmundson 2018-01-20 21:02:08 UTC
> As for the 3 examples, those need fixing in the respective applications. There is nothing we can do on the plasma side about that. 

Not sure why I left this open after. Closing now. Please do any follow ups at the relevant places.