Closed
Bug 1090869
Opened 11 years ago
Closed 11 years ago
Only input and context glyphs, not output, are significant when checking for features that involve <space>
Categories
(Core :: Graphics: Text, defect)
Core
Graphics: Text
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: jfkthame, Assigned: jfkthame)
Details
Attachments
(1 file)
|
3.01 KB,
patch
|
jtd
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
We don't need to include the lookups' output glyphs in the sets we collect during HasLookupRuleWithGlyph() and HasLookupRuleWithGlyphByScript(); only the input glyph (sequence) and context are important here.
By not collecting output, we avoid hitting a pathologically inefficient case in harfbuzz which causes a multi-second delay when loading the example at http://behdad.org/urdu/.
Behdad is about to fix the HB issue upstream, but in any case we can reduce the work we do by passing nullptr for the output parameter to collect_glyphs.
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8513388 -
Flags: review?(jdaggett)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Updated•11 years ago
|
Attachment #8513388 -
Flags: review?(jdaggett) → review+
| Assignee | ||
Comment 2•11 years ago
|
||
Target Milestone: --- → mozilla36
| Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8513388 [details] [diff] [review]
Don't collect output glyphs when checking for features involving <space>.
Approval Request Comment
[Feature/regressing bug #]:
This code dates back to 761442, later revised in bug 921858. So it's fixing a longstanding issue, but with Google apparently working on a font that's badly affected by this, it'd be nice to ship the fix sooner rather than later.
[User impact if declined]:
Multi-second hang on first use of opentype fonts with particular kinds of complex lookups. Load http://behdad.org/urdu/ for an example.
[Describe test coverage new/current, TBPL]:
Landed on inbound. Existing font reftests cover this code.
[Risks and why]:
Minimal. Trivial patch that just avoids doing redundant work.
[String/UUID change made/needed]:
None.
Attachment #8513388 -
Flags: approval-mozilla-beta?
Attachment #8513388 -
Flags: approval-mozilla-aurora?
Comment 4•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Attachment #8513388 -
Flags: approval-mozilla-beta?
Attachment #8513388 -
Flags: approval-mozilla-beta+
Attachment #8513388 -
Flags: approval-mozilla-aurora?
Attachment #8513388 -
Flags: approval-mozilla-aurora+
Comment 5•11 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•