我正在尝试将这个UTF8真字体(字体包含波斯字符)嵌入到网络中,并使用这项服务将其转换为适当的格式。
唯一的问题是,它不适用于谷歌Chrome。Firefox和IE正确显示字体。
这是转换后的包裹。
这是原来的字体。
发布于 2013-10-31 14:20:49
我已将你问题中提到的字型转换成以下网址:
Mj_第纳尔一轻网字库包
此外,还必须使用以下样式行:
@font-face {
font-family: 'yourDesiredName';
src: url('yourDesiredPathForFont/mj_dinar_one_light-webfont.eot');
src: url('yourDesiredPathForFont/mj_dinar_one_light-webfont.ttf') format('truetype'), url('yourDesiredPathForFont/mj_dinar_one_light-webfont.eot?#iefix') format('embedded-opentype'), url('yourDesiredPathForFont/mj_dinar_one_light-webfont.woff') format('woff'), url('yourDesiredPathForFont/mj_dinar_one_light-webfont.svg#yourDesiredName') format('svg');
font-weight: normal;
font-style: normal;
}
而且,您应该在.htaccess文件中添加以下行:
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff
https://webmasters.stackexchange.com/questions/29646
复制相似问题