问题
I created a custom vector font and trying to use it in some places that font awesome doesnt fit. However the font icons dont display property like the font awesome ones do. The CSS seems to be exact but I cant tell what is causing the issue. Below you will see the custom icon circled, while the others are font awesome. The icon just wont center like the font awesome icons.
You can find this markup on this page: Vegas Finals

The HTML <i>
looks centered, but the :before
pushes the actual icon up.
<i class="icon-ncaa icon-ebt-ncaa"></i>
回答1:
The main thing is that your glyphs are not centered correctly inside the custom font.
You need to edit the .woff file (and other types if they exhibit the same problem)
You also should remove the btn-ncaa
class from the container a
tag as it alters the vertical-align
and the whole button is misplaced as well in relation to the ones next to it..
来源:https://stackoverflow.com/questions/22697887/custom-font-not-replicating-font-awesome-in-website