Tips & Tricks

[How To] Google web fonts HTTPS (SSL) support

Google Web Fonts are widely used in the websites because of the large number of fonts availability. Most of the websites are using SSL to encrypt the connections (HTTPS) and some simple connections (HTTP). Google Fonts over  SSL (HTTPS) may not be served and in this case the website may look odd to the visitors in terms of the fonts.

There is a simple solution to this problem which includes changes in the URL of the Google font.

Instead of using HTTP or HTTP URLS in CSS like

http://fonts.googleapis.com/css?family=Tahoma

or

https://fonts.googleapis.com/css?family=Tahoma

Simply use

//fonts.googleapis.com/css?family=Tahoma

which should resolve the problem. 😉

Abhijit Sandhan

Love to Automate, Blog, Travel, Hike & spread Knowledge!

Related Articles

Back to top button