Next.js Discord

Discord Forum

Accessing next/font file URL

Unanswered
jwueller posted this in #help-forum
Open in Discord
Hi, I'm not entirely sure how the next/font stuff works internally and/or how the fonts are delivered to the client, but is there a way to access the generated font files via URL? I'd like to use them for some 3D visualization on the client too, and I need access to the actual font file to do that.

I have the variable of course, but that only works within CSS, not anything using OpenGL.

I'd love to reuse the resources I already use elsewhere. Otherwise I might be forced to manually put the font files in there instead of being able to use the nice API.

0 Replies