如何更改从右到左语言的离子字体?

时间:2016-01-10 07:37:16

标签: font-face visual-studio-cordova ion

在VS 2015中,空白应用程序(Apache Cordova)正确显示波斯语(波斯语)文本,但在离子框架中波斯语(波斯语)文本显示如下:

In ionic Persian text not work properly

我尝试在这些步骤中添加自定义font-face:

  1. 将字体添加到www / lib / ionic / fonts
  2. 制作像这样的字体
  3. @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. 在ionic.css和style.css
    2. 中测试字体

      但字体仍无法正常工作。 有什么建议吗? 谢谢......

0 个答案:

没有答案