我在Safari中阅读字体时遇到了问题。我将OTF转换为TTF - 两种粗体和普通字体。在Chrome和Firefox中都很好,但在Safari中,只有粗体字体有效,普通字体无效。
IE无法读取我从网站转换的EOT字体。是否有更好的方法将OTF转换为EOT?
这是我的代码:
<style type="text/css">
//Bariol_Bold
@font-face{
font-family: Bariol_Bold;
src:url("fonts/bariol_bold.eot"); /*For ie browser*/
}
@font-face{
font-family: Bariol_Bold;
src:url("fonts/bariol_bold.ttf"); /*For other browsers*/
}
//Bariol_Regular
@font-face{
font-family:bariol_regular;
src:url("fonts/bariol_regular.eot"); /*For ie browser*/
}
@font-face{
font-family: bariol_regular;
src:url("fonts/bariol_regular.ttf"); /*For other browsers*/
</style>
<p style="font-family: Bariol_Bold; font-size: 20px;">hello world</p>
<p style="font-family: bariol_regular; font-size: 20px;">hello world</p>