7

This is my CSS:

@font-face {
    font-family: 'geometria_lightlight';
    src: url('Geometria-Light-webfont.eot');
    src: url('Geometria-Light-webfont.eot?#iefix') format('embedded-opentype'),
         url('Geometria-Light-webfont.woff2') format('woff2'),
         url('Geometria-Light-webfont.woff') format('woff'),
         url('Geometria-Light-webfont.ttf') format('truetype'),
         url('Geometria-Light-webfont.svg#geometria_lightlight') format('svg');
    font-weight: lighter;
    font-style: normal;

}

#logo{
  font-family: 'geometria_lightlight';
  font-size: 60px;
}

This is the message I am getting in Chrome: Failed to decode downloaded font: http://localhost:3000/Geometria-Light-webfont.woff2 localhost/:1 OTS parsing error: invalid version tag localhost/:1 Failed to decode downloaded font: http://localhost:3000/Geometria-Light-webfont.woff

I get this message with every single font that I download via Font Squirrel.

lola_the_coding_girl
  • 843
  • 2
  • 10
  • 22

2 Answers2

11

Stick your fonts in the folder public/fonts.

And then do something like this:

@font-face {
  font-family: 'BebasNeueRegular';
  src: url('/fonts/BebasNeue-Regular.ttf') format('truetype');
}
Eliezer Steinbock
  • 4,728
  • 5
  • 31
  • 43
0

After trying lots of other approaches, and lots of re-installs and checking within meteor and npm configurations, I have just fixed the issue by clearing out browsing data from Chrome (cached images and files) and then refreshing the page.

Andy Lorenz
  • 2,905
  • 1
  • 29
  • 29