Hi everyone. I’m having a bit of trouble with trying to get Japanese text to appear properly in non-KDE programs.For example, 日本語 appears exactly as expected in programs like Kate, Dolphin and Konsole, but in programs like Firefox, Libre, and Audacity, it just appears as boxes that usually containing (what I assume are) Unicode codepoints.
A few days ago, I did a fresh install of openSuse Leap 16, upgrading from openSuse Leap 15.3. I can’t remember what I did (if anything at all) to have Firefox display Japanese text correctly, but my first thought after installing Leap 16, was to go straight to YaST and install a language pack or fonts or whatever from there, but YaST doesn’t seem to exist any more.
So how do I go about acquiring and installing Japanese fonts for openSuse Leap 16, so that the fonts are available to all programs running under any user account?
YaST isn’t required for this. Myrlyn can be used to search for and install the font package(s). After that run fc-cache -f, and restart Firefox, LO etc.
You can do sudo fc-cache -f for systemwide font cache rebuild.
knurpht@Lenovo-P16:/etc/grub.d> zypper se jp | grep fonts
| adobe-sourcehansans-jp-fonts | Source Han Sans variation for Japanese | pakket
| adobe-sourcehanserif-jp-fonts | Source Han Serif variation for Japanese | pakket
| gnu-unifont-jp-otf-fonts | GNU Unifont Japanese (OpenType Format) | pakket
| google-noto-sans-jp-fonts | Noto Sans Japanese Font | pakket
| google-noto-sans-jp-mono-fonts | Noto Sans Japanese Font - Monospace | pakket
| google-noto-serif-jp-fonts | Noto Serif Japanese Font | pakket
| texlive-convert-jpfonts | Convert half-width Japanese to full-width beautifully | pakket
| texlive-convert-jpfonts-doc | Documentation for texlive-convert-jpfonts | pakket
knurpht@Lenovo-P16:/etc/grub.d>
Thanks Gertjan. I think google-noto-sans-jp-fonts is probably the most appropriate choice here. The Adobe fonts are alternatives, and the TeX Live packages aren’t needed just to get Japanese text displaying in normal desktop applications.
Awesome. Thanks for the help guys. I went primarily for vector format fonts, so that when I’m using them in things like GIMP, where the fonts may need to sit at some fraction of a standard font size, or be deformed along a path, they can still look clean and clear.
Thanks for the zypper trick! I didn’t know it was possible to search packages like that. Cool stuff.
I actually ran into that font issue earlier myself (noticed it with Spotify first), but installing google-noto-sans-cjk-fonts cleared it up system-wide for me too.
Yeah. I was wondered how people were supposed to find packages if they didn’t know exactly what they were looking for after YaST and its package search feature had been taken 'round the back of the shed.