How to include ui-grid font files into the project

前端 未结 8 804
独厮守ぢ
独厮守ぢ 2021-01-07 19:55

I have been stuck with anjularjs ui-grid, it\'s showing some Chinese symbols in place of icons. After digging about it I get to know I have to use some font-files provided b

8条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-07 20:17

    I had the same issue, now it is rectified as follows

    I updated the Ui-grid with either latest stable version(v3.0.0-rc.3) or the unstable version(v3.0.0-rc.16).

    then place the font files all in the same directory as your ui-grid.css lives, like this

    app
    - lib
      - ui-grid.js
      - ui-grid.css
      - ui-grid.eot
      - ui-grid.svg
      - ui-grid.ttf
      - ui-grid.woff
    

    or

    you can open the CSS and change the file path to the relative location in @font-face url's

    check here http://ui-grid.info/docs/#/tutorial/116_fonts_and_installation

提交回复
热议问题