我正试图将一个字体文件导入到我的网站,而非拉丁语不起作用。
当使用Font Squirrel webfont generator时,我选择了一个专家选项,允许我选择非西方字符。
我用Font Forge测试了.woff文件,并且支持我需要的字符。
我已经添加了
<meta http-equiv="content-type" content="text/html;charset=utf-8">
HTML标记。
所有字体文件名都是小写的。
代码如下:
@font-face {
font-family: 'worksans';
src: url('work_sans_regular/worksans-regular.woff2') format('woff2'),
url('work_sans_regular/worksans-regular.woff') format('woff'),
url('work_sans_regular/worksans-regular.eot') format('eot');
font-weight: 400;
font-style: normal;
}
html {
font-family: 'worksans';
}
当我使用这种字体时,只有拉丁字符才有这种字体。非拉丁字符具有备用字体。
最佳答案
尝试使用unicode范围也许这就是问题所在
This应该会有帮助