@fon-face و مشکل در گوگل کروم

sorena22

تازه وارد
سلام خسته نباشید دوستان!من @font-face میزارم تو گوگل کروم ساپ.رت نمیکنه... نمیدونم چرا میشه یکی کمک کنه؟؟


کد:
@font-face {    font-family: 'BYekan';    src: url('font/BYekan.eot');    src: url('font/BYekan.eot?#iefix') format('embedded-opentype'),         url('fonts/lobstertwo-regular-webfont.woff') format('woff'),         url('font/BYekan.ttf') format('truetype'),         url('font/BYekan.svg#LobsterTwoRegular') format('svg');    font-weight: normal;    font-style: normal;
}
 
آخرین ویرایش توسط مدیر:

iPersianScript

کاربر عضو
سلام خسته نباشید دوستان!من @font-face میزارم تو گوگل کروم ساپ.رت نمیکنه... نمیدونم چرا میشه یکی کمک کنه؟؟
کد:
@font-face {    font-family: 'BYekan';    src: url('font/BYekan.eot');    src: url('font/BYekan.eot?#iefix') format('embedded-opentype'),         url('fonts/lobstertwo-regular-webfont.woff') format('woff'),         url('font/BYekan.ttf') format('truetype'),         url('font/BYekan.svg#LobsterTwoRegular') format('svg');    font-weight: normal;    font-style: normal;}
.. به طرز نا معلومی! با این کد فونت دلخواه رو فراخوانی، استفاده و نیز تاکنون! مشکلی نداشته ام! /:) :
کد:
[COLOR=#2f4f4f]@charset "utf-8";@font-face {	font-family:'myfont'; src: url('fonts/myfont.otf'); src: local("myfont"), url('fonts/myfont.otf') format('truetype');}[/COLOR]
. :54: .

 

iranenaz

کاربر عضو
سلام خسته نباشید دوستان!من @font-face میزارم تو گوگل کروم ساپ.رت نمیکنه... نمیدونم چرا میشه یکی کمک کنه؟؟

کد:
@font-face {    font-family: 'BYekan';    src: url('font/BYekan.eot');    src: url('font/BYekan.eot?#iefix') format('embedded-opentype'),         url('fonts/lobstertwo-regular-webfont.woff') format('woff'),         url('font/BYekan.ttf') format('truetype'),         url('font/BYekan.svg#LobsterTwoRegular') format('svg');    font-weight: normal;    font-style: normal;
}
سلام

واسه IE6 تا 9 از eot ، واسهFF3.6+, IE9, Chrome6+, Saf5.1+ از woff ، واسه FF3.6+, IE9, Chrome6+, Saf5.1+ از ttf استفاده کنید.

مسیر و نام woff با بقیه فرق می کنه چک کنید. همه داخل شاخه font هست این در fonts × اسم همه BYekan هست و این lobstertwo-regular-webfont .

فایل پیوست رو دانلود کنید ، از حال فشرده خارج کنید و BYekan.woff رو در شاخه font قرار بدید.



کد صحیح :


کد:
@font-face {
    font-family: 'BYekan';
    src: url('font/BYekan.eot?#') format('eot'),
         url('font/BYekan.woff') format('woff'),
         url('font/BYekan.ttf') format('truetype');
}
موفق باشید.

 

پیوست‌ها

  • BYekan.zip
    23.6 کیلوبایت · بازدیدها: 10
بالا