Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: lang-specific overrides rule doesn't work as expected
https://bugzilla.redhat.com/show_bug.cgi?id=578050
Summary: lang-specific overrides rule doesn't work as expected Product: Fedora Version: rawhide Platform: All OS/Version: Linux Status: NEW Severity: medium Priority: low Component: wqy-microhei-fonts AssignedTo: petersen@redhat.com ReportedBy: tagoh@redhat.com QAContact: extras-qa@fedoraproject.org CC: petersen@redhat.com, phuang@redhat.com, i18n-bugs@lists.fedoraproject.org, pwu@redhat.com Depends on: 578015 Blocks: 507684 Estimated Hours: 0.0 Classification: Fedora Target Release: ---
Description of problem: All of detailed information is available on my post at the fonts list: http://lists.fedoraproject.org/pipermail/fonts/2010-March/001117.html
binding="same" in the fontconfig config file prevents to apply the rule for the specific language only properly. As a result, fonts is used for non-targetted languages and it may gives different look and feel in some cases.
I'd propose to get rid of binding="same" from: 65-wqy-microhei.conf
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=578050
Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|petersen@redhat.com |pwu@redhat.com
--- Comment #1 from Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com 2010-04-15 02:00:21 EDT --- This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=578050
Peng Wu pwu@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
--- Comment #2 from Peng Wu pwu@redhat.com 2010-04-19 02:09:51 EDT --- Fixed in wqy-microhei-fonts-0.2.0-0.3.beta.fc13.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=578050
--- Comment #3 from Fedora Update System updates@fedoraproject.org 2010-04-19 02:31:10 EDT --- wqy-microhei-fonts-0.2.0-0.3.beta.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/wqy-microhei-fonts-0.2.0-0.3.beta.fc1...
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=578050
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #4 from Fedora Update System updates@fedoraproject.org 2010-04-20 09:35:45 EDT --- wqy-microhei-fonts-0.2.0-0.3.beta.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update wqy-microhei-fonts'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/wqy-microhei-fonts-0.2.0-0.3.beta.fc1...
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=578050
--- Comment #5 from Akira TAGOH tagoh@redhat.com 2010-04-26 04:09:25 EDT --- Testing result without wqy-zenhei-fonts due to its priority thing: # rpm -qa wqy-microhei-fonts wqy-microhei-fonts-0.2.0-0.3.beta.fc13.noarch # fc-match monospace:lang=en DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book" # fc-match monospace:lang=en-us DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book" # fc-match monospace:lang=zh wqy-microhei.ttc: "WenQuanYi Micro Hei" "Regular" # fc-match monospace:lang=zh-cn wqy-microhei.ttc: "文泉驛微米黑" "Regular" # fc-match monospace:lang=zh-hk hanazono.ttf: "HanaMin" "Regular" # fc-match monospace:lang=zh-sg wqy-microhei.ttc: "文泉驛微米黑" "Regular" # fc-match monospace:lang=zh-tw hanazono.ttf: "HanaMin" "Regular"
That looks good though, the font for zn-cn and zh-sg was picked up by the implicit rules in fontconfig that happens when no explicit rules and fallback to the fonts. so
<test name="lang"> <string>zh</string> </test>
should be
<test name="lang"> <string>zh-cn</string> <string>zh-sg</string> </test>
since most applications gives the language with ll-cc in the query from current locale.
# fc-match sans:lang=en DejaVuSans.ttf: "DejaVu Sans" "Book" # fc-match sans:lang=en-us DejaVuSans.ttf: "DejaVu Sans" "Book" # fc-match sans:lang=zh wqy-microhei.ttc: "WenQuanYi Micro Hei" "Regular" # fc-match sans:lang=zh-cn wqy-microhei.ttc: "文泉驛微米黑" "Regular" # fc-match sans:lang=zh-hk hanazono.ttf: "HanaMin" "Regular" # fc-match sans:lang=zh-sg wqy-microhei.ttc: "文泉驛微米黑" "Regular" # fc-match sans:lang=zh-tw hanazono.ttf: "HanaMin" "Regular"
Same the above.
# fc-match serif:lang=en DejaVuSerif.ttf: "DejaVu Serif" "Book" # fc-match serif:lang=en-us DejaVuSerif.ttf: "DejaVu Serif" "Book" # fc-match serif:lang=zh hanazono.ttf: "HanaMin" "Regular" # fc-match serif:lang=zh-cn wqy-microhei.ttc: "文泉驛微米黑" "Regular" # fc-match serif:lang=zh-hk hanazono.ttf: "HanaMin" "Regular" # fc-match serif:lang=zh-sg wqy-microhei.ttc: "文泉驛微米黑" "Regular" # fc-match serif:lang=zh-tw hanazono.ttf: "HanaMin" "Regular"
No explicit rules for serif in wqy-microhei-fonts.
# for i in $(ls /usr/share/locale|grep -v -E "^(zh)$"); do fc-match sans:lang=$i|grep -E "^(WenQuanYi Micro Hei)$"; [ $? = 0 ] && echo $i; done
No affects to other languages.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=578050
Peng Wu pwu@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution| |ERRATA
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=578050
Bug 578050 depends on bug 578015, which changed state.
Bug 578015 Summary: l10n-font-template.conf doesn't work as expected https://bugzilla.redhat.com/show_bug.cgi?id=578015
What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Status|ASSIGNED |MODIFIED Resolution| |CURRENTRELEASE Status|MODIFIED |CLOSED
i18n-bugs@lists.fedoraproject.org