여기 내 코드는 데스크톱과 태블릿에서 완벽하게 작동하지만 모바일에서는 작동하지 않습니다. 그것은 코드 또는 일부 글꼴은 당신이 예처럼 얼굴을 글꼴하는 데 필요한 모든 src에 추가 할 필요가 모바일@ 글꼴이 모바일에서 작동하지 않습니다.
@font-face {
font-family: 'Out';
src: url('http://location/Outstanding.otf');
}
여기 내 코드는 데스크톱과 태블릿에서 완벽하게 작동하지만 모바일에서는 작동하지 않습니다. 그것은 코드 또는 일부 글꼴은 당신이 예처럼 얼굴을 글꼴하는 데 필요한 모든 src에 추가 할 필요가 모바일@ 글꼴이 모바일에서 작동하지 않습니다.
@font-face {
font-family: 'Out';
src: url('http://location/Outstanding.otf');
}
작동하지 않습니다 :
이
@font-face {
font-family: 'MyWebFont';
src: url('webfont.eot'); /* IE9 Compat Modes */
src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('webfont.woff2') format('woff2'), /* Super Modern Browsers */
url('webfont.woff') format('woff'), /* Pretty Modern Browsers */
url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}
출처 : https://css-tricks.com/snippets/css/using-font-face/
는 희망이 도움을 , 건배.
(당신이 글꼴을 변환해야하는 경우 당신은 거 야 https://www.fontsquirrel.com/tools/webfont-generator 필요) 필요한 모든 글꼴 파일 (당신이 그들을 가지고 가정) :
@font-face {
font-family: 'Out';
src: url('out.eot'); /* IE9 Compat Modes */
src: url('out.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('out.woff2') format('woff2'), /* Super Modern Browsers */
url('out.woff') format('woff'), /* Pretty Modern Browsers */
url('out.ttf') format('truetype'), /* Safari, Android, iOS */
url('out.svg#svgFontName') format('svg'); /* Legacy iOS */
}
그래서 * .TTF을 Safari/IOS 등에서 누락되었습니다.
브라우저 특정 문제 –