为什么这种字体在IE8中可以渲染:
而这则不行:
@font-face {
font-family: 'Aller';
src: url('aller_rg-webfont.eot');
src: url('aller_rg-webfont.eot?#iefix') format('embedded-opentype'),
url('aller_rg-webfont.woff') format('woff'),
url('aller_rg-webfont.ttf') format('truetype'),
url('aller_rg-webfont.svg#AllerRegular') format('svg');
font-weight: normal;
font-style: normal;
}
而这则不行:
@font-face {
font-family: 'Champagne';
src: url('champreg-webfont.eot');
src: url('champreg-webfont.eot?#iefix') format('embedded-opentype'),
url('champreg-webfont.woff') format('woff'),
url('champreg-webfont.ttf') format('truetype'),
url('champreg-webfont.svg#Champagne&LimousinesRegular') format('svg');
font-weight: normal;
font-style: normal;
}
我真的想不出来是什么问题。其他浏览器都能够正常工作,显然的。
元素-字体信息...-PS Names:字体名称、家族名称、人类名称 元素-字体信息...-TTF Names:家族。
使用修改后的ttf文件生成eot文件,并通过ttf2eot转换器将ttf转换为eot - ellexdev