Bug 1174935
Summary: | Roboto Black and Roboto Condensed have bad metadata which results in misrendered web pages (among other things) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nicholas Miell <nmiell> | ||||||
Component: | google-roboto-fonts | Assignee: | David Tardon <dtardon> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 21 | CC: | dtardon, fonts-bugs, i18n-bugs, nmiell, pnemade, tagoh | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | google-roboto-fonts-1.2-8.fc20 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-01-03 18:58:27 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Nicholas Miell
2014-12-16 19:31:59 UTC
what does fc-match Roboto say? and can you attach the log for that with FC_DEBUG=3? Created attachment 969863 [details]
Output of FC_DEBUG=3 fc-match Roboto
$ fc-match Roboto
Roboto-Black.ttf: "Roboto" "Black"
what a font do you expect to be matched? I would expect Roboto to match Roboto Regular, but it looks like Roboto Black has a weight of 80 instead of 210, so I guess this is a problem with the font files themselves. That's true. if the score is the same, first one is preferred. so it needs to be fixed in a font right. The various Roboto Black fonts have (in fontconfig terms) a weight of 80 when they should have a weight of 210. Similarly, the various Roboto Condensed fonts have a width (again in fontconfig terms) of 100 when they should have a width of 75. This problem appears to have already been fixed in the upstream font files. I updated the package to use the zip file referenced in http://www.google.com/design/spec/style/typography.html# . I hope that is the latest version. Doesn't look like it, the Black fonts still have the wrong weights and the Condensed the wrong widths. The corrected version I saw came from http://www.google.com/fonts#UsePlace:use/Collection:Roboto and from the hg repositoriy, but it looks like Google Fonts dynamically generates font subsets and the hg has font files split into multiple languages, so I'm not sure how useful they are. google-roboto-fonts-1.2-6.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/google-roboto-fonts-1.2-6.fc21 google-roboto-fonts-1.2-6.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/google-roboto-fonts-1.2-6.fc20 Created attachment 970762 [details]
Fontconfig rules to fix metadata
How about fixing the metadata in the Fontconfig rules? My Fontconfig-fu is weak, but I've attached a suggested patch that appears to do the right thing. (It also fixes the Thin weights to distinguish them from Light.)
By the way, I think the Fontconfig rules are currently swapped in the installed packages, so that the condensed fontconfig goes with "normal" package and vice versa.
Package google-roboto-fonts-1.2-6.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing google-roboto-fonts-1.2-6.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-17236/google-roboto-fonts-1.2-6.fc20 then log in and leave karma (feedback). All right, lets give it another try... I cannot verify that the patch works, as I am getting $ fc-match Roboto Roboto-Medium.ttf: "Roboto" "Medium" whether it is applied or not. But at least the .conf files are in the right subpackages now. google-roboto-fonts-1.2-8.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/google-roboto-fonts-1.2-8.fc21 google-roboto-fonts-1.2-8.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/google-roboto-fonts-1.2-8.fc20 Package google-roboto-fonts-1.2-8.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing google-roboto-fonts-1.2-8.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-17572/google-roboto-fonts-1.2-8.fc21 then log in and leave karma (feedback). google-roboto-fonts-1.2-8.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. google-roboto-fonts-1.2-8.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |