나는 웹 사이트에서 현재 @ font-face (this + this)를 사용하여 글꼴을로드하고 있습니다. 일부 특수 문자가 제대로로드되지 않음을 알았습니다 -> ŠĐŽČĆ šđžčć. 이 문자는 글꼴 자체에 있습니다. 여기>@ font-face vs. cufon
물론, - 그래서, 나는 결과는 다음과 같습니다 @ 글꼴 얼굴 글꼴과 cufon 글꼴 ...와 테스트 페이지를로드 ... 테스트를했다 코드입니다 - 지금까지 내가 UTF8, widnwos1250에서 인코딩을 전환 tryed했습니다, 그리고 아무것도 @ 글꼴 얼굴 기법을 이해와 함께 작동하도록 보인다>
<html>
<head>
<script type="text/javascript" src="cufon-yui.js"></script>
<script type="text/javascript" src="ReprobateCRO_400.font.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<script type="text/javascript">Cufon.set('fontFamily', 'ReprobateCRO').replace('h1');</script>
<style type="text/css">
@font-face {
font-family: 'ReprobateCROLASTRegular';
src: url('reprob_cro_last_last-webfont.eot');
src: local('ReprobateCROLASTRegular'),
url('reprob_cro_last_last-webfont.eot?#iefix') format('embedded-opentype'),
url('reprob_cro_last_last-webfont.woff') format('woff'),
url('reprob_cro_last_last-webfont.ttf') format('truetype'),
url('reprob_cro_last_last-webfont.svg#ReprobateCROLASTRegular') format('svg');
font-weight: normal;
font-style: normal;
}
h2{
font-family:ReprobateCROLASTRegular;
}
</style>
</head>
<body>
<h1>--> CUFON --> šđžčć ŠĐŽČĆ</h1>
<br/><br/>
<h2>--> @FONT-FACE --> šđžčć ŠĐŽČĆ</h2>
</body>
</html>
... 그래서
, 나는 두가 질문 ... 할 아무도 여기서 무슨 일이 일어나는 지 알아? 그리고, 만약 내가 font-face의 cufon insted를 사용한다면, 페이지 로딩 속도가 얼마나 느려지겠습니까? (cufon은 JS를 사용하여 글꼴을로드합니다.)
감사합니다!
내가 모르는 뭔가가되어야하지만, 나에게 올바른 보이는 ... –
@Andrej 사용하고있는 브라우저는? –
@ font-face의 특수 문자는 모든 최신 브라우저에서 엉망입니다. 크롬, 파이어 폭스, IE> 7, 오페라, 사파리에서 테스트되었습니다 ... – Andrej