我已經完成了psd並在我的項目中使用了Caviar Dreams字體。 此字體包含西里爾字符,它們出現在photoshop中,但是當我使用與@ font-face相同的字體時(字體松鼠webfont generator) - 所有西里爾文字符都顯示爲通用字體字符(例如arial)。拉丁字符正確顯示。西里爾字符使用@ font-face時遇到問題
對於能夠幫助我解決這個問題的人來說,最好的祝願!
fontsquirrel stylesheet.css中的文件:我的style.css的
@font-face {
font-family: 'caviar_dreams';
src: url('caviardreams_no_latin-webfont.eot');
src: url('caviardreams_no_latin-webfont.eot?#iefix') format('embedded-opentype'),
url('caviardreams_no_latin-webfont.woff') format('woff'),
url('caviardreams_no_latin-webfont.ttf') format('truetype'),
url('caviardreams_no_latin-webfont.svg#caviar_dreamsregular') format('svg');
font-weight: normal;
font-style: normal;
}
部分:
h2 {
font-family: 'caviar_dreams', arial, sans-serif;
font-size: 26px;
color: #ffffff;
}
謝謝!希望我能代表答案!:) –
@YevgenyPotapov,請不要忘記接受此答案 – user907860