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

DX: Document or improve variable font behaviour #173

Open
JakeIsMeh opened this issue Jun 4, 2024 · 0 comments
Open

DX: Document or improve variable font behaviour #173

JakeIsMeh opened this issue Jun 4, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@JakeIsMeh
Copy link

"Demo":
https://github.com/JakeIsMeh/fonts-repro

Currently, there are no conventions on how to name variable versions of fonts, which can lead to many issues when users try to specifically select variable versions of fonts.

Fontsource has it's users specify [font name] Variable to use variable fonts, while Inter currently has users specify InterVariable (v4, from the website) or Inter var (v3).

While I don't think that it is unreasonable for the OOTB behavior to expect plain names that are searchable across all providers, I think that this should either be called out in the docs or the parser becomes smart enough to process this (or warn when a font cannot be resolved).

Additionally, I believe that this, #172, and a perfect storm of a locally installed version of Inter contributed to nuxt/nuxt.com#1589, showing that it is already a footgun in real-world scenarios.

@dosubot dosubot bot added the documentation Improvements or additions to documentation label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant