سلام
من توی فونت تخصصی ندارم و یه سوال برام پیش اومده
من فونت وزیر رو روی هاست گذاشتم و با کد زیر اجرا کردم:
کد HTML:
<style>
@font-face {
font-family: 'Vazir';
src: url('https://www.*****.com/fonts/Vazir.eot?#') format('eot'), url('https://www.*****.com/fonts/Vazir.woff') format('woff'), url('https://www.*****.com/fonts/Vazir.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
p.a {
font-family: 'Vazir', Times, serif;
}
</style>
<p class="a">تست فونت</p>
اما کار نمیکنه!
در حالی که دقیقا همین فونت روی بلاگفا اجرا میشه
کد HTML:
<style>
@font-face {
font-family: 'Vazir';
src: url('https://***.com/static/fonts/Vazir.eot?#') format('eot'), url('https://***.com/static/fonts/Vazir.woff') format('woff'), url('https://***.com/static/fonts/Vazir.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
p.a {
font-family: 'Vazir', Times, serif;
}
</style>
<p class="a">تست فونت</p>
دلیل اینکه این فونت روی بلاگفا اجرا میشه اما روی سرور خودم اجرا نمیشه چیه؟