Closed
Bug 769194
Opened 12 years ago
Closed 11 years ago
src:local(...) in @font-face rules doesn't work on Android
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: jfkthame, Assigned: jfkthame)
References
Details
Attachments
(2 files, 1 obsolete file)
5.91 KB,
patch
|
jtd
:
review+
|
Details | Diff | Splinter Review |
5.29 KB,
patch
|
jtd
:
review+
|
Details | Diff | Splinter Review |
There's code in gfxFT2FontList that is intended to handle src:local(...) descriptors (by providing an implementation of LookupLocalFont), but this feature is currently broken in multiple ways.
First, gfxAndroidPlatform doesn't actually connect the LookupLocalFont method to the font list, so it's a no-op at the platform level; and second, the code in gfxFT2FontList is broken such that (a) it will often fail to find the intended font because it doesn't ensure case-insensitivity, and (b) if it finds the target family, it's likely to crash while iterating over the faces if any of the four "standard" faces (R/I/B/BI) were not present, resulting in NULL entries in the family's font list.
Assignee | ||
Comment 1•12 years ago
|
||
This seems to fix the src:local issues in my initial testing, at least. Pushed to tryserver to check for general breakage...
https://tbpl.mozilla.org/?tree=Try&rev=8b96b8574883
Attachment #637457 -
Flags: review?(jdaggett)
Updated•12 years ago
|
Attachment #637457 -
Flags: review?(jdaggett) → review+
Assignee | ||
Comment 2•12 years ago
|
||
Pushed to inbound, along with removing the fails-if(Android) annotation from the font-face/local-1 and font-face/local-styled-1 reftests, as they're now expected to pass on all platforms.
https://hg.mozilla.org/integration/mozilla-inbound/rev/d9d5d1bd766c
Target Milestone: --- → mozilla16
Comment 3•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•12 years ago
|
||
Backed out because this seems to be causing crashiness, see bug 770263.
https://hg.mozilla.org/integration/mozilla-inbound/rev/023ac6edd2af
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla16 → ---
Comment 5•12 years ago
|
||
(In reply to Jonathan Kew (:jfkthame) from comment #4)
> Backed out because this seems to be causing crashiness, see bug 770263.
>
> https://hg.mozilla.org/integration/mozilla-inbound/rev/023ac6edd2af
https://hg.mozilla.org/mozilla-central/rev/023ac6edd2af
Assignee | ||
Comment 6•11 years ago
|
||
Updated patch to apply to latest trunk. The crashiness last time this landed (bug 770263) was because we failed to copy the filename and index fields when cloning the font entry in LookupLocalFont; with that fixed, I can no longer reproduce the crashes.
Attachment #8401727 -
Flags: review?(jdaggett)
Assignee | ||
Updated•11 years ago
|
Attachment #637457 -
Attachment is obsolete: true
Assignee | ||
Comment 7•11 years ago
|
||
Update the src:local reftests to include appropriate font names for B2G as well.
Attachment #8401728 -
Flags: review?(jdaggett)
Assignee | ||
Comment 8•11 years ago
|
||
Checking that the src:local reftests now pass on both Android and B2G:
https://tbpl.mozilla.org/?tree=Try&rev=c82a8b058075
Comment 9•11 years ago
|
||
Comment on attachment 8401727 [details] [diff] [review]
support src:local(...) in @font-face rules on Android/FT2FontList.
Looks good!
Attachment #8401727 -
Flags: review?(jdaggett) → review+
Updated•11 years ago
|
Attachment #8401728 -
Flags: review?(jdaggett) → review+
Assignee | ||
Comment 10•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7deee7bd215d
https://hg.mozilla.org/integration/mozilla-inbound/rev/a09193c70bc8
Target Milestone: --- → mozilla31
Comment 11•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7deee7bd215d
https://hg.mozilla.org/mozilla-central/rev/a09193c70bc8
Status: REOPENED → RESOLVED
Closed: 12 years ago → 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•