I have the font-awesome icon-font working on my locahost as well as my mysite.com which are both nginx servers. Strangely, when I tried to implement a similar icon font set from Glyphicons the icons only render on mysite.com but not on my localhost.
Here's what the icons look like normally vs. how they look on my localhost:
normal: busted:
The problem is that the font-family: 'Glyphicons'
attribute is not being recognized on my localhost because simply commenting out the font
CSS property on mysite.com re-creates the red box appearance:
.glyphicons i::before {
position: absolute;
left: 0;
top: 0;
font: 24px/1em 'Glyphicons'; // commenting out this line re-creates the red box pattern
font-style: normal;
color: #1D1D1B;
color: red;
}