Closed
Bug 526949
Opened 15 years ago
Closed 15 years ago
[FyFx] Custom @font-face font for scripts other than latin
Categories
(Webtools Graveyard :: Five Years of Firefox, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: timdream, Assigned: andres)
References
Details
(Keywords: l12y)
Attachments
(6 files, 1 obsolete file)
338.05 KB,
image/png
|
Details | |
842 bytes,
patch
|
Details | Diff | Splinter Review | |
385 bytes,
patch
|
Details | Diff | Splinter Review | |
31.57 KB,
application/octet-stream
|
Details | |
145.32 KB,
image/png
|
Details | |
8.80 KB,
application/octet-stream
|
Details |
Per bug 525857#c14, I propose we add a font other than Folk solid that contains Unicode characters. Typical Unicode font is usually in MBs, but we could create a "subset font" that only contains characters on the titles.
Without the font, the default font is a bit ugly (see attachment) and could not deliver the same experience (and the technology) we want to show across the locale.
Propose steps:
1) Wait for non-Latin locale finish transation the title.
2) Choose an artistically and free-licensed font (I propose Droid Sans).
3) Collect all the titles and their Unicode codepoint.
4) Make the subset font with MS WEFT (.eot) and FontForge (.ttf)
5) Add additional @font-face entry to CSS.
6) Append the name of the font after "Folk solid" in every font-family: properties (So non-Latin chars would fall back to the font but not to the system default).
So far I have difficulties at (4) with FontForge (width information got deleted), however I have no idea whether any other tools available. I haven't tried MS WEFT but it shouldn't be a problem.
For (5) and (6) I can contribute patch(es).
So is the solution acceptable? If not I should drop the whole thing without spending time exploring FontForge...
Updated•15 years ago
|
Summary: [FyFx] Costom @font-face font for scripts other than latin → [FyFx] Custom @font-face font for scripts other than latin
Reporter | ||
Comment 1•15 years ago
|
||
Just got the subset font working with help of a friend. He handcrafted a script from spec that extract all the characters needed.
The DroidSansFallback-subset.ttf that contains only 10 chars ("五週年!點亮世界社群" in <h1> and <h2>) has only 4644 bytes :)
Tim
Reporter | ||
Updated•15 years ago
|
Updated•15 years ago
|
Assignee: nobody → carlos.ferro
Reporter | ||
Comment 2•15 years ago
|
||
Reporter | ||
Comment 3•15 years ago
|
||
Contains following characters extracted from messages.po:
五週年!
點亮世界
社群
五岁了
照亮世界
社区
周年
世界を照らそう
コミュニティー
Reporter | ||
Comment 4•15 years ago
|
||
The same subset font, eot format for IE.
I am having problems creating eot file with MS Weft 5.3.2:
* I cannot set Allowed Hosts to "Allow all hosts", so I can only set http://fyfx.mozilla.com/ and http://fyfx.stage.mozilla.com/ to allowed hosts.
(IE will simply ignore the font if the page is not hosted on the site allow to embed the font created)
* This file does not seems to work with IE6 and IE7 (i.e. IE8 only), however Folksolid.eot does.
Reporter | ||
Comment 5•15 years ago
|
||
A demonstration after applying Droid Sans.
Reporter | ||
Comment 6•15 years ago
|
||
Dear Ferro,
Since the site is going to launch on Monday, is it possible to land these changes first?
Tim
Comment 7•15 years ago
|
||
Tim, the team is currently working on a general font issue but I will make sure they look into this issue and comment here.
Assignee | ||
Comment 8•15 years ago
|
||
Hi Tim,
patches and Droid Font implemented (Revision 55436).
I made some changes to the patches since the font-face implementation has changed a bit in the current revision. Please confirm.
thank you!!!!
Assignee | ||
Comment 9•15 years ago
|
||
hmm.. I reversed the changes because conflicts with other languages occurred. I'm going to verify that and will go back to you in a bit.
Assignee | ||
Comment 10•15 years ago
|
||
(In reply to comment #6)
> Dear Ferro,
>
> Since the site is going to launch on Monday, is it possible to land these
> changes first?
>
> Tim
Hi Tim, I converted the TTF font to EOT and seems that is working now in both windows/mac (TTF caused some problems on FF Mac).
Please let me know if all works as expected
Andres
Assignee: carlos.ferro → andres
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•15 years ago
|
||
Tim, I noticed that the japanese version:
http://fyfx.stage.mozilla.com/ja/
Has a problem in the "go to SpreadFirefox" link.
As discussed in the Bug 527114 Comment #13, If the word "SpreadFIREFOX" is followed by the phrase "go to", the last one should be removed:
<span></span><span class="spreadfirefox-text">SpreadFirefox</span>
Leaving just the "SpreadFirefox" text.
Reporter | ||
Comment 12•15 years ago
|
||
Following characters is included: " 5주년커뮤니티세상을 밝혀봐요五週年!點亮世界社群五岁了照亮世界社区周年世界を照らそうコミュニティー"
Please commit and create other formats. Thanks!
Attachment #410968 -
Attachment is obsolete: true
Reporter | ||
Updated•15 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 13•15 years ago
|
||
(In reply to comment #12)
> Created an attachment (id=411017) [details]
> subset of DroidSansFallback.ttf contains characters from zh-TW, zh-CN, ja, and
> ko.
>
> Following characters is included: " 5주년커뮤니티세상을
> 밝혀봐요五週年!點亮世界社群五岁了照亮世界社区周年世界を照らそうコミュニティー"
>
> Please commit and create other formats. Thanks!
TTF converted to OTF and EOT... please confirm.
thank you.
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 14•15 years ago
|
||
Confirmed. Korean (ko) scripts showed up.
I noticed that there are locale-specific layout tweaks in fyfx.js ... mind tweaking ko a bit?
Assignee | ||
Comment 15•15 years ago
|
||
Hi Tim... Done.
Waiting for confirmation...
thanks!
Reporter | ||
Comment 16•15 years ago
|
||
Cool! Thanks.
Comment 17•15 years ago
|
||
Hey Tim,
Any chance you could make Polish <http://fyfx.stage.mozilla.com/pl/> render as beautifully as Slovak <http://fyfx.stage.mozilla.com/sk/> ? :)
The headlines are:
PIĘĆ LAT FIREFOKSA
OŚWIEĆ ŚWIAT
SPOŁECZNOŚĆ
Thanks in advance!
Reporter | ||
Comment 18•15 years ago
|
||
(In reply to comment #17)
> Any chance you could make Polish <http://fyfx.stage.mozilla.com/pl/> render as
> beautifully as Slovak <http://fyfx.stage.mozilla.com/sk/> ? :)
Droid Sans Fallback does not contain these alphabets, I think they would be able to create new glyphs in Folk solid.
You need to log in
before you can comment on or make changes to this bug.
Description
•