Closed Bug 831883 Opened 12 years ago Closed 12 years ago

eliminate the Open Sans fonts bundled in the Reader core theme, just use Gecko's "installed" copy

Categories

(Firefox for Android Graveyard :: Reader View, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 21

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(1 file)

In bug 831354, we're shipping Open Sans as the default sans-serif font for Firefox on Android, by including it in the package. This will make it appear as just another installed font on the platform, as far as the rest of Gecko is concerned. As a result, we can remove the use of @font-face to explicitly load Open Sans from chrome:// URIs in the Reader CSS; it can simply refer to the installed font by name. This will reduce the overhead of starting up a Reader view.
remove-reader-fonts
Attachment #704357 - Flags: review?(lucasr.at.mozilla)
Oops, sorry about the unhelpful comment - I messed up with bzexport. Anyway, with bug 831354 landed on trunk, we can now claw back some of the size increase there by removing the Reader copy of the fonts, as they're now available throughout the platform in the regular font list. This also saves us going through the process of loading and sanitizing the font files and instantiating new platform font objects each time the user enters Reader mode.
Comment on attachment 704357 [details] [diff] [review] eliminate the copy of Open Sans fonts bundled in the Reader core theme. Review of attachment 704357 [details] [diff] [review]: ----------------------------------------------------------------- Nice. Will this also fix bug 792370 somehow?
Attachment #704357 - Flags: review?(lucasr.at.mozilla) → review+
(In reply to Lucas Rocha (:lucasr) from comment #3) > Nice. Will this also fix bug 792370 somehow? Yup, should do, as we have a more complete set of styles in the platform now.
Assignee: nobody → jfkthame
Target Milestone: --- → Firefox 21
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: