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

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

or

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

Simply use

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

which should resolve the problem. 😉

Abhijit Sandhan

Loves Open Source, Blogging, Traveling, Hiking and sharing Knowledge!
Back to top button