douyan6742 2013-06-25 16:04
浏览 63
已采纳

如何将AddType添加到Apache服务器

I am currently working with the Uniform Server and I would like to learn how to apply an AddType to it, so that my custom fonts, (i.e. a .otf font), is registered when I use that font on my PHP pages. This is the message I get via my console log via Google Chrome, when I am using my custom font...

Resource interpreted as Font but transferred with MIME type application/x-font-otf: htt://.../mfont.otf

I did some digging, and so far came up with the following line that needs to be integrated...

AddType application/x-font-otf

But I'm clueless on where to put, or how to fix issues like this. But I want to learn!

Thanks for any advice!

  • 写回答

2条回答 默认 最新

  • dongyan9950 2013-06-25 16:41
    关注

    Insert

    AddType application/x-font-otf
    

    in

    If you are using xampp C:/xampp/htdocs/xampp/apace/conf/httpd.conf

    Still Not working

     AddType  font/opentype
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line