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

[css-fonts-4] @font-feature-values { font-display } #7412

Open
fantasai opened this issue Jun 23, 2022 · 2 comments
Open

[css-fonts-4] @font-feature-values { font-display } #7412

fantasai opened this issue Jun 23, 2022 · 2 comments
Labels
css-fonts-4 Current Work

Comments

@fantasai
Copy link
Collaborator

The Fonts 4 spec defines a font-display descriptor for @font-feature-values, which otherwise contains a bunch of at-rules. I can't find much discussion on it, so I wanted to know:

  • Is this feature implemented anywhere?
  • Do we need to keep it?

It seems like a really awkward place to put a font-display descriptor, @font-feature-values has nothing to do with loading fonts...

@fantasai fantasai added the css-fonts-4 Current Work label Jun 23, 2022
@tabatkins
Copy link
Member

It is slightly awkward, but @font-feature-values is useful because it lets us associate things with @font-faces by name without having to modify the @font-face rules directly. In particular, this lets the author modify fonts pulled in from a font server like Google Fonts, for instance.

I believe it's implemented in Chrome, at least. @xiaochengh ?

@xiaochengh
Copy link
Contributor

@font-feature-values is not implemented in Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-fonts-4 Current Work
Projects
None yet
Development

No branches or pull requests

3 participants