Closed
Bug 754287
Opened 13 years ago
Closed 13 years ago
Open Sans fonts in Sandstone theme does not cover non-English locales
Categories
(www.mozilla.org :: General, defect)
www.mozilla.org
General
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: pascalc, Assigned: sgarrity)
References
Details
(Whiteboard: r=105512 b=trunk)
The translation of the partners page exposes the bug that we only have ascii letters in our Open Sans @fontface rule:
https://www-dev.allizom.org/b/fr/apps/partners/
We need the font to cover more languages (latin extended and cyrillic at least).
Thanks
Assignee | ||
Comment 1•13 years ago
|
||
A non-subsetted version of the font (with all available characters) is available, but significantly larger. The file sizes vary with variant and format, but a typical example would be the Open Sans Light EOT format:
English subset: 20Kb
All characters: 108Kb
Pascal, do you think we should just use the non-subsetted font for everyone (simpler, but a download-size hit for everyone), or try to serve a different font based on locale?
Reporter | ||
Comment 2•13 years ago
|
||
I think we should vary per locale, a first step could be to serve the English only subset for en-US and the full set for locales, this would allow to add a per locale logic to the code. Then we can refine with sets of locales (for example western european locales wouldn't need to have cyrillic or arabic sets included).
Reporter | ||
Comment 3•13 years ago
|
||
Note that this is hindering localization of new pages on mozilla.org since all new pages use this font and we need to push at least new pt-BR pages in June, it would be good to have that bug fixed as soon as possible. Thanks
Severity: normal → critical
Assignee | ||
Comment 4•13 years ago
|
||
Pascal, I've got a non-subsetted version of the Open Sans font files in a github branch:
https://github.com/sgarrity/bedrock/compare/bug-754287-opensans
Any suggestions on how to implement the locale detection / varying?
Reporter | ||
Comment 5•13 years ago
|
||
On the php site, I would just create arrays with locales and in the template include different fonts depending on the page's locale. I don't understand enough Python (and even less the django/paydoh/bedrock stack) to give technical suggestions though, so I would say that the implementation details are in your and the webdev team hands, sorry.
Assignee | ||
Comment 6•13 years ago
|
||
Pascal, I've updated this branch with the MacRoman subset of characters from Font Squirrel (http://www.fontsquirrel.com/fonts/open-sans). Can you confirm that this gives you what you need?:
https://github.com/sgarrity/bedrock/compare/bug-754287-opensans
Reporter | ||
Comment 7•13 years ago
|
||
Steven, is it possible to test your branch without doing a full reinstall from your github branch?
Assignee | ||
Comment 8•13 years ago
|
||
(In reply to Pascal Chevrel:pascalc from comment #7)
> Steven, is it possible to test your branch without doing a full reinstall
> from your github branch?
It might easiest to just drop in the fonts in your local copy. I've put them in a zip here: http://labs.silverorange.com/files/mozilla/fonts.zip
They go in /media/fonts/
Reporter | ||
Comment 9•13 years ago
|
||
Thanks Steven, I tried Spanish, Portuguese and French pages with these updated fonts and they all display correctly now. I think we should keep this bug open because we have many locales to test (especially those using cyrilluc or Asian scripts), but this is no longer blocking our apps/partners page localization for June.
No longer blocks: 752692
Comment 10•13 years ago
|
||
Commits pushed to dev at https://github.com/mozilla/bedrock
https://github.com/mozilla/bedrock/commit/052b3766085552f6d9930c91ced4f467728b06f5
Add non-subsetted versions of Open Sans fonts
(Bug 754287)
https://github.com/mozilla/bedrock/commit/66f187c5dee0a014669e9856be05bea7695152e4
Try the MacRoman subset of characters for Open Sans
(Bug 754287)
https://github.com/mozilla/bedrock/commit/61da18a5b38e6e3a8e5b91b6bed38ac182f05447
Merge pull request #127 from sgarrity/bug-754287-opensans
Bug 754287 opensans
Assignee | ||
Comment 11•13 years ago
|
||
The western languages subset is now in Master and will go into production with the next push (probably tomorrow).
Assignee | ||
Comment 12•13 years ago
|
||
Also updated the Open Sans font in the PHP site in trunk (r105512).
Whiteboard: r=105512 b=trunk
Comment 13•13 years ago
|
||
Pascal can you verify if fixed. The last two comments have this in production (im resolving, reopen if still an issue.)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 14•13 years ago
|
||
This is no longer a blocker for most languages (particularily for Spanish and Portuguese for which we have a special focus), I have a separate bug open to cover eastern European languages (bug 776905) in which we will use the solution mentioned in this bug in comment #2, the two bugs are similar but let's keep this one closed yes
Status: RESOLVED → VERIFIED
Updated•13 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in
before you can comment on or make changes to this bug.
Description
•