How to make this Google Font work on Internet Explorer 11

37,511

Use:

@import url(http://fonts.googleapis.com/css?family=Montserrat:400,700);

To call it inside your stylesheet and:

font-family: 'Montserrat', sans-serif;

To make something that font..

From google fonts: "Note: For best display in IE, make the stylesheet tag the first element in the HTML section. In IE, if the link is placed after tags, the entire page will block and not display anything until the font is loaded."

<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

If that does not work, try this: https://developers.google.com/fonts/docs/webfont_loader#Example

This will make every browser "behave like Firefox".

Share:
37,511
ThemesCreator
Author by

ThemesCreator

I am a WordPress enthusiast. I know about HTML, CSS, JS, PHP and all other skills necessaries for building a cool website :) I am the founder of ThemesCreators WordPress Agency

Updated on November 05, 2020

Comments

  • ThemesCreator
    ThemesCreator over 3 years

    I use Montserrat font on my website, but it doesn't display on IE11 (windows 7). I put this other question some days ago: Montserrat font isn't displayed on IE 10 and 11

    Now i am trying to add Montserrat google font throught the css but it doesn't seems to work. This is my code:

    @font-face {
        font-family: 'Montserrat';
        src: url('assets/fonts/montserrat-regular-webfont.eot');
        src: url('assets/fonts/montserrat-regular-webfont.eot?#iefix') format('embedded-opentype'),
             url('assets/fonts/montserrat-regular-webfont.woff2') format('woff2'),
             url('assets/fonts/montserrat-regular-webfont.woff') format('woff'),
             url('assets/fonts/montserrat-regular-webfont.ttf') format('truetype'),
             url('assets/fonts/montserrat-regular-webfont.svg#montserratregular') format('svg');
        font-weight: normal;
        font-style: normal;
    
    }
    
  • Refilon
    Refilon over 9 years
    @Genethic see updated answer :) If that does not work, try this: developers.google.com/fonts/docs/webfont_loader#Example
  • Montag451
    Montag451 over 9 years
    @Genethic did the example given by Deer-Outdoor.nl solve your problem?