Html web服务器上的OTF字体?

Html web服务器上的OTF字体?,html,css,Html,Css,我想知道是否可以在web服务器上使用otf字体?我问这个问题是因为以下字体在本地主机上运行良好,但在IIS上上载时却不行 @font-face { font-family:"CustomArabicFont"; src: url("fonts/NassimArabicTEST-Regular.otf"); font-weight: normal; font-style: normal; } 我就是这样称呼这种字体的: .custom-ar-font {

我想知道是否可以在web服务器上使用otf字体?我问这个问题是因为以下字体在本地主机上运行良好,但在IIS上上载时却不行

@font-face 
{
    font-family:"CustomArabicFont";
    src: url("fonts/NassimArabicTEST-Regular.otf");
    font-weight: normal;
    font-style: normal;
} 
我就是这样称呼这种字体的:

.custom-ar-font 
{
    font-family: CustomArabicFont, Tahoma;
    font-size: 18px;
}

您需要配置正确的MIME类型。OTF字体的MIME类型应为

查看以下链接以了解实施详细信息: