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

Adding fonts like "Quiksand" and "Urbanist" fails #239

Open
dhillweb opened this issue Aug 30, 2024 · 6 comments
Open

Adding fonts like "Quiksand" and "Urbanist" fails #239

dhillweb opened this issue Aug 30, 2024 · 6 comments

Comments

@dhillweb
Copy link

Fonts like "Quiksand" and "Urbanist" failing in deployed project.
But "Poppins" it adds correctly.

I was happy to easily can choose so much fonts in local development but in deployed project it fails.
Hoping it will be fixed soon....

Copy link

dosubot bot commented Aug 30, 2024

Hey @dhillweb! I'm here to help you with any bugs, questions, or contributions you have while waiting for a human maintainer. Let's tackle this font issue together!

The issue with "Quiksand" and "Urbanist" fonts failing to load in the deployed project while "Poppins" works correctly could be due to the way Nuxt Fonts processes and resolves fonts. Nuxt Fonts uses a provider called fontsource to fetch font metadata and details. If "Quiksand" and "Urbanist" are not recognized by the fontsource provider, they will fail to load. This could happen if these fonts are not available in the fontsource metadata or if there is an error fetching their details.

To resolve this issue, ensure that "Quiksand" and "Urbanist" are supported by the fontsource provider. You can verify this by checking the fontsource metadata or by explicitly configuring these fonts in your Nuxt configuration. Additionally, you can handle errors more gracefully by logging them and providing fallback options if the fonts are not available [1][2].

To continue talking to Dosu, mention @dosu.

Copy link

Would you be able to provide a reproduction? 🙏

More info

Why do I need to provide a reproduction?

Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.

What will happen?

If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.

If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.

How can I create a reproduction?

We have a template for starting with a minimal reproduction:

👉 https://stackblitz.com/github/nuxt/fonts/tree/main/example

A public GitHub repository is also perfect. 👌

Please ensure that the reproduction is as minimal as possible. See more details in our guide.

You might also find these other articles interesting and/or helpful:

@davestewart
Copy link

FWIW it has been suggested to just add the CSS manually

@dhillweb
Copy link
Author

dhillweb commented Sep 2, 2024

I do not need modules?

@davestewart
Copy link

davestewart commented Sep 2, 2024

You can just add the CSS and links in the head section of Nuxt's config:

@dhillweb
Copy link
Author

dhillweb commented Sep 8, 2024

I know about. But thank you very much for your notion. It works fine. If there is an option to migrate without modules, I will prefer that in the future.

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

No branches or pull requests

3 participants