Update COLRv1 sweep gradient rendering to match the OpenType 1.9.1 spec
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox105 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
Details
Attachments
(1 file)
The initial rendering implementation landed in bug 1740530 renders sweep (conic) gradients similarly to the current (OpenType 1.9-based) implementation in Blink.
However, the OpenType 1.9.1 spec (currently available in alpha review) modifies the specification of sweep gradients in a backward-incompatible way. Google is intending to update Chrome's behavior to match the revised spec at the same time as introducing variation support.
We should make the equivalent change before releasing COLRv1 support, so that all shipping implementations end up with interoperable behavior here.
(See https://skia-review.googlesource.com/c/skia/+/566416 for the update being made to Skia's rendering, as used by Chrome. The recent 4.35.0 release of FontTools was likewise updated for the new spec version: see https://github.com/fonttools/fonttools/pull/2743.)
Assignee | ||
Comment 1•2 years ago
|
||
We also improve the handling of ColorLine, including resolving to a
simple ColorPattern if there is only a single color stop.
The test font CAhem.ttf has also been rebuilt with latest FontTools,
to conform to the updated 1.9.1 spec for sweep gradient tables.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
bugherder |
Description
•