Adding custom font to Gatsby/Plasmic project

I’m attempting to add a custom font following the documentation here: Is this documentation relevant to a Gatsby/Plasmic project created with @plasmicapp/loader-gatsby? Or is it for Next.js only? I’m having a difficult time getting it to work, and am confused what is Plasmic vs. Next.js vs. Gatsby requirements. Thanks!

Hi @consoling_octopus, I recently updated the custom fonts documentation, but I haven’t tested it with Gatsby.

To get custom fonts working, your app should import the CSS file with your custom font globally. If you follow, I think you should be able to get it to work. Let me know if that works!

Hi @jason Thanks so much! I used the second method “Adding global styles without a layout component” in those docs and I was able to get things working quickly! I really appreciate your help. :smile: