hitagi
it’s time to boogie down
- 5 Posts
- 134 Comments
hitagi@ani.socialOPto
Linux@lemmy.world•How do I fix inconsistent CJK font weights in Fedora KDE?English
1·9 months agoUPDATE: In case anyone comes across this thread…
Fedora KDE really doesn’t seem to render Noto Sans CJK JP and KR very well. GNOME and GTK apps can render it fine. I couldn’t find a proper fix for it but either one of these workarounds should be good enough:
- Set your main font as Noto Sans CJK “Light” --> this looks okay for KDE/Qt but GTK apps will properly render it as “Light”
- Use a different font and use fontconfig to prefer those fonts
Number 2 is a better solution. https://fonts.google.com/ has a bunch of fonts for most languages and many of them have packages in Fedora. In my case, I installed
mrsw-biz-*andnaver-nanum-*and added this to my fontconfig (~/.config/fontconfig/conf.d/00-preferred-fonts.conf:<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> <fontconfig> <alias> <family>sans-serif</family> <prefer> <family>Noto Sans</family> <family>BIZ UDPGothic</family> <family>NanumGothic</family> </prefer> </alias> <alias> <family>monospace</family> <prefer> <family>Noto Sans Mono</family> <family>BIZ UDGothic</family> <family>NanumGothicCoding</family> </prefer> </alias> </fontconfig>
hitagi@ani.socialOPto
Linux@lemmy.world•How do I fix inconsistent CJK font weights in Fedora KDE?English
1·9 months agoFor 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.
hitagi@ani.socialOPto
Linux@lemmy.world•How do I fix inconsistent CJK font weights in Fedora KDE?English
1·9 months agoThey’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.
hitagi@ani.socialOPto
Linux@lemmy.world•How do I fix inconsistent CJK font weights in Fedora KDE?English
2·9 months agoThat screenshot was just an example but regardless of whether I set my main font as JP/KR/HK/SC/TC etc, the font appears thicker in its “Regular” style unlike non-CJK Noto Sans.
Still haven’t found a way to fix it but setting Noto Sans CJK Light as my main font is good enough (see the last picture of my post).
edit: what my config looks like right now:

Kana and Hangeul look okay with this.
hitagi@ani.socialOPto
Linux@lemmy.world•How do I fix inconsistent CJK font weights in Fedora KDE?English
1·9 months ago$ 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.confbut 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.dand 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.
hitagi@ani.socialOPto
Linux@lemmy.world•How do I fix inconsistent CJK font weights in Fedora KDE?English
2·9 months ago
I put it up like this (including just keeping 日本語) and the fonts are still thick :(
He has a Samson Meteor microphone. Same as mine. He is cool in my book :D
hitagi@ani.socialto
Selfhosted@lemmy.world•Having trouble with my caddy config for my lemmy instanceEnglish
2·2 years agoHave you tried the Caddyfile from Lemmy-Easy-Deploy?
hitagi@ani.socialto
No Stupid Questions@lemmy.world•Why is Lemmy only popular in the western World?
6·2 years agoReddit was (and still is) seen as foreign/overseas social media. Other social media platforms are much more diverse than Reddit. Twitter, TikTok, and Insta for example. YouTube and Facebook too.
Most people here in Lemmy come from Reddit. Reddit is very popular in the Western world. It’s not popular outside of it.
In the context of the larger Fediverse, I think Misskey is an interesting case study. It’s created and designed by Japanese people. The docs are in Japanese. It’s sponsored by a Japanese company. Resources and support are also in Japanese. Therefore it has a strong Japanese userbase.
On the other hand, Lemmy is created and designed by Western people. The docs are in English. It’s sponsored by a Western company. Resources and support are in English. Therefore it has a strong Western userbase.
Also I should point out that other than Twitter, Instagram, etc. there are some platforms operated by non-Western companies. China has a lot of those like Bilibili, Weibo, Baidu, etc. Korea has Katalk and Line, etc etc. They aren’t popular outside of the region.
edit: I should probably clarify. It’s not like we don’t use Reddit. It’s just not as popular.
hitagi@ani.socialto
Selfhosted@lemmy.world•Discord going public. Plz help a future refugee.English
5·2 years agoIt was 8mb then 25mb then 10mb now (for non-Nitro users)
hitagi@ani.socialto
Linux@lemmy.world•What software setup do you use for playing music?English
5·2 years agoI used to do
beetsandcmusbut eventually moved to MusicBrainz Picard and Strawberrry Music Player. I sync to my phone withsyncthing.
I also really like the tunnels feature. It makes self hosting at home easy for those under NAT/CGNAT or whatever it was called.
hitagi@ani.socialto
Selfhosted@lemmy.world•Owners of a domain, which domain registrar did you choose and why?English
71·3 years agoPorkbun asks for your ID now so that might not be “privacy-respecting” but their CS is very helpful from my experience.
I have domains in Netim and Spaceship, and I have no problems with either so far.
hitagi@ani.socialto
Linux@lemmy.world•I have heard you guys on Lemmy like Linux, what do you think about this old picture of my desktops from 2010-2011.English
8·3 years agoYou should be taking a screenshot of your desktop, not taking a picture of it at a weird angle.
Wait a minute.
The closest I achieved was Firefox with Tridactyl and Minima theme.
hitagi@ani.socialto
Selfhosted@lemmy.world•How can I reduce the amount of storage used by my Lemmy instance?English
21·3 years agopict-rs has the option to compress images. Ours is set to WEBP with 1280 pixels either side max.
I have a lot of abstract paintings in my room. They’re not mine though. They’re a collection of my parents who have nowhere else to hang them.
I don’t remember which update it was but newer versions of Lemmy use significantly less database storage.






I made a post the other day how Fedora KDE doesn’t render CJK fonts properly. MPV also wasn’t rendering fonts properly so I had to manually add a font in
mpv.conf.When I installed Fedora KDE, there was a button to enable third party repos. It actually worked but it only enables NVIDIA and Steam repos so I had to go over to rpmfusion to get the ones for non-free ffmpeg.
I have a wireless pen tablet from XP Pen and I need to close and open the XP Pen app to get it to connect every time. It doesn’t seem to “wake” automatically whenever I turn my tablet on.(nvm, using OpenTabletDriver instead fixes it)On Fedora, installing DaVinci Resolve seems tricky. Don’t know if I should use davincibox or davinci-helper. (edit: ended up using davincibox and it’s pretty ok so far)
This is my first time using Fedora and KDE on my desktop. It’s also been 2 years since I last used Linux on bare metal.