Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: cjkuni-uming-fonts .conf file breaks font lookup by lang

https://bugzilla.redhat.com/show_bug.cgi?id=589974

           Summary: cjkuni-uming-fonts .conf file breaks font lookup by
                    lang
           Product: Fedora
           Version: rawhide
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: medium
          Priority: low
         Component: cjkuni-fonts
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Fedora
    Target Release: ---


Description of problem:
Once cjkuni-uming-fonts is installed fc-match :lang=zh-cn stops working. i.e.
when querying for a font by zh-* language you get fonts that don't support
those languages.

Version-Release number of selected component (if applicable):
cjkuni-uming-fonts-0.2.20080216.1-37.fc13.noarch

How reproducible:
100%

Steps to Reproduce:

1. start without any cjkuni-*-fonts installed
2. install some other zh supporting fonts, e.g. yum install wqy-zenhei-fonts
3. LANG=C fc-match ":lang=zh-cn"
wqy-zenhei.ttc: "WenQuanYi Zen Hei" "Regular"
4. yum -y install cjkuni-uming-fonts
3. LANG=C fc-match ":lang=zh-cn"
DejaVuSans.ttf: "DejaVu Sans" "Book"
and that font does not support zh-cn
5. mv /etc/fonts/conf.d/64-ttf-arphic-uming.conf /tmp
6. LANG=C fc-match ":lang=zh-cn"
wqy-zenhei.ttc: "WenQuanYi Zen Hei" "Regular"

i.e. /etc/fonts/conf.d/64-ttf-arphic-uming.conf causes this, looking closer at
it I see..

<test name="lang" compare="contains">
  <string>zh</string>
</test>
<edit name="family" mode="prepend" binding="strong">
  <string>Bitstream Vera Sans</string>
  <string>DejaVu Sans</string>
  <string>AR PL UMing HK</string>
  <string>AR PL UMing CN</string>
</edit>

This looks bogus to me. prepend Bitstream and DejaVu to the list (if I'm
reading this right) when the language is zh* ? Surely it should at least be...

<edit name="family" mode="prepend" binding="strong">
  <string>AR PL UMing HK</string>
  <string>AR PL UMing CN</string>
</edit>

Doing that I get...

LANG=C fc-match ":lang=zh-cn"
uming.ttc: "AR PL UMing HK" "Light"

which makes a lot more sense.

Perhaps the .conf should also do more precise matching to suggest the HK
variant for traditional zh language tags and the CN one for simplified zh
language tags

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
fonts-bugs mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/fonts-bugs
http://fonts.fedoraproject.org/

Reply via email to