Developer forum

Forum » CMS - Standard features » Cannot load Google fonts in China

Cannot load Google fonts in China

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

One of our clients has a server located in China, and inside the Chinese firewall the server cannot contact Google Fonts, which are loaded in the website settings and that causes a lot of these error messages: https://www.screencast.com/t/CbbFum4od.

 

A workaround could be to somehow "Activate Chinese location", where "Google Fonts" are loaded from "fonts.useso.com" instead of "fonts.googleapis.com", or simply be able to specify the url for the fonts.

 

Best regards, Anders

 


Replies

 
Nicolai Pedersen
Reply

Hi Anders

I believe fonts.useso.com closed in 2016...?

From what I can find. you can either use some sort of CDN to forward the font request - or download the fonts to the site using https://google-webfonts-helper.herokuapp.com/fonts/

Or not use Google fonts when in china.

The error you see is coming from our api call to Google fonts api using our developer account. Not sure we can get rid of that...

Let me hear what you think.

BR Nicolai

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

It seems to be right about useso.com... so then the only option would be to be able to store Google Fonts local to avoid the problem in the api. Can that be possible?

 

Best regards, Anders

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Anders

The google fonts editor uses the google fonts API. And we cannot download the API... Then we would have to do a Google fonts api proxy.

So we would have to do a totally different approach - one not connnected to Google API, but a local storage of all fonts that Google fonts has... And then magically download the fontfiles when needed and then serve them locally. So that is quite a big change.

I think the best option is to replace the font selector on this site with a simple text box where you can write the font name from Google fonts (luckily Rapido uses a fonts item type, so this change should be fairly easy). And then manually download them and upload them to the solution files and make the needed change in the template loading them.

Votes for this answer: 1

 

You must be logged in to post in the forum