-
Notifications
You must be signed in to change notification settings - Fork 12
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
Is this package necessary in current Next? #34
Comments
@mosesoak : This plugin was created more than 2 years back. Nextjs did not have first class support for importing fonts without using plugins during those days. Hence, this plugin might not be needed for current and newer versions of Next.js Having said that, this plugin would still be maintained for supporting projects running older versions of Next.js |
@rohanray Cool, that's what I suspected, but it's not really clear from your README, timestamps (there was one recent commit showing at the top level of the repo), or the npm install trend: There are also a bunch of posts in the wild that recommend this extension. While I wouldn't want you to lose out on having a popular repo, it would be super nice of you to add to the README intro to say that this plugin is not needed in the current version of Next. Thanks again! |
Just for other people's info if they find this post, simply pointing to local fonts packaged in the public folder from Google Fonts pro tip: After a bunch of testing we found that just adding a single Head link to the google font cdn, without any |
Thanks and credit to @katesowles for figuring out that Google CDN is the fastest way to fly 🙏 🌟 |
Forwarding thanks and credit to @wbunting and his article https://codeconqueror.com/blog/using-google-fonts-with-next-js |
@mosesoak Am I doing it right? rohanray/next-fonts-example#8 (comment) |
Hi @rohanray -- I've been able to successfully import and use locally-packaged fonts (in
public/fonts
directory) with@font-face
in a<style jsx global>
tag, in a new NextJS project, without using this package.Perhaps I'm confused after reading your docs description, which is simply "Import fonts in Next.js (woff, woff2, eot, ttf, otf & svg)", which again seems to work without this plugin. What functionality does this add that's not already provided?
Thank you, and thanks for your work. Just need more detail since I'm fighting bad FOUC in my stub Next app and looking for any way to get the fonts loaded and rendered in the SSG content to avoid it.
The text was updated successfully, but these errors were encountered: