You are not logged in.
I've noticed that some Chinese characters on my system have a different font compared to others. I want to delete all but one Chinese font. So how do I see which fonts on my system have Chinese character support? Or is there a better way to fix the inconsistent fonts?
Last edited by average_scout (2024-08-10 20:09:53)
Offline
Fonts don't support languages, but unicode blocks - you'd have to query fro all relevant character ranges, it's much easier/faster to test for some concerned glyphs, eg.
fc-list :charset=6e6f # https://www.compart.com/en/unicode/U+6E6FOffline
Fonts don't support languages, but unicode blocks - you'd have to query fro all relevant character ranges, it's much easier/faster to test for some concerned glyphs, eg.
fc-list :charset=6e6f # https://www.compart.com/en/unicode/U+6E6F
Terminal output after removing all fonts listed and installing Google's Noto Sans JP:
[eclipse@sleepless ~]$ fc-list :charset=6e6f # https://www.compart.com/en/unicode/U+6E6F
/home/eclipse/.fonts/Noto_Sans_JP/static/NotoSansJP-Black.ttf: Noto Sans JP,Noto Sans JP Black:style=Black,Regular
/home/eclipse/.fonts/Noto_Sans_JP/static/NotoSansJP-Thin.ttf: Noto Sans JP,Noto Sans JP Thin:style=Thin,Regular
/home/eclipse/.fonts/Noto_Sans_JP/static/NotoSansJP-Medium.ttf: Noto Sans JP,Noto Sans JP Medium:style=Medium,Regular
/home/eclipse/.fonts/Noto_Sans_JP/static/NotoSansJP-ExtraBold.ttf: Noto Sans JP,Noto Sans JP ExtraBold:style=ExtraBold,Regular
/home/eclipse/.fonts/Noto_Sans_JP/static/NotoSansJP-SemiBold.ttf: Noto Sans JP,Noto Sans JP SemiBold:style=SemiBold,Regular
/home/eclipse/.fonts/Noto_Sans_JP/static/NotoSansJP-Regular.ttf: Noto Sans JP:style=Regular
/home/eclipse/.fonts/Noto_Sans_JP/static/NotoSansJP-ExtraLight.ttf: Noto Sans JP,Noto Sans JP ExtraLight:style=ExtraLight,Regular
/home/eclipse/.fonts/Noto_Sans_JP/static/NotoSansJP-Bold.ttf: Noto Sans JP:style=Bold
/home/eclipse/.fonts/Noto_Sans_JP/static/NotoSansJP-Light.ttf: Noto Sans JP,Noto Sans JP Light:style=Light,Regular
[eclipse@sleepless ~]$ However, the same characters still look the same, i.e. inconsistent. Take a look: https://imgur.com/a/L7QFuN3
Offline
I'm pretty sure none of that is U+6E6F - also the titlebar doesn't look any different? (It's pretty small)
Also I don't see how you determine the first two glyphs to be a different font. Different from what?
What is your testcase scenario and what are the desired utf8 codepoints?
I'll point out that Noto Sans JP predominantly covers japanese glyphs and some Hangul, there's the massive noto cjk or alternatively adobe-source-han has a more fine grained split.
Offline
I'm pretty sure none of that is U+6E6F - also the titlebar doesn't look any different? (It's pretty small)
Also I don't see how you determine the first two glyphs to be a different font. Different from what?What is your testcase scenario and what are the desired utf8 codepoints?
I'll point out that Noto Sans JP predominantly covers japanese glyphs and some Hangul, there's the massive noto cjk or alternatively adobe-source-han has a more fine grained split.
I test using Gnome Text Editor. The screenshot shows that. The first one was U+4F53 and the last one was U+904A.
Installed Noto CJK, same thing.
Offline
https://www.compart.com/de/unicode/U+4F53
I'm not sure what you think is wrong w/ that? (Though I don't have the noto fonts installed and resolved them from osaka mono)
But either way
fc-list :charset=4F53
fc-list :charset=904AYou can also test
FC_DEBUG=4 pango-view --font="sans" -t "体" | grep family:to see the resolution cascade.
The hyphen looks strange-ish, but that depends on the actual codepoint you've tested.
Offline
https://www.compart.com/de/unicode/U+4F53
I'm not sure what you think is wrong w/ that? (Though I don't have the noto fonts installed and resolved them from osaka mono)
But either wayfc-list :charset=4F53 fc-list :charset=904AYou can also test
FC_DEBUG=4 pango-view --font="sans" -t "体" | grep family:to see the resolution cascade.
The hyphen looks strange-ish, but that depends on the actual codepoint you've tested.
Found it. There was a
/usr/share/fonts/noto/NotoSerifTangut-Regular.ttfwhich I removed, fixing the issue. Your command actually pointed towards the only serif font that had that character. Thanks for the help.
Last edited by average_scout (2024-08-10 20:09:04)
Offline