1

I want use a custom font in my website, called 'Source Sans Pro', from Google Fonts. It works in other browsers, like Chrome, Opera, Mozilla and Safari... but not in IE. I tried some ways to fix it, but without success. A strange situation, because, I solved it in other website some months ago, but I don't remember how. Can someone help me, please?

PS: Sorry for the mistakes, english is not my native language.

--

So, I found the solution. Custom fonts (IE in this case) only work in online websites, not in localhost. Thanks everyone for the help.

Red Vulpine
  • 433
  • 5
  • 17
  • http://stackoverflow.com/questions/3694060/how-to-make-google-fonts-work-in-ie The answerer suggests that some google fonts, even after an apparent fix still don't work in IE. Use his alternatives instead. – adaam May 16 '13 at 13:39
  • Have you tried all three methods of adding the font? Standard @import Javascript – Ma9ic May 16 '13 at 13:43
  • Thanks adaam, but no results. @Ma9ic, what three methods? – Red Vulpine May 16 '13 at 13:49

1 Answers1

0

Have you tried all three methods?

Standard:

<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'>

@import:

@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro);

Javascript

<script type="text/javascript">
  WebFontConfig = {
    google: { families: [ 'Source+Sans+Pro::latin' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })(); </script>

http://www.google.com/fonts#UsePlace:use/Collection:Source+Sans+Pro

Ma9ic
  • 1,107
  • 4
  • 16
  • 30