Ubuntu – Why is Firefox using archaic Japanese characters instead of modern ones

fonts

This problem keeps coming back, no matter how many times I've killed it. I am seeing undesired versions of Japanese characters in my interface. (Particularly in Firefox, if that makes a difference).

For example, when looking at the word 七福神, it looks to me like this:

enter image description here

However, the characters should look like this (taken from another computer):

enter image description here

The difference is on characters two and three. In the top example They have on the left side, whereas in the bottom example, they have . I prefer to have the version that has , especially since that's the one used in modern Japanese (In fact, I have no idea why any font would bother using the version with for Japanese, or why such a font would be some kind of default in Ubuntu).

This exact problem is addressed in this question, but there are a few reasons why the solutions there don't apply anymore. One is that the accepted answer is for Ubuntu Natty 11.04, and the configuration interfaces shown don't seem to exist anymore in Ubuntu Pangolin 12.04. At least, not for me, using Gnome Classic. Another issue is that the accepted answer alternately suggests editing /etc/fonts/fonts.conf, but that file clearly says at the top DO NOT EDIT THIS FILE. IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED. I could not figure out what fontconfig is – it doesn't seem to be a program.

The most important issue is, that the ideal would be that when setting system fonts, what I want to do is be able to specify a default English font and a default Japanese font. The only place I've found to specify system fonts is here under System Tools -> Preferences -> Advanced Settings:

enter image description here

The problem is that it doesn't differentiate between English and Japanese font displays.

In other words, what is happening is that my default system font for most situations is Ubuntu. When a character can't be found in Ubuntu, which is almost certainly always the case when the character is Japanese, it defaults to some other font for Japanese that I can't find or control.

So, what I can do for now is switch all the default fonts to a Japanese one, but then I sort of have the opposite problem – the way a lot of Japanese fonts handle English characters kind of sucks. For example, I like the Meiryo font for Japanese, but it renders English characters so wide it's ridiculous.

Bottom line: How can I set a default font for English (such as Ubuntu), and then a default Japanese font (such as Meiryo) for when Ubuntu needs to render a Japanese character?

Best Answer

Without manually messing with the fontconfig hierarchy, I think this just boils down to having the right subset of Japanese fonts installed.

For me, on a stock Ubuntu 12.04, installing the fonts-vlgothic Japanese package solved the problem. Could you try that?

  • Before (no extra fonts):

    enter image description here

  • After installing fonts-vlgothic:

    enter image description here


enter image description here

Related Question