I can't use Local Fonts with Gatsby & Vanilla Extract #499
-
Hi! I'm trying to use a local font in my I looked on the docs here and tried both option 1 and 2 below and neither seem to work. Would anyone be kind enough to point me in the right direction? Should I be using Thanks Option 1 :
Option 2
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I've faced the same problem with create-react-app. What helped me was to use an absolute path to the asset (from the project root) in |
Beta Was this translation helpful? Give feedback.
-
Solution: In the end I created a Storage Account in Azure, create a Blob Container, and uploaded all my fonts to there. This means I can import my fonts like so:
|
Beta Was this translation helpful? Give feedback.
Solution:
In the end I created a Storage Account in Azure, create a Blob Container, and uploaded all my fonts to there.
You can then find a url to the font in the file "properties".
This means I can import my fonts like so: