Support all languages in fontconfig, language-selector is not enough
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
language-selector (Ubuntu) |
Fix Released
|
Undecided
|
Arne Goetje |
Bug Description
Binary package hint: language-selector
CJK language support in Ubuntu is substandard. Removing the fonts from fontconfig, and placing them in the language-selector package is good for modularity; however, it wasn't done right.
The first problem is that for example the ja_JP file does not include the default latin fonts, so any latin text will be ugly. I haven't checked, but I have the feeling that "exotic" letters like é, á, ő, ű (accented or double-accented e, a, o, u) would not even be displayed correctly. So I had to create my own en_JP file.
The second is, why do I have to CHOOSE between Japanese and Chinese? If I choose ja_JP, Chinese characters will not be displayed. And it is true in the other way around, too. It's very stupid.
What I suggest is that all font configurations under language-selector list the same (all?) fonts. The difference could be the order of the fonts. In a Japanese setting, the Japanese fonts would get higher priority, while in a Chinese one, the Chinese fonts. In this way, a Japanese system could display Chinese text too, and vice versa, and the different symbols with the same unicode would be displayed according to the "preferred" language.
Please have a look at the attachment: Fedora includes all these fonts in the configuration file by default, so the user is able to view Japanese AND Chinese text without changing anything.
Changed in language-selector: | |
assignee: | nobody → arnegoetje |
At least for Hardy this should not be a problem any more. The locale specific font preferences have a "prepend" binding. That means they will be put at the beginning of the font list, which is composed by fontconfig. Other matching fonts for the same family will be appended. A list containing all available fonts on the system is therefor not necessary.
For the accented Latin characters: obviously Japanese users don't use any Latin characters besides ASCII, or their fonts would include them. We got the preferred fonts list from the Japanese community and it seems they prefer the Latin characters to be displayed with the same font as the rest of their Japanese characters.
The question why you need to choose between Chinese and Japanese is easily answered: Any CJK font in the system only contains a subset of the encoded CJK ideographs, namely those which are needed for the specific language the font was made for. An exception to this is currently only "WenQuanYi ZenHei", which contains all basic CJK ideographs which are used in all CJK regions, but uses the simplified Chinese glyph shapes. This might not suit Japanese users.
However, choosing ja_JP should give you a Japanese font for the Japanese characters plus ASCII, and other fonts on the system will be used to render the rest of the characters, including Chinese.
If you prefer a different setting than this, I'm afraid there is currently no other possibility than to hack your own fontconfig configuration together and put it into ~/.fonts.conf .
So, I'd like to set this bug to "invalid", because the functionality is there and it works in Hardy. If you still think this bug is valid, please support us with more information and a few screenshots, so that we can see how the characters are rendered on your system. Please state at least which release version and which flavor (Ubuntu, Kubuntu, Kubuntu KDE4, etc.) you are using.