سلام
من توی فونت تخصصی ندارم و یه سوال برام پیش اومده
من فونت وزیر رو روی هاست گذاشتم و با کد زیر اجرا کردم:
اما کار نمیکنه!کد 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>





پاسخ با نقل قول