Feature request: use Bunny Fonts to serve fonts instead of Google Fonts

Switching Pro to use Bunny Fonts instead of Google Fonts in the font manager would increase privacy (and performance?) for all end users and help with GDPR compliance. The experience stays the same, you still get all your Google Fonts, just served through Bunny Fonts. And it’s just as free :smile:

https://bunny.net/fonts/ / https://fonts.bunny.net/about

4 Likes

It looks like since it uses the same format as google fonts for the URL it would just be a matter of adding a filter for the URL. So I think it’s something we can at least add a filter for you to control.

It doesn’t look like they have all the google fonts, so you might run into issues especially because our google fonts list is brand new just as a heads up. I will keep this thread updated.

I spoke too soon on this one as it already existed. Let me know if you have any issues. We currently have a bug (that’ll be fixed in 6.0.3) where font weights are not imported properly in the URL for google. That is not related to doing this.

add_filter('cs_google_fonts_uri', function() {
  return '//fonts.bunny.net/css';
});
1 Like

Yeah, looks like they’re missing about 40 fonts or so.

Thanks for that filter, I’ll try it.

1 Like

The filter works perfectly, thanks again :smile: Are there plans to switch Pro to Bunny Fonts by default? The filter is a great option for those who know about it, which won’t be the majority of users.

1 Like

They just let me know they’re looking into adding the missing fonts as soon as possible.

1 Like

Probably never going to make it a default. It would be cool to be able to control this in the font settings.

1 Like

Oh, that would work too :smile:

Hi @charlie, any news or feedback on adding bunny fonts as an option?

No news really. I lean on just an input to change the URL as opposed to us have a direct option and support for it. I can take a look at next year.

1 Like