字体仅适用于英文字母?

时间:2018-05-09 05:33:14

标签: css css3 fonts ionic3 tamil

您好我正在尝试使用泰米尔语字体,仅支持英文字母,但不支持泰米尔语字母 enter image description here

  

黑暗字母是英文字母,列表是泰米尔字母但是   字体未应用

     

app.scss

@font-face {
      font-family: 'tamil-ravi';
      font-weight: normal;
      font-style: normal;
      src: url('../assets/fonts/ravi-b.ttf');
      src: url('../assets/fonts/ravi-b.ttf') format('embedded-opentype'),
           local('Akzidenz-Grotesk Next'),
           local('Akzidenz-Grotesk Next'),
           url('../assets/fonts/ravi-b.ttf') format('woff')
    }

    @font-face {
      font-family: 'nagananthini';
      font-weight: normal;
      font-style: normal;
      src: url('../assets/fonts/nagananthini.ttf');
      src: url('../assets/fonts/nagananthini.ttf'),
           local('nagananthini Next'),
           local('nagananthini Next'),
           url('../assets/fonts/nagananthini.ttf') format('ttf')
    }

    .tamil-ravi{
        font-family: 'nagananthini';
    }
    * {
        font-family: 'tamil-ravi';
    }

1 个答案:

答案 0 :(得分:0)

您可以使用此字体并下载zip上的字体文件

@font-face{
 font-family:'Ravi-d';
src:url('../assets/fonts/Ravi-d.eot');
src:url('../assets/fonts/Ravi-d.eot?#iefix') format('embedded-opentype'),
url('../assets/fonts/Ravi-d.woff2') format('woff2'),
url('../assets/fonts/Ravi-d.woff') format('woff'),
url('../assets/fonts/Ravi-d.ttf') format('truetype');
}

font-family:'Ravi-d';

https://drive.google.com/open?id=1GYZdI7em5S0iPp4sw6cYdST0Q3buFPpO