我使用CSS3属性unicode-range为不同的字符集设置不同的字体。Arial用于拉丁文字符,WebNazanin用于阿拉伯语/波斯语。它似乎在Chrome 29和IE10中工作,但在火狐23中不起作用,它仍然在火狐中使用Arial字体:
Chrome屏幕截图:

火狐截图

这是我的css:
@font-face {
font-family: 'WebNazanin';
src: url('http://awebfont.ir/services/fonts/775b712c01cdf4eb7f15d9180567345060f700291901931.eot'),
url('http://awebfont.ir/services/fonts/775b712c01cdf4eb7f15d9180567345060f700291901931.otf') format('opentype'),url('http://awebfont.ir/services/fonts/775b712c01cdf4eb7f15d9180567345060f700291901931.woff') format('woff'),
url('http://awebfont.ir/services/fonts/775b712c01cdf4eb7f15d9180567345060f700291901931.ttf') format('truetype'),
url('http://awebfont.ir/services/fonts/775b712c01cdf4eb7f15d9180567345060f700291901931.svg') format('svg');
}
@font-face {
font-family:'WebNazanin';
src: local('Times New Roman');
unicode-range: U+41-7F;
}JSFiddle:http://jsfiddle.net/maysamsh/t9MpF/
发布于 2013-09-14 15:21:32
发布于 2015-12-09 07:07:39
它很古老,但一个简单的解决方案是:
font-family: WebNazanin, Arial;我总是使用这种方法,它将显示阿拉伯语或波斯语字符的WebNazanin和拉丁语的Arial。
https://stackoverflow.com/questions/18803098
复制相似问题