I am trying to place a Google Material Design badge for my website, but I can’t get the badges displayed in Chrome or Safari.
I am using this CSS file:
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(/public/dist/font/Material-Design-Icons.eot);
src: url(/public/dist/font/Material-Design-Icons.woff2) format('woff2'),
url(/public/dist/font/Material-Design-Icons.woff) format('woff'),
url(/public/dist/font/Material-Design-Icons.ttf) format('truetype');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
display: inline-block;
width: 1em;
height: 1em;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
font-feature-settings: 'liga';
}
Pulling a file:
link(rel="stylesheet", href="/public/dist/css/font.css")
What I see in the browser is loading
The font itself is even loaded onto the page, I see the .woff file on the network tab in Chrome.
This is a folder structure publicthat is hosted on the server as "is is".

I use the font here (jade):
i.material-icons.prefix perm_identity
And I see that the CSS class above applies to this element
But fonts are not displayed.
EDIT: People here have the same problem: https://github.com/google/material-design-icons/issues/205