I'm using PhoneGap and in my pages I'm trying to use FontAwesome but it doesn't work?

浪子不回头ぞ 提交于 2019-12-05 01:49:59

问题


I created application with PhoneGap for Android and I'm using FontAwesome icons in my app, but I can't see icons but just squares. I include FontAwesome like this

 <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">

And I'm using it like this

<i class="icon-circle "></i>

Do I need to move the FontAwesome folder somewhere else, now it is in www->fontawesome and the file from which I'm calling it it's also in www folder, or I need to do something else I can find any useful answer?


回答1:


https://github.com/FortAwesome/Font-Awesome/issues/1094

I think this explains it You have to go into the font-awesome css and make a change to the line

  text-rendering: optimizelegibility;

change it to

  text-rendering: auto;



回答2:


I encountered this issue when I didn't include the fonts folder containing all the Font Awesome fonts.

Font Awesome looks for the fonts in a path relative to the font-awesome.css file (../fonts/fontawesome-webfont.eot, etc.).



来源:https://stackoverflow.com/questions/17897285/im-using-phonegap-and-in-my-pages-im-trying-to-use-fontawesome-but-it-doesnt

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