Using Custom Fonts Imported From NPM in The App Router

Hello! I am attempting to use the cal-sans font with the app router. Before, importing it in the _app.tsx file and then including it in the tailwind config worked, but this seems to not be the case with app router. I attempted to import it in my root layout for the same effect, but this did not work. I then was going to attempt to use next/font but since I don't have the font file in my public folder I can't figure out how to do it. Thanks for the help!
2 Replies
Sturlen
Sturlen2y ago
are you getting an error such as " 404 not found" in the browser dev tools?
Liam
Liam2y ago
No
Want results from more Discord servers?
Add your server