CJK HK is the Chinese font. Select CJK JP instead.
I recall very long time ago, I used to have improperly rendered CJK because of language setting.
Apparently, some character can be renderer differently in Kanji and Chinese, which causes size/type face inconsistency. Can you add Japanese as the secondary (or primary) language in your machine, restart and see if it fixes anything?
My guess is this has nothing to do with KDE and is a font and/or fontconfig issue. Figure out which default fonts your apps use, then see what they get substituted for for different character sets. I have never done the latter, but I know it's possible. The former is
fc-match "default font"
man fc-match and web searches will help.
There's a lot fontconfig can do to influence what actual fonts apps end up choosing. Here's a primer.
$ fc-match "default font"
NotoSans-Regular.ttf: "Noto Sans" "Regular"
This seems to be correct.
$ fc-match :lang=ja
NotoSansCJK-Regular.ttc: "Noto Sans CJK JP" "Regular"
Also seems to be correct.
I skimmed through the primer and checked whats on the default fontconfig config:
$ cat ~/.config/fontconfig/fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'urn:fontconfig:fonts.dtd'>
<fontconfig>
<!--
Artificial oblique for fonts without an italic or oblique version
-->
<match target="font">
<!-- check to see if the font is roman -->
<test name="slant">
<const>roman</const>
</test>
<!-- check to see if the pattern requested non-roman -->
<test compare="not_eq" name="slant" target="pattern">
<const>roman</const>
</test>
<!-- multiply the matrix to slant the font -->
<edit mode="assign" name="matrix">
<times>
<name>matrix</name>
<matrix>
<double>1</double>
<double>0.2</double>
<double>0</double>
<double>1</double>
</matrix>
</times>
</edit>
<!-- pretend the font is oblique now -->
<edit mode="assign" name="slant">
<const>oblique</const>
</edit>
<!-- and disable embedded bitmaps for artificial oblique -->
<edit mode="assign" name="embeddedbitmap">
<bool>false</bool>
</edit>
</match>
<!--
Synthetic emboldening for fonts that do not have bold face available
-->
<match target="font">
<!-- check to see if the weight in the font is less than medium which possibly need emboldening -->
<test compare="less_eq" name="weight">
<const>medium</const>
</test>
<!-- check to see if the pattern requests bold -->
<test compare="more_eq" name="weight" target="pattern">
<const>bold</const>
</test>
<!--
set the embolden flag
needed for applications using cairo, e.g. gucharmap, gedit, ...
-->
<edit mode="assign" name="embolden">
<bool>true</bool>
</edit>
<!--
set weight to bold
needed for applications using Xft directly, e.g. Firefox, ...
-->
<edit mode="assign" name="weight">
<const>bold</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<dir>~/.local/share/fonts</dir>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
</fontconfig>
I tried removing "Synthetic emboldening" here but it doesn't seem to change anything so I put it back. I also tried removing fonts.conf but it still doesn't change anything. My gut feeling is that there is a fontconfig config somewhere changing the way Noto Sans CJK is being rendered in KDE/QT. I just couldn't figure out where or what. The fonts themselves are fine in LibreOffice so I don't think there's any issue with the package.
Now reading through the primer again, I checked the configs in /etc/fonts/conf.d and found all the configs there. There's a lot so I'll look through it and see which one might be changing the way CJK is rendered.
$ fc-match "default font" NotoSans-Regular.ttf: "Noto Sans" "Regular"
That's not what I meant. You mention differences between dolphin (not ok) and Firefox (ok). So you need to check what they use as default fonts respectively. If there are differences you know what to do.
They're both already using Noto Sans. IIRC Firefox has its own way of rendering fonts so it's likely a KDE/Qt font rendering issue.
They’re both already using Noto Sans
For all/relevant encodings?
Have you considered that maybe Noto developers made a choice there, to render Kanjoi thicker than Chinese characters? I know, that doesn't explain why Dolphin would render them in a way that is more pleasing to you. Have you tried using other fonts altogether?
For all/relevant encodings?
As far as I understand (Firefox Font settings, using fc-match, fontconfig, etc), it's properly configured.
Have you considered that maybe Noto developers made a choice there, to render Kanjoi thicker than Chinese characters?
Assuming you meant Kana (and Hangeul as well), I'm not sure why they would do that because it makes it appear so inconsistent.
I know, that doesn’t explain why Dolphin would render them in a way that is more pleasing to you. Have you tried using other fonts altogether?
You mean Firefox (and the Firefox file picker) because Dolphin doesn't render it well at all. I actually tested a few things. I uninstalled the Noto Sans CJK package to see what other fonts it would fall back to. It falls back to Droid Sans and it looks pretty good in my opinion. It doesn't become thick like Noto Sans CJK. So maybe it's really something intentionally done by the Noto developers.
BUT Noto Sans CJK looks fine in Firefox, LibreOffice, and GIMP.
A few more things I tested:
- Bazzite live ISO on a virtual machine also has thick Kana and Hangeul (problem isn't limited to Fedora KDE?)
- Flatpak Strawberry and Dolphin results in Chinese/Kanji becoming thick (???)
- Fedora GNOME renders CJK fine (KDE issue?)
- Nautilus on Fedora KDE renders CJK fine (Qt issue?)
- Changed the fallback font for ja and ko via
~/.config/fontconfig/fonts.confto Droid Sans Fallback (I also tried setting it to Noto Sans CJK Light), then confirming changes usingfc-match. Restarted and clearedfc-cache. Dolphin and Strawberry did not respect my changes. Nautilus does though. (Qt issue?) - Replaced CJK VF fonts with non-VF fonts. No difference.
Something tells me it's a KDE or Qt thing, or maybe it's a Fedora thing? It works fine with GNOME and GTK apps like Nautilus. This is beyond what I know at this point so I'll just post this over to the Fedora forums.
Linux
Welcome to c/linux!
Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!
Rules:
-
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
-
Be respectful: Treat fellow community members with respect and courtesy.
-
Quality over quantity: Share informative and thought-provoking content.
-
No spam or self-promotion: Avoid excessive self-promotion or spamming.
-
No NSFW adult content
-
Follow general lemmy guidelines.




