custom font won't load when navigating through internal link #6760
Replies: 1 comment 1 reply
-
To load fonts in Next.js follow this guide – https://help.mantine.dev/q/next-load-fonts |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.12.2
What package has an issue?
@mantine/core
What framework do you use?
Next.js
In which browsers you can reproduce the issue?
All
Describe the bug
I installed Mantine yesterday, and my header is built using tab and menu. when I load my page, my custom font will show, but if I navigate between pages using links (e.g. through the header), it will default to system font. Then custom font will show again when I refresh the page. This wasn't an issue before I installed Mantine.
I have installed the font in font.tsx in public folder, and configured the _app and globals and everything. and display is set to swap. the _app code is:
For layout.tsx:
font import:
thanks!
If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
No response
Self-service
Beta Was this translation helpful? Give feedback.
All reactions