Custom font not replicating font awesome in website

回眸只為那壹抹淺笑 提交于 2020-01-02 09:13:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!