Bug 484573 - Some bold mono fonts are actually "bolder" than normal fonts on Wayland.
Summary: Some bold mono fonts are actually "bolder" than normal fonts on Wayland.
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 24.02.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-27 05:22 UTC by Mosklia
Modified: 2024-04-10 20:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot when using WenQuanYi Micro Hei Mono font (121.18 KB, image/png)
2024-03-27 05:22 UTC, Mosklia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mosklia 2024-03-27 05:22:42 UTC
Created attachment 167832 [details]
Screenshot when using WenQuanYi Micro Hei Mono font

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
Some bold mono fonts are actually "bolder" than normal fonts.
Though reported in Plasma 6, this can be observed on Plasma 5 if you use Wayland. Cannot be observed on X11.
Konsole does also have this problem.

STEPS TO REPRODUCE
1. Open Kate
2. Select some bold mono fonts as editor font (Not all, the fonts I know can reproduce are WenQuanYi Micro Hei Mono and WenQuanYi Zen Hei Mono.)
3. You may see that words highlighted as bold are "bolder", or wider than the others.

OBSERVED RESULT
words highlighted as bold are "bolder", or wider than the others.

EXPECTED RESULT
All words should be of the same width.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
Archlinux 6.8.1-arch1-1 (64 bit)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
DroidSansMono Nerd Fonts seem to have problems too. When using DroidSansMono Nerd Font and DroidSansMono Nerd Font Mono, the highlighted words have no visual difference than the others. When using DroidSansMono Nerd Fond Proto the highlighted words are wider. Other mono fonts seems to be correct.

When "Show mono fonts only" is on, WenQuanYi fonts are not shown. But DroidSansMono Nerd Fonts are shown.
Comment 1 Christoph Cullmann 2024-03-27 20:07:10 UTC
Have you some scale factor set for the display?
Comment 2 Mosklia 2024-03-28 01:44:02 UTC
(In reply to Christoph Cullmann from comment #1)
> Have you some scale factor set for the display?

2 monitor, one for 150% and one for 135%. Both can reproduce this.
Comment 3 Christoph Cullmann 2024-04-10 20:10:23 UTC
https://invent.kde.org/frameworks/ktexteditor/-/commit/2ab959985587e1f55fd669a3001bb48d2816c382

perhaps this fixes it, if not, one must report it upstream to Qt, as I see no way that we can alter that in the KDE stack.