如何正确配置IIS服务器的字体 [英] how to configure IIS server correctly for fonts

查看:349
本文介绍了如何正确配置IIS服务器的字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




当我们将asp.net应用程序托管到iis服务器时,如何进行配置以支持Droid Sans,Oswald等字体?


请帮帮我

Hi,


How to do configuration for supporting fonts like Droid Sans,Oswald etc when we hosted the asp.net application to iis server



Please help me out

推荐答案

看看类似的质量检查:
此处 [
Have a look on similar QA:
here[^]





复制以下代码并将其粘贴到web.config文件中,即可正常使用

Hi,


Copy the below code and paste it into web.config file then it will work fine

<system.webserver>
    <staticcontent>
      <remove fileextension=".eot" />
      <mimemap fileextension=".eot" mimetype="application/vnd.ms-fontobject" />
      <mimemap fileextension=".woff" mimetype="application/font-woff" />
    </staticcontent>
    </system.webserver>


这篇关于如何正确配置IIS服务器的字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆