2

We're coding an Android app using fontawesome icons. Our app works fine with fontawesome icons on iOS but nothing for Android. I tried all sorts of online fixes and none of them worked, and I really don't feel like creating a few hundred different PNG's for each screen resolution.

What do I do? I can't do this: How to use icons and symbols from "Font Awesome" on Native Android Application

The way we're defining it (fontawesome.css):

@font-face {
  font-family: 'FontAwesome';
  src: url('fonts/fontawesome/fontawesome-webfont.eot?v=3.2.1');
  src: url('fonts/fontawesome/fontawesome-webfont.eot?#iefix&v=3.2.1') format('embedded-opentype'), url('fonts/fontawesome/fontawesome-webfont.woff?v=3.2.1') format('woff'), url('fonts/fontawesome/fontawesome-webfont.ttf?v=3.2.1') format('truetype'), url('fonts/fontawesome/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1') format('svg');
  font-weight: normal;
  font-style: normal;
}

With all of our fonts in fonts/fontawesome.

Not a single clue on how to get this working on Android..

Community
  • 1
  • 1
eveo
  • 2,797
  • 15
  • 61
  • 95

1 Answers1

1

try to remove the version paramter ?v=3.2.1

src: url('fonts/fontawesome/fontawesome-webfont.eot');

some old webkit can't recognize the url with paramaters

Carl0s1z
  • 4,683
  • 7
  • 32
  • 47
Xinyu Li
  • 26
  • 2