1

In VS 2015, Blank App (Apache Cordova) show Persian (Farsi) text properly, but in ionic framework Persian (Farsi) text show like this:

In ionic Persian text not work properly

I've tried to add custom font-face in these steps:

  1. Add fonts to www/lib/ionic/fonts
  2. make a font-face like this

@font-face {
  font-family: "customFont";
  src: url("../fonts/BMitra.eot?v=2.0.1");
  src: url("../lib/ionic/fonts/BMitra.eot?v=2.0.1#iefix") format("embedded-opentype"), url("../lib/ionic/fonts/BMitra.ttf?v=2.0.1") format("truetype"), url("../lib/ionic/fonts/BMitra.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
body {
  font-family: "customFont";
}
  1. Test the font face both in ionic.css and style.css

But fonts still not working properly. Any suggestion? Thanks...

Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61
Parham.D
  • 1,128
  • 2
  • 12
  • 27

0 Answers0