Skip to content

DX: Document or improve variable font behaviour #173

Open
@JakeIsMeh

Description

"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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions