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)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timdream, Assigned: andres)

References

Details

(Keywords: l12y)

Attachments

(6 files, 1 obsolete file)

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...
Summary: [FyFx] Costom @font-face font for scripts other than latin → [FyFx] Custom @font-face font for scripts other than latin
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
Depends on: 525857
No longer depends on: 525954
Assignee: nobody → carlos.ferro
Contains following characters extracted from messages.po: 五週年! 點亮世界 社群 五岁了 照亮世界 社区 周年 世界を照らそう コミュニティー
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.
Dear Ferro, Since the site is going to launch on Monday, is it possible to land these changes first? Tim
Tim, the team is currently working on a general font issue but I will make sure they look into this issue and comment here.
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!!!!
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.
(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
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.
Following characters is included: " 5주년커뮤니티세상을 밝혀봐요五週年!點亮世界社群五岁了照亮世界社区周年世界を照らそうコミュニティー" Please commit and create other formats. Thanks!
Attachment #410968 - Attachment is obsolete: true
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(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 ago15 years ago
Resolution: --- → FIXED
Confirmed. Korean (ko) scripts showed up. I noticed that there are locale-specific layout tweaks in fyfx.js ... mind tweaking ko a bit?
Hi Tim... Done. Waiting for confirmation... thanks!
Cool! Thanks.
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!
(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.
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: