Fonts 4 has a feature to select the palette (in a color font that has multiple palettes) and also a feature to override palette entries and create new palettes.
Discussions with browser vendors reveal that:
No-one suggested the feature be dropped.
Thus, the feature should be put at risk, and eventually if there are no implementations, moved to Fonts 5.
There also need to be tests for the feature (these can be hard to make, but they can be made)
Also notable that OpenType Sanitizer, used by Chromium and Gecko, does not support COLR or CPAL
We've just got this working for COLR/CPAL fonts. However it makes no difference to us if it's punted to level 5.
The only suggestion I would make, based on implementing it, is to consider adding an option for "font-palette: none" to turn off color fonts altogether. My reasoning:
@media not (color) {
font-palette: none;
}
The only suggestion I would make, based on implementing it, is to consider adding an option for "font-palette: none" to turn off color fonts altogether.
Great suggestion: done. And thanks for the example, too.
Most helpful comment
We've just got this working for COLR/CPAL fonts. However it makes no difference to us if it's punted to level 5.
The only suggestion I would make, based on implementing it, is to consider adding an option for "font-palette: none" to turn off color fonts altogether. My reasoning: