Comment 20 for bug 1468027

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

On 2016-01-12 06:37, Aron Xu wrote:
> The MIR has been accepted, would you mind to review the l-s changes?

Not at all, I'll do that. Are we talking about Chinese only at this time?

Please note that the seeds of all the flavors need to be changed in the same manner as in your linked merge proposal for ubuntu.xenial.

> I'll continue to track what to do in fonts-noto-cjk.

One thing is that we need an equivalent to the config file in fonts-droid in order to make fonts-noto-cjk co-exist with the fonts-arphic-* packages, i.e. to prevent that UKai and UMing is picked over Noto by default when there is a non-Chinese locale. (See the discussion in bug #1227034.) I played with a possible config file, which may or may not be sufficient for the purpose:

$ cat /etc/fonts/conf.d/64-fonts-noto-cjk.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
        <alias>
                <family>sans-serif</family>
                <prefer>
                        <family>Noto Sans CJK SC</family>
                        <family>Noto Sans CJK TC</family>
                </prefer>
        </alias>
</fontconfig>
$ LANG=en_US.UTF-8 fc-match -a | grep -iE 'noto|ar pl' | head -20
NotoSansCJK.ttc: "Noto Sans CJK SC" "DemiLight"
NotoSansCJK.ttc: "Noto Sans CJK SC" "Regular"
NotoSansCJK.ttc: "Noto Sans CJK SC" "Medium"
NotoSansCJK.ttc: "Noto Sans CJK SC" "Thin"
NotoSansCJK.ttc: "Noto Sans CJK SC" "Light"
NotoSansCJK.ttc: "Noto Sans CJK SC" "Bold"
NotoSansCJK.ttc: "Noto Sans CJK SC" "Black"
NotoSansCJK.ttc: "Noto Sans CJK TC" "DemiLight"
NotoSansCJK.ttc: "Noto Sans CJK TC" "Regular"
NotoSansCJK.ttc: "Noto Sans CJK TC" "Medium"
NotoSansCJK.ttc: "Noto Sans CJK TC" "Thin"
NotoSansCJK.ttc: "Noto Sans CJK TC" "Light"
NotoSansCJK.ttc: "Noto Sans CJK TC" "Bold"
NotoSansCJK.ttc: "Noto Sans CJK TC" "Black"
ukai.ttc: "AR PL UKai CN" "Book"
ukai.ttc: "AR PL UKai HK" "Book"
ukai.ttc: "AR PL UKai TW" "Book"
uming.ttc: "AR PL UMing CN" "Light"
uming.ttc: "AR PL UMing HK" "Light"
uming.ttc: "AR PL UMing TW" "Light"

But this certainly needs to be tested by users who speak Chinese.