| Summary: | lang rule matches unexpected lang | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Yao Ziyuan <yaoziyuan> |
| Component: | fontconfig | Assignee: | Akira TAGOH <tagoh> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | fonts-bugs, i18n-bugs, kent.neo, petersen, piotrdrag, pnemade, pwu, tagoh, trans-zh_tw |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-09-25 04:24:15 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Yao Ziyuan
2012-01-01 08:27:11 UTC
Ideally, we should be able to have both TC and SC fonts installed without affecting things. Perhaps this can be fixed in the fontconfig configuration? Yes. we could improve the configuration file in fonts packages and actually there are roughly two problems here. 1. cjkuni-ukai-fonts doesn't have the language specific rule. this would be the root cause on this issue. this should also affects all of releases, even rawhide. 2. as I filed so many bugs about malformed configuration, it's not yet fixed in f16 branch for cjkuni-uming-fonts (Bug#837523) and wqy-zenhei-fonts (Bug#837524). this may potentially causes a trouble in some cases. So reassigning to cjkuni-ukai-fonts to fix it so far. also ping on those two bugs to update in f16 too. Sorry, not reproducible. Do you have some customization in ~/.fonts.conf.d or ~/.fonts.conf? Okay, after further investigation, this would explains all:
$ FC_DEBUG=4 fc-match monospace:lang=zh-cn
...
FcConfigSubstitute test pattern any lang Equal "zh-hk"
FcConfigSubstitute test pattern any family Equal "monospace"
Substitute match
pattern any lang Equal "zh-hk"
pattern any family Equal "monospace"
edit
Edit family Prepend "AR PL UMing HK";
Prepend list before "DejaVu Sans Mono"(w) "Bitstream Vera Sans Mono"(w) "DejaVu
Sans Mono"(w) "Inconsolata"(w) "Andale Mono"(w) "Courier New"(w) "Cumberland AM
T"(w) "Luxi Mono"(w) "Nimbus Mono L"(w) "Courier"(w) "monospace"(s) "VL Gothic"(
w)
Prepend list after "DejaVu Sans Mono"(w) "Bitstream Vera Sans Mono"(w) "DejaVu
Sans Mono"(w) "Inconsolata"(w) "Andale Mono"(w) "Courier New"(w) "Cumberland AMT
"(w) "Luxi Mono"(w) "Nimbus Mono L"(w) "Courier"(w) "AR PL UMing HK"(w) "monospa
ce"(s) "VL Gothic"(w)
FcConfigSubstitute editPattern has 2 elts (size 16)
family: "DejaVu Sans Mono"(w) "Bitstream Vera Sans Mono"(w) "DejaVu Sans
Mono"(w) "Inconsolata"(w) "Andale Mono"(w) "Courier New"(w) "Cumberland AMT"(w)
"Luxi Mono"(w) "Nimbus Mono L"(w) "Courier"(w) "AR PL UMing HK"(w) "monospace"(
s) "VL Gothic"(w)
lang: zh-cn(s)
...
After applying a backport patch:
$ fc-match monospace:lang=zh-cn
wqy-zenhei.ttc: "WenQuanYi Zen Hei Sharp" "Regular"
assigning back to fontconfig again.
fontconfig-2.8.0-8.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/fontconfig-2.8.0-8.fc17 fontconfig-2.8.0-8.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/fontconfig-2.8.0-8.fc16 Package fontconfig-2.8.0-8.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing fontconfig-2.8.0-8.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-13616/fontconfig-2.8.0-8.fc16 then log in and leave karma (feedback). fontconfig-2.8.0-8.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. fontconfig-2.8.0-8.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |