You are not logged in.
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
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
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
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
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
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
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
\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