Reputation: 2183
I wonder is it possbile to use otf fonts on web server? I am asking this question because the following font works well on localhost but does not when I upload it on IIS.
@font-face
{
font-family:"CustomArabicFont";
src: url("fonts/NassimArabicTEST-Regular.otf");
font-weight: normal;
font-style: normal;
}
This is how I am calling this font:
.custom-ar-font
{
font-family: CustomArabicFont, Tahoma;
font-size: 18px;
}
Upvotes: 3
Views: 920
Reputation: 3289
You'll need to configure the proper MIME types. OTF fonts should have a MIME-type of application/font-sfnt
.
Check these links for implementation details:
Upvotes: 3