Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Fonts not working in Internet Explorer (IE) 11

Currently putting together a site using Google Fonts. Everything works in IE6 through 10, Firefox, Chrome, and on mobile browsers. However on IE 11 no fonts load and everything is displayed using fallback fonts (sans-serif etc).

This same issue seems to have been discussed on the following two pages but with no resolution:
Google Code
MSDN Forums

I have not been able to find a solution either and am wondering if anyone here has a workaround in place.

like image 535
techjp Avatar asked Oct 24 '13 08:10

techjp


2 Answers

Using the Web Font Loader javascript instead of the default method of adding fonts works in IE11 for me. https://developers.google.com/fonts/docs/webfont_loader.

It also had the advantage of having default font text showing on slow connections until font downloads, at which point it will switch to google font. Otherwise you get no text at all for tens of seconds.

Important note: You should choose your fall-back fonts to those with similar size / kerning / leading etc to minimise screen re-draw and content jumping issues that affect UX.

like image 190
Ruskin Avatar answered Nov 01 '22 22:11

Ruskin


I had the similar problem. Fonts from css didn't load in IE11 only when i pressed refresh or forward/back buttons. I've managed to solve this problem adding an empty 'style' tag to head on document load. (ex.: $('head').append('<style></style>')) Hope this will help to somebody with the same problem.

like image 26
user2846477 Avatar answered Nov 01 '22 23:11

user2846477