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

Problem inserting Google Fonts #437

Open
marcelostrappini opened this issue Jun 15, 2021 · 1 comment
Open

Problem inserting Google Fonts #437

marcelostrappini opened this issue Jun 15, 2021 · 1 comment

Comments

@marcelostrappini
Copy link

When I insert the Google Fonts code, the FontAwsome styles stop loading.

Example: https://codesandbox.io/s/fontawesome-react-nextjs-sg6rv?file=/pages/index.js

Expectation
Captura de Pantalla 2021-06-14 a la(s) 22 35 42

Result
Captura de Pantalla 2021-06-14 a la(s) 22 34 50

I have carried out several tests until I see what the conflict was, if the <links> from Google Fonts are eliminated, the icons are seen correctly (2x and layers).

I need to use both Google Fonts + FontAwesome over NextJS on a website. What solution do you suggest?

Regards

@aisinghood15
Copy link

Hey @marcelostrappini a possible solution for this problem could be to just self host the Google Fonts as webfonts. Here is a helpful tool for getting the necessary files for your Google Font: https://google-webfonts-helper.herokuapp.com/fonts.

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

No branches or pull requests

2 participants