을 테스트 한 모바일 웹킷 브라우저 (iPhone 3GS의 Safari, 기본 Android 2.2 브라우저 및 Android의 돌핀 브라우저)에서 동작하는 데 문제가 있습니다.@ font-face가 모바일 웹킷에서 작동하지 않습니다.
IE7에서 IE9, FF3.5, Safari 4 및 Opera의 모든 데스크탑 브라우저에서 작동합니다.
글꼴과 CSS는 FontSquirrel에서있다 :
@font-face {
font-family: 'LeagueGothicRegular';
src: url('../fonts/League_Gothic-webfont.eot');
src: local('☺'),
url('../fonts/League_Gothic-webfont.woff') format('woff'),
url('../fonts/League_Gothic-webfont.ttf') format('truetype'),
url('../fonts/League_Gothic-webfont.svg#webfontFHzvtkso') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'LatinModernRoman10Bold';
src: url('../fonts/lmroman10-bold-webfont.eot');
src: local('☺'),
url('../fonts/lmroman10-bold-webfont.woff') format('woff'),
url('../fonts/lmroman10-bold-webfont.ttf') format('truetype'),
url('../fonts/lmroman10-bold-webfont.svg#webfonthCDr6KZk') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'LatinModernRoman10BoldItalic';
src: url('../fonts/lmroman10-bolditalic-webfont.eot');
src: local('☺'),
url('../fonts/lmroman10-bolditalic-webfont.woff') format('woff'),
url('../fonts/lmroman10-bolditalic-webfont.ttf') format('truetype'),
url('../fonts/lmroman10-bolditalic-webfont.svg#webfontegrLi3sm') format('svg');
font-weight: normal;
font-style: normal;
}
나는 SVG 글꼴 소스에 SVG ID를 확인했지만, 그들은 모두 일치까지.
나중에 CSS에서 문자 간격 규칙이 있기 때문에 그럴 수 있습니까?
감사합니다.
두 번째 "eot"에서 아포스트로피가 누락되었습니다. 또한 웃는 얼굴 해킹이 무엇입니까? 나는 들어 본 적이 없습니까? :) ☺ –
머리를 주셔서 감사합니다! 편집 됨. smileyface 구문 [Paul Irish 's blog] (http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/)에 대한 정보를 읽을 수 있습니다. – bigsweater
변경 내용과 그 이유를 설명해야합니다. 스마일리를 없애고'# ') 형식 ('eot ')을 e 폰트에 추가 한 것 같습니다. 스펙은 형식 ('embedded-opentype')을 가져야 함을 나타냅니다. – xr280xr