Site logo

Archived topic

font-family in GP

3 replies · Started by Michal on July 2, 2021

Viewing posts 1–4 of 4

Hello,
I added a local google font "Inter" by following https://docs.generatepress.com/article/adding-local-fonts/

As a result I received

font-family (stack):Inter, when checked in a source code.
Hwoever standard non self-hosted google fonts use

font-family (stack):Inter,sans-serif

Whats the difference? Shoudl I also use
font-family (stack):Inter,sans-serif

How?

Hi there,

the sans-serif addition is the fallback font which isn't necessarily required as the browsers default fallback will be a sans-serif font anyway.

If its a must have then the only way to add that today is to rewrite the Themes System Stack font. If you feel thats needed then see Tom's reply here:

https://generatepress.com/forums/topic/specifying-a-fallback-font-for-locally-added-fonts/#post-870701

This will update the default System Font in the Customizer. And instead of selecting Inter you would select System Stack.

ok, thanks

You're welcome

This archived topic is closed to new replies.