Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font feature detection and palettes #164

Closed
drott opened this issue Sep 29, 2022 · 4 comments
Closed

Font feature detection and palettes #164

drott opened this issue Sep 29, 2022 · 4 comments
Labels
accepted An accepted proposal focus-area-proposal Focus Area Proposal

Comments

@drott
Copy link

drott commented Sep 29, 2022

Description

Enable testing for font stack capabilities and enable additional expressiveness with vector color fonts.

Rationale

Feature Detection

Color font format support differs in browsers. Knowing which font format and font-stack features a particular user-agent supports is currently hard to detect. At the moment this is only possible with canvas readback tests such as Chromacheck or UA sniffing.

User story: As a web developer, I would like to know which incremental enhancements I can deploy depending on font stack features of the UA.

Color Font support

Leading font foundries and type designers are excited about the capabilities that palette brings:

With COLRv0 and COLRv1 (and to some extent OT-SVG) the use of font-palette adds a much wider expressivity and flexibility when using these vector color font formats. The WPT tests covering font-palette rely only on COLRv0 support.

Background

COLRv0 and OpenType Variations are modern font technologies that are widely supported. OpenType SVG fonts are supported in Firefox and Safari, and growing support for the new color font format COLRv1 is available in Chrome 98, (blog post) and Firefox ~107 (I2S)). Google Fonts shipped cross-platform color fonts in OT-SVG and COLRv1 formats.

Specification

Tests

@drott drott added the focus-area-proposal Focus Area Proposal label Sep 29, 2022
@gsnedders gsnedders added this to the Interop 2023 milestone Sep 29, 2022
@jfkthame
Copy link

This seems good to me: complete and interoperable implementation of these features will simplify things for authors wanting to deliver rich color-font-based content, where currently it is quite complex to deploy content that works well across all browsers.

@foolip foolip moved this to Proposed in Interop 2023 Oct 7, 2022
@foolip foolip removed this from the Interop 2023 milestone Oct 7, 2022
@foolip
Copy link
Member

foolip commented Nov 11, 2022

In the State of CSS 2022 question about browser incompatibilities, there were two mentions of color fonts, so not enough to make the top list in #248.

I don't think web developers can discern all the separate pieces of that make up support for color fonts, and I don't see any mentions of "font-palette", "font-format", or "tech()".

@foolip
Copy link
Member

foolip commented Nov 11, 2022

In the MDN short survey on CSS & HTML, "CSS color font feature detection and palettes" was selected by ~9% of survey takers, putting it in the bottom third of the 20 options. (There is some uncertainty as with any survey data.)

@foolip foolip added the accepted An accepted proposal label Feb 1, 2023
@foolip
Copy link
Member

foolip commented Feb 1, 2023

Thank you for proposing this for inclusion in Interop 2023.

We are pleased to let you know that this proposal was accepted as the Font feature detection and palettes focus area. You can follow the progress of this Focus Area on the Interop 2023 dashboard.

For an overview of our process, see the proposal selection summary. Thank you for contributing to Interop 2023!

Posted on behalf of the Interop team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted An accepted proposal focus-area-proposal Focus Area Proposal
Projects
No open projects
Status: Proposed
Development

No branches or pull requests

4 participants