मैं एक वेबसाइट पर काम कर रहा हूं और वर्तमान में फोंट लोड करने के लिए @ font-face tehnique (this + this) का उपयोग कर रहा हूं। मैंने देखा कि कुछ विशेष पात्र ठीक से लोड नहीं हो रहे हैं -> ŠĐŽČĆ šđžčć। यह है, वे वर्ण फ़ॉन्ट में मौजूद हैं। तो, मैं एक परीक्षण बनाया ... मैं @ फॉन्ट-फेस फ़ॉन्ट और cufon फोंट ... के साथ एक परीक्षण पेज लोड परिणाम के नीचे है ->@ फ़ॉन्ट-फेस बनाम cufon
और हां, यहां कोड है ->
<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>
अब तक मैं UTF8, widnwos1250 से एन्कोडिंग स्विचिंग tryed है, और कुछ भी नहीं @ फॉन्ट-फेस tehnique के साथ काम करने लगता है ...
तो, मैं दो है प्रश्न ... करो किसी को पता है कि यहाँ क्या हो रहा है? और, अगर मैं @ font-face के cufon insted का उपयोग करने के लिए स्विच करता हूं - पेज लोडिंग को धीमा कर देगा? (कॉन्सिडिंग क्यूफॉन फोंट लोड करने के लिए जेएस का उपयोग करता है)
आपके समय के लिए धन्यवाद!
मैं कुछ कमी किया जाना चाहिए, लेकिन यह मेरे लिए सही लगती है ... –
@Andrej जिस ब्राउज़र का उपयोग कर रहे हैं? –
@ फ़ॉन्ट-फेस विशेष वर्ण सभी आधुनिक ब्राउज़रों में गड़बड़ कर रहे हैं .. क्रोम, फ़ायरफ़ॉक्स, आईई> 7, ओपेरा, सफारी में परीक्षण ... हर जगह समान दिखता है ... – Andrej