я проверил, и файлы шрифтов на сервере:@ шрифт лицо работает локально на IE10, но не на сервере
@font-face {
font-family: 'DroidSerifRegular';
src: url('fontface/DroidSerif-Regular-webfont.eot');
src: url('fontface/DroidSerif-Regular-webfont.eot?#iefix') format('embedded-opentype'),
url('fontface/DroidSerif-Regular-webfont.woff') format('woff'),
url('fontface/DroidSerif-Regular-webfont.ttf') format('truetype'),
url('fontface/DroidSerif-Regular-webfont.svg#DroidSerifRegular') format('svg');
src: local('☺'),
url('fontface/DroidSerif-Regular-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'DroidSerifItalic';
src: url('fontface/DroidSerif-Italic-webfont.eot');
src: url('fontface/DroidSerif-Italic-webfont.eot?#iefix') format('embedded-opentype'),
url('fontface/DroidSerif-Italic-webfont.woff') format('woff'),
url('fontface/DroidSerif-Italic-webfont.ttf') format('truetype'),
url('fontface/DroidSerif-Italic-webfont.svg#DroidSerifItalic') format('svg');
src: local('☺'),
url('fontface/DroidSerif-Italic-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
EDIT: Что странно, что шрифт отображается правильно в IE8, но не IE9 или IE10.
Я также попытался:
@font-face {
font-family: 'DroidSerifRegular';
src: local('☺'),
url('http://www.mysite.ca/themes/mysite/fontface/DroidSerif-Regular-webfont.eot?#iefix') format('embedded-opentype'),
url('http://www.mysite.ca/themes/mysite/fontface/DroidSerif-Regular-webfont.woff') format('woff'),
url('http://www.mysite.ca/themes/mysite/fontface/DroidSerif-Regular-webfont.ttf') format('truetype'),
url('http://www.mysite.ca/themes/mysite/fontface/DroidSerif-Regular-webfont.svg#DroidSerifRegular') format('svg');
font-weight: normal;
font-style: normal;
}
И мой .htaccess:
AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
Другой EDIT:
Я только что проверил в IE, и я получаю это сообщение:
CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable
иногда URL-адрес должен пройти весь путь к файлу. –
Хорошая точка. Я просто попробовал это, но он все еще не работает ... это не дефолт для веб-шрифта ... он выглядит очень странно, тощий и сглаженный. – redconservatory
Как выглядит ваш htaccess вашего сервера (я предполагаю, что вы на apache). –