Bug 308647 - The calendar is not clearly drawn fonts.
Summary: The calendar is not clearly drawn fonts.
Status: RESOLVED UNMAINTAINED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-clock (show other bugs)
Version: 4.8.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-19 10:47 UTC by Igor Strelnikoff
Modified: 2018-06-08 19:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
was in 4.7.4 (22.84 KB, image/jpeg)
2012-10-19 10:48 UTC, Igor Strelnikoff
Details
It was now in 4.8.5 (30.16 KB, image/jpeg)
2012-10-19 10:48 UTC, Igor Strelnikoff
Details
Fix ugly font in calendar widget. (559 bytes, patch)
2013-03-26 19:33 UTC, V1KT0P
Details
My font configs (2.37 KB, application/octet-stream)
2013-04-06 14:02 UTC, V1KT0P
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Strelnikoff 2012-10-19 10:47:41 UTC
The calendar is not clearly drawn fonts. Probably should pomemyat font or uduchshit his drawing?


Reproducible: Always
Comment 1 Igor Strelnikoff 2012-10-19 10:48:20 UTC
Created attachment 74645 [details]
was in 4.7.4
Comment 2 Igor Strelnikoff 2012-10-19 10:48:50 UTC
Created attachment 74646 [details]
It was now in 4.8.5
Comment 3 Igor Strelnikoff 2012-10-19 13:03:32 UTC
I think it is necessary to replace the fonts or adjust it renders
Comment 4 V1KT0P 2013-03-26 19:33:12 UTC
Created attachment 78409 [details]
Fix ugly font in calendar widget.

Please apply this simple patch for fix ugly font in calendar widget.

Calendar font before patch: http://i.imgur.com/6zhPx.png
Calendar font after patch: http://i.imgur.com/n6tX9.png
Comment 5 Nikita Skovoroda 2013-04-06 13:24:01 UTC
That ifdef was introduced by this commit: https://projects.kde.org/projects/kde/kde-workspace/repository/revisions/15662dc9ab5a118b5194b7da09951555ebb5e5fc/diff

You should probably investigate (or just ask), why was that needed.

That block is inside an #ifdef just because QFont::HintingPreference was introduced in Qt 4.8:
http://qt-project.org/doc/qt-4.8/qfont.html#HintingPreference-enum

Also, the fonts are working nicely for me. Can you specify your font settings?
More precisely, ~/.config/fontconfig/fonts.conf (or ~/.fontconfig.conf) and font name/size (in systemsettings).
Comment 6 V1KT0P 2013-04-06 14:02:41 UTC
Created attachment 78680 [details]
My font configs

(In reply to comment #5)
> That ifdef was introduced by this commit:
> https://projects.kde.org/projects/kde/kde-workspace/repository/revisions/
> 15662dc9ab5a118b5194b7da09951555ebb5e5fc/diff
> 
> You should probably investigate (or just ask), why was that needed.
> 
> That block is inside an #ifdef just because QFont::HintingPreference was
> introduced in Qt 4.8:
> http://qt-project.org/doc/qt-4.8/qfont.html#HintingPreference-enum
> 
> Also, the fonts are working nicely for me. Can you specify your font
> settings?
> More precisely, ~/.config/fontconfig/fonts.conf (or ~/.fontconfig.conf) and
> font name/size (in systemsettings).

System settings:
Monospaced font: Terminus 9
Little and toolbar font: Verdana 8
Other: Verdana 9
Smoothing: enable(excluding 6-12 sizes)
Subpixel smoothing: disable
Hitning: full
DPI: 96
Resolution: 1280x1024

QFont::HintingPreference need for allow set pixel size for font when hinting is enable. Because when hinting enable and set pixel size, it decrease size to nearest point size, when font looks not ugly. But in calendar it is not need, and if user want to enable pixel accuracy, than simple disable hinting.
But I enable hinting for improve the appearance of fonts. And hardcoded disable hinting in calendar code is broken my global system settings in calendar, and now font in calendar look ugly.
Comment 7 Nikita Skovoroda 2013-04-06 14:29:01 UTC
I can confirm that I can reproduce this bug using the Verdana font with disabled smoothing and enabled hinting. Other apps (such as Dolphin) look relatively fine, but the table in the calendar has broken font rendering.

Setting QFont::PreferNoHinting turns hinting off even for non-smoothed fonts, which results in very bad rendering.
Comment 8 Behem0th 2013-04-06 14:43:49 UTC
I can confirm this bug.

http://ompldr.org/vaTBibQ/Recovery_5.png
Comment 9 mephisto.pheles.nyan 2013-04-06 14:54:03 UTC
*** This bug has been confirmed by popular vote. ***
Comment 10 Nate Graham 2018-06-08 19:41:59 UTC
Hello!

This bug report was filed for KDE Plasma 4, which reached end-of-support status in August 2015. KDE Plasma 5's desktop shell has been almost completely rewritten for better performance and usability, so it is likely that this bug is already resolved in Plasma 5.

Accordingly, we hope you understand why we must close this bug report. If the issue described  here is still present in KDE Plasma 5.12 or later, please feel free to open a new ticket in the "plasmashell" product after reading https://community.kde.org/Get_Involved/Bug_Reporting

If you would like to get involved in KDE's bug triaging effort so that future mass bug closes like this are less likely, please read https://community.kde.org/Get_Involved#Bug_Triaging

Thanks for your understanding!

Nate Graham