stroked text with ligature painted incorrectly when selection intersects ligature
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: heycam, Assigned: jfkthame)
Details
Attachments
(3 files)
See the attached test case, which hopefully renders with a font that has an ff or fi or ffi ligature. Selecting part of that ligature causes some parts of the text to be painted in the wrong position.
I could only reproduce this with -webkit-text-fill-color: transparent
.
Assignee | ||
Comment 1•4 years ago
|
||
Cute! I think there's a simple patch that will fix this; we should also add a reftest to cover it.
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
This fixes the behavior in my local testing; I'll put up a reftest patch in a while.
Assignee | ||
Comment 4•4 years ago
|
||
Assignee | ||
Comment 5•4 years ago
|
||
The reftest is likely to have a little bit of "fuzz" in the antialiasing at the edges of the selected range, because of drawing adjacent (touching) parts of the text in separate operations, but it should be unimportant; I'll get tryserver to confirm how much fuzz is needed.
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d653382c7997 Partial ligatures need to be drawn if either GLYPH_FILL or GLYPH_STROKE is in effect. r=heycam https://hg.mozilla.org/integration/autoland/rev/bc36c4359eef Add reftest. r=heycam
Comment 7•4 years ago
|
||
Backed out for failing reftest at 1576553-1.html
Tier1 failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=263600530&repo=autoland&lineNumber=26730
Backout: https://hg.mozilla.org/integration/autoland/rev/6097272103defa58d5710fd7f8170db3d756462f
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ae2021d2c744 Partial ligatures need to be drawn if either GLYPH_FILL or GLYPH_STROKE is in effect. r=heycam https://hg.mozilla.org/integration/autoland/rev/713c95e01d1e Add reftest. r=heycam
Comment 9•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ae2021d2c744
https://hg.mozilla.org/mozilla-central/rev/713c95e01d1e
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Description
•