@font-face url pointing to local file

前端 未结 3 687
我寻月下人不归
我寻月下人不归 2020-12-08 14:17

I need to include a font (OpenSymbol) in a html file and the font file is in a local folder (I know the exact absolute path to it). If I use @font-face like this:

         


        
3条回答
  •  忘掉有多难
    2020-12-08 14:36

    It might be the browser is just not supporting the .ttf file. Consider working with fontsquirrel, it will generate all required files (.ttf, .woff, .svg, .eot) and css for you, and works in all browsers. I use it all the time...

提交回复
热议问题