You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am setting up a new project and we need to load Montserrat and Roboto fonts, but I can't find any documentation or guides on how to link and load local font files into Tamagui config.
I've tried adding the fonts to an assets folder, adding a head tag to the layout file and linking the font files this way, then in createFont referenced the font family (using family prop), then in the tamagui config setting body and heading to the montserrat variable created with createFont in the fonts property of the config.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am setting up a new project and we need to load Montserrat and Roboto fonts, but I can't find any documentation or guides on how to link and load local font files into Tamagui config.
I've tried adding the fonts to an assets folder, adding a head tag to the layout file and linking the font files this way, then in createFont referenced the font family (using family prop), then in the tamagui config setting body and heading to the montserrat variable created with createFont in the fonts property of the config.
Any help is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions