Thanks for your comments!

The Chinese fontconfig files, which reside in language-selector, is a
result of many discussions in bug reports and Chinese forums. Indeed
there may be reasons for reconsidering the setup, but before changing
it, the topic needs to be discussed and agreed upon by several Chinese
users.

Droid Sans Fallback is currently the default font for rendering Chinese
contents irrespective of the session locale, so as long as we are only
talking about that font, it ought to be possible to drop the language-
selector files. But also other fonts are installed for Chinese users,
and it's a little more complex.

Even if the fonts are strongly binded in the language-selector files,
it's possible to override them. This is an example of how you can set
another preferred font for an individual user:

$ cat ~/.config/fontconfig/conf.d/90-my-chinese.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
        <match target="pattern">
                <test name="lang" compare="contains">
                        <string>zh</string>
                </test>
                <test qual="any" name="family">
                        <string>sans-serif</string>
                </test>
                <edit name="family" mode="prepend" binding="strong">
                        <string>WenQuanYi Micro Hei</string>
                </edit>
        </match>
</fontconfig>
$ LANG=zh_HK.UTF-8 fc-match
wqy-microhei.ttc: "文泉驛微米黑" "Regular"
$ 

Anyway, to proceed with this, more people would need to be involved. One
question is whether now is the right time to hold such a discussion. You
mentioned Noto Sans CJK, and that font may be an option going forward,
but as far as I know it's not packaged yet due to some unresolved
license issue. Possibly it would be better to wait with discussing the
Chinese font setup until Noto Sans CJK is a valid option.

@Aron, what's your view?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1458368

Title:
  some language-selector fontconfig should not exist

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/language-selector/+bug/1458368/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to