Closed Bug 919845 Opened 11 years ago Closed 11 years ago

Really make Fira Sans the default font

Categories

(Core Graveyard :: Widget: Gonk, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:hd+, firefox25 wontfix, firefox26 fixed, firefox27 fixed, b2g18 wontfix, b2g-v1.1hd fixed, b2g-v1.2 fixed)

VERIFIED FIXED
mozilla27
blocking-b2g hd+
Tracking Status
firefox25 --- wontfix
firefox26 --- fixed
firefox27 --- fixed
b2g18 --- wontfix
b2g-v1.1hd --- fixed
b2g-v1.2 --- fixed

People

(Reporter: mwu, Assigned: jfkthame)

References

Details

Attachments

(2 files)

Apparently prefs only specify defaults for when people ask for things like sans-serif and serif. When nothing is specified at all, we fall back on Roboto. This patch fixes that. It also fixes the font setting in nsLookAndFeel.cpp, though I don't think that's really used..
Attachment #808932 - Flags: review?(jfkthame)
I also noticed that gfxFT2FontList.cpp cares about some list of standard fonts. Should we care about that list? It seems like every font in /system/fonts/ should be considered a standard font for that phone.
Comment on attachment 808932 [details] [diff] [review] Set the default font in more places Review of attachment 808932 [details] [diff] [review]: ----------------------------------------------------------------- Oops - yeah, missed these earlier. Maybe we should have a central method (in gfxPlatform, perhaps) to return the platform's default font, and then nsLookAndFeel could simply use that, so it wouldn't need to be maintained in both places. Sounds like a possible followup.
Attachment #808932 - Flags: review?(jfkthame) → review+
(In reply to Michael Wu [:mwu] from comment #1) > I also noticed that gfxFT2FontList.cpp cares about some list of standard > fonts. Should we care about that list? It seems like every font in > /system/fonts/ should be considered a standard font for that phone. I doubt it's important at this point. That was done (in bug 636042) to work around problems on some Android phones where the device manufacturer ships confused/broken collections of fonts, but for b2g we should simply not ship such a mess!
I'm going to skip text-font-lang.html on B2G. All other tests seem fine. (In reply to Jonathan Kew (:jfkthame) from comment #4) > I doubt it's important at this point. That was done (in bug 636042) to work > around problems on some Android phones where the device manufacturer ships > confused/broken collections of fonts, but for b2g we should simply not ship > such a mess! Ah. We should probably disable that then, since we don't want to prefer Droid Sans/Roboto over our real defaults.
Patryk, once this lands and is available in a build, I'd like to get verification that we've really switched all the fonts over to Fira Sans.
Flags: needinfo?(padamczyk)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Yes please let me know when it lands, I tried Mozilla Central Sept 25th and it didn't looked fixed.
Flags: needinfo?(padamczyk) → needinfo?(mwu)
Hm, I just tried the latest n4 build and it looks fixed in the notifications area.
Flags: needinfo?(mwu) → needinfo?(padamczyk)
Just loaded moz central on my unagi... IT WORKS!!!!!!!!!!!!!!! So happy notification's Clear All tag was broken since the beginning of time, so I am really happy its finally fixed!
Flags: needinfo?(padamczyk)
er... So happy notification's Clear All tag is now fixed, was broken since the beginning of time, so I am really happy its finally fixed!
\o/
Status: RESOLVED → VERIFIED
This escaped triage, and its required on v1.1hd for the font update.
blocking-b2g: hd? → hd+
Keywords: checkin-needed
Whiteboard: [checkin-needed-v1.1hd]
Ah. That test was disabled in the commit but not in the patch posted here.
Easy enough, I'll re-land on Aurora with that test disabled. Leaving the v1.1hd patch up to you, though :)
Flags: needinfo?(mwu)
Ah, b2g18 doesn't have bug 821442, which changed the return type of GetDefaultFont(). So this version of the patch ought to be what's needed there.
Attachment #822912 - Flags: review?(mwu)
Assignee: mwu → jfkthame
Comment on attachment 822912 [details] [diff] [review] Really make Fira Sans the default font, b2g18 version. Review of attachment 822912 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Attachment #822912 - Flags: review?(mwu) → review+
Re-landed, hoping I did this correctly for the v1.1hd tree: https://hg.mozilla.org/releases/mozilla-b2g18_v1_1_0_hd/rev/59120fd99bbf
LGTM, thanks :)
Flags: needinfo?(mwu)
Depends on: 1010529
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: