Replacing google fonts?

Dominik L Posted in Technical Support 2 days ago

Hello!

Is there any easy way to replace google fonts?

I read online that google fonts are only allowed in the EU, when they are locally stored and some OSSN system components are using Google fonts. There is some data privacy concern going on in the EU

"If you can severe the need for your visitor to expose their IP address to Google, you can keep using Google Fonts on your website. To severe the connection between Google and your visitor, you can either locally host Google Fonts on your own website or revert to using WordPress’ system default fonts"

Can I somehow overwrite the system with a hook or something to use locally stored fonts?

It can be google fonts, but locally stored on my server

Replies
German Dominik L Replied 1 day ago

Thank you I will look into it

Indonesian Arsalan Shah Replied 1 day ago

You can replace fonts example goblue theme

https://github.com/opensource-socialnetwork/opensource-socialnetwork/blob/master/themes/goblue/ossn_theme.php#L79

Change to your locally stored fonts

(Example css file https://fonts.googleapis.com/css?family=PT+Sans:400italic,700,400) which contains the URLs to font files to your locally hosted files.