Archived topic
Unable to add custom font to my site.
3 replies · Started by Dan on August 26, 2022
I have tried following this guide https://docs.generatepress.com/article/adding-local-fonts/ and have been unable to create the @font-face to CSS
Hi Dan,
Not sure what you mean by unable to create the @font-face to CSS.
Can you explain a bit more about how you were unable to create the @font-face CSS?
Hi Ying, I followed the guide to add a local font. At the section about Using @font-face it has instructions of how to use Google Fonts to create the CSS to add to the site. I am unable to do that because my font did not come from Google Fonts.
Hi there,
you can manually write the @font-face, or use a generator like this:
https://www.fontsquirrel.com/tools/webfont-generator
You will need to manually update the URLs in the CSS to match those of our font locations.