CSS, firefox does not recognize Bree Serif font

0

I use google sources, however I got surprise today that I went to test my files in firefox and realized that the font was not loaded. See

link

@font-face {
font-family: 'Bree Serif';
font-style: normal;
font-weight: 400;
src: local('Bree Serif'), local('BreeSerif-Regular'), url(http://fonts.gstatic.com/s/breeserif/v5/0daoUMW28nkWOnFz2G4AAgsYbbCjybiHxArTLjt7FRU.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;

}

@font-face {
  font-family: 'Bree Serif';
  font-style: normal;
  font-weight: 400;
  src: local('Bree Serif'), local('BreeSerif-Regular'), url(http://fonts.gstatic.com/s/breeserif/v5/LQ7WLTaITDg4OSRuOZCpswsYbbCjybiHxArTLjt7FRU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
div {
    font-family: 'Bree Serif';
    }
    
asked by anonymous 16.12.2014 / 21:25

1 answer

2

It may be more interesting to use Quick-use , as Google says. I do not put my hand on the fire but I believe you will hardly have a loading problem with "Google being offline."

The three forms of import described in the Google Fonts :

Default: Importing directly into HTML

<!doctype html>
<html>
  <head>
    <link href='http://fonts.googleapis.com/css?family=Bree+Serif' rel='stylesheet' type='text/css'>
    
    <style>
      .minha-fonte {
        font-family: 'Bree Serif', serif;
      }
    </style>
  </head>
  <body>
    <h2 class='minha-fonte'>StackOverflow</h2>
  </body>
</html>

Importing into CSS with @import

@import url(http://fonts.googleapis.com/css?family=Bree+Serif);

.minha-fonte {
  font-family: 'Bree Serif', serif;
}
<h2 class='minha-fonte'>StackOverflow</h2>

Importing with Javascript

<!doctype html>
<html>
  <head>
    <script type="text/javascript">
      WebFontConfig = {
        google: { families: [ 'Bree+Serif::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>
    <style>
      .minha-fonte {
        font-family: 'Bree Serif', serif;
      }
    </style>
  </head>
  <body>
    <h2 class='minha-fonte'>StackOverflow</h2>
  </body>
</html>
    
16.12.2014 / 22:22