-
Anonymous
Hi there,
I want to add a custom font I purchased from MyFonts.
I tried following your guide https://docs.generatepress.com/article/adding-local-fonts/; however, it doesn’t seem applicable to me, as I can’t see the font I purchased from the Google Webfonts Helper, so those steps seem redundant.
I have several files, but most notably:
-
font.woff
font.woff2Hopefully, you can advise.
Cheers.
-
Fernando
Hi JM,
To clarify, are you having trouble generating the
@font-face
rules as mentioned in this section?: https://docs.generatepress.com/article/adding-local-fonts/#using-font-faceIf so, for none Google Font fonts, you would need to create your own @font-face rules.
Here is an article that may assist you: https://css-tricks.com/snippets/css/using-font-face-in-css/#aa-deepest-possible-browser-supportAlso see: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face
There are also several tools online that do the @font-face generation ( and webfont conversion ) for you – like this one:
- You must be logged in to reply to this topic.