Closed
Bug 973380
Opened 11 years ago
Closed 11 years ago
missing large chunks of text, triggered by use of a non-scalable (bitmap-only) font
Categories
(Core :: Graphics: Text, defect)
Tracking
()
RESOLVED
FIXED
mozilla30
Tracking | Status | |
---|---|---|
fennec | + | --- |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
()
Details
Attachments
(1 file)
5.84 KB,
patch
|
karlt
:
review+
|
Details | Diff | Splinter Review |
The Emojipedia site in the URL field shows the problem when viewed on Nexus 10 running Android 4.4.2. (Also on other Nexus models with the same OS version, according to people on irc.)
There's a sidebar on the right of the page (or bottom, for smaller screens) that is supposed to list a bunch of tags, each with a suitable emoji character alongside. The text is almost entirely missing - not only the emoji but most of the tags as well.
Minimal example (for Firefox on Android 4.4.2):
data:text/html,foo&%23x1f170;bar
The text completely fails to render.
This happens because of the presence of the bitmap-only Noto Color Emoji font on Android 4.4.2, which gets chosen by font fallback for the emoji charactesr. The code to get font metrics in the gfxFT2Font backend is broken for non-scalable fonts, and ends up with "infinite" ascent/descent values, which result in overflow when computing the frame height, which ends up negative, and so nothing gets displayed.
Assignee | ||
Comment 1•11 years ago
|
||
With this patch, the actual emoji characters still don't show up (as our FreeType build doesn't support the color-bitmap format used), but at least they no longer cause large amounts of the rest of the text to disappear.
Attachment #8376868 -
Flags: review?(karlt)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Assignee | ||
Updated•11 years ago
|
Summary: missing text due triggered by use of a non-scalable (bitmap-only) font → missing large chunks of text, triggered by use of a non-scalable (bitmap-only) font
Updated•11 years ago
|
Attachment #8376868 -
Flags: review?(karlt) → review+
Assignee | ||
Comment 2•11 years ago
|
||
Pushed to inbound:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8112ba0e9eb6
Provided there are no issues with this on trunk, I think we should consider uplifting to earlier releases as well, to get it out to users sooner. The patch is small and extremely contained, with minimal risk of side-effects; and the effect of the bug can be pretty bad (entire lines or blocks of text may go AWOL just because someone included a cute smiley).
Note that the number of users affected will be increasing steadily as people upgrade their Android OS version.
tracking-fennec: --- → ?
Target Milestone: --- → mozilla30
Comment 3•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
tracking-fennec: ? → +
You need to log in
before you can comment on or make changes to this bug.
Description
•