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

Allow to set "text" option for specific font family #106

Open
tobiasdiez opened this issue Oct 22, 2022 · 2 comments
Open

Allow to set "text" option for specific font family #106

tobiasdiez opened this issue Oct 22, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@tobiasdiez
Copy link

The text option is a nice optimization e.g. if you use the font only in a logo. However, most of the time, this applies only to one particular font family, while other families might be used e.g. in the body. Thus it would be nice if "text" could be specified for a certain font family:

families: {
      'Cabin+Sketch': { weight: [300], text: "NUXT!" },
      'Open+Sans': [300, 400, 600],
    },
@jakubkoje
Copy link

This does not appear to be possible with the current implementation of this module. Google does not allow specifying different text parameters for different fonts in a single API link. To achieve this functionality, the module would need to generate separate Google Fonts API links for each font.

@sugoidesune
Copy link

What's the suggested workaround for this atm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants