You are not logged in.

#1 2024-11-10 00:49:44

zbik
Member
Registered: 2024-11-02
Posts: 5

[SOLVED] cjk fonts are pixelated

hey, i'm racking my brain trying to figure this out, for some reason cjk fonts on librewolf look like this for me while they should be looking like here on kate.

haven't changed any librewolf/system font settings, here's the fonts.conf file.

Last edited by zbik (2024-11-11 13:32:40)

Offline

#2 2024-11-10 09:42:42

seth
Member
Registered: 2012-09-03
Posts: 58,669

Re: [SOLVED] cjk fonts are pixelated

This is gonna hinge on the glyph resolution/font substitution of the (different) base fonts in kate and librewolf (provided the latter isn't some flatschpak)

fc-list :charset=6e6f
FC_DEBUG=4 pango-view --font="monospace" -t "湯" | grep family:
FC_DEBUG=4 pango-view --font="sans" -t "湯" | grep family:

You also want to use the librewolf web inspector to see what CSS rules select which specific font for the concerned text (rather than monospace or sans)

Offline

#3 2024-11-10 10:31:07

zbik
Member
Registered: 2024-11-02
Posts: 5

Re: [SOLVED] cjk fonts are pixelated

both pango-view commands result in pixelated characters

web inspector shows that the font used to display cjk characters in librewolf is AR PL New Sung

Offline

#4 2024-11-10 10:34:02

seth
Member
Registered: 2012-09-03
Posts: 58,669

Re: [SOLVED] cjk fonts are pixelated

both pango-view commands result in pixelated characters

The main information is the output this actually prints, what font do you use in kate and what's the fc-list output?

Offline

#5 2024-11-10 20:17:13

zbik
Member
Registered: 2024-11-02
Posts: 5

Re: [SOLVED] cjk fonts are pixelated

kate seems to be using hack, here's the fc-list output

i'm pretty sure this is an issue with firefox because japanese filenames display well in dolphin and the system font is noto sans.

Offline

#6 2024-11-10 21:16:00

seth
Member
Registered: 2012-09-03
Posts: 58,669

Re: [SOLVED] cjk fonts are pixelated

FC_DEBUG=4 pango-view --font="hack" -t "湯" | grep family:

will likely also resolve Noto?

I don't think it's adobe-han, so the problematic font resolved by FF is most likely

/usr/share/fonts/TTF/odokai.ttf: AR PL New Kai,文鼎PL新中楷:style=Regular
/usr/share/fonts/TTF/odosung.ttc: AR PL New Sung Mono,文鼎PL新宋 Mono:style=Reguler,Regular
/usr/share/fonts/TTF/odosung.ttc: AR PL New Sung,文鼎PL新宋:style=Reguler,Regular

from the opendesktop-fonts package.
What if you get rid of those?

Offline

#7 2024-11-10 23:17:20

zbik
Member
Registered: 2024-11-02
Posts: 5

Re: [SOLVED] cjk fonts are pixelated

worked like a charm, thank you so much! didn't even notice i had opendesktop-fonts installed.

firefox now uses Source Han Sans CN for cjk.

Offline

#8 2024-11-10 23:26:30

seth
Member
Registered: 2012-09-03
Posts: 58,669

Re: [SOLVED] cjk fonts are pixelated

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB