رفتن به مطلب

لود نشدن فونت ها


پست های پیشنهاد شده

سلام

برای لود فونت از کد زیر استفاده کردم


@font-face {
font-family: 'BEsfehanBold';
src: url('/fonts/BEsfehanBold.eot');
src: local('BEsfehanBold'), url('fonts/BEsfehanBold.woff') format('woff'), url('fonts/BEsfehanBold.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'BNazanin';
src: url('/fonts/BNazanin.eot');
src: local('BNazanin'), url('fonts/BNazanin.woff') format('woff'), url('fonts/BNazanin.ttf') format('truetype');
font-weight: 400;
font-style: normal;
}

برای استایل هم کد زیر


font: 18px BNazanin, Tahoma ;

اما تو یه سیستم نازنین 18 اجرا میشه تو یه سیستم دیگه تاهما 18

مرورگر ها یکی هستن

ممنون

لینک به ارسال

خب کد درست هست دیگه ! با توجه به کدی شما دادید وقتی اون سیستم فونت نازنین رو نداره ، از فونت تاهوما استفاده میکنه

  • امتیاز 1
لینک به ارسال

سلام

این خط از کجا باید لود کنه؟


src: local

اینطوری آدرس بدید:


src:url('fonts/BNazanin.eot') format('eot'),
url('fonts/BNazanin.woff') format('woff'),
url('fonts/BNazanin.ttf') format('truetype');

  • امتیاز 5
لینک به ارسال
  • 2 هفته بعد...

بازم نشد

این بار تو هیچ سیستمی اجرا نمیشه

الان کد لود:


@font-face {
font-family: 'BEsfehanBold';
src: url(http://s2.alootorsh.ir/Fonts/BEsfehanBold.eot?#) format('eot'), /* IE6–8 */
url(http://s2.alootorsh.ir/Fonts/BEsfehanBold.woff) format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
url(http://s2.alootorsh.ir/Fonts/BEsfehanBold.ttf) format('truetype'); /* Saf3—5, Chrome4+, FF3.5, Opera 10+ */
font-weight: bold;
font-style: normal;
format( "truetype" );
}
@font-face {
font-family: 'BNazanin';
src: url(http://s2.alootorsh.ir/Fonts/BNazanin.eot?#) format('eot'), /* IE6–8 */
url(http://s2.alootorsh.ir/Fonts/BNazanin.woff) format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
url(http://s2.alootorsh.ir/Fonts/BNazanin.ttf) format('truetype'); /* Saf3—5, Chrome4+, FF3.5, Opera 10+ */
font-weight: bold;
font-style: normal;
format( "truetype" );
}

کد استایل:


.logo {
margin: 15px 80px 0px 0px ;
float: right;
padding: 5px ;
}
.logo a{
color: #00f;
font-size: 14pt;
font-family: BEsfehanBold, "Times New Roman", Times, serif;
text-shadow: 1px 1px 2px #ccc;
}

به جاییش اشکال داره

لینک به ارسال

لطفا برای ارسال دیدگاه وارد شوید

شما بعد از اینکه وارد حساب کاربری خود شدید می توانید دیدگاهی ارسال کنید



ورود به حساب کاربری
×
×
  • اضافه کردن...