Closed Bug 1791780 Opened 3 years ago Closed 3 years ago

Rendering support for custom color-font palettes

Categories

(Core :: Graphics: Text, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(1 file)

Currently, our COLR-font rendering always uses the font's default palette. The CSS font-palette property and @font-palette-values rule allow authors to choose another palette, or define their own, so the rendering backend needs to allow such palettes to be passed down.

Blocks: 1791782

This creates the gfx support needed to use alternate palettes, though not yet connected
to the CSS rules/properties to define and access them.

Depends on D157957

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Blocks: 1794091
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7cc8e027f5a7 Support custom color font palettes in the COLR-font rendering code. r=gfx-reviewers,lsalzman
Failed to create upstream wpt PR due to merge conflicts. This requires fixup from a wpt sync admin.

Backed out for causing multiple mochitest failures

Backout link

Push with failures

Failure log

Flags: needinfo?(jfkthame)
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/61bd2a4496bf Support custom color font palettes in the COLR-font rendering code. r=gfx-reviewers,lsalzman

Backed out for causing build bustages on TestCOLRv1.cpp

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: /builds/worker/checkouts/gecko/gfx/tests/fuzz/TestCOLRv1.cpp:57:55: error: no viable conversion from 'mozilla::gfx::sRGBColor' to 'const mozilla::gfx::Point' (aka 'const PointTyped<mozilla::gfx::UnknownUnits>')
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9947218170d0 Support custom color font palettes in the COLR-font rendering code. r=gfx-reviewers,lsalzman
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/61ed7ee1a32f Support custom color font palettes in the COLR-font rendering code. r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
Flags: needinfo?(jfkthame)
Regressions: 1794807
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/36528 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: