Safari でフォントを読み取るのに問題があります。OTF を TTF に変換しました - 太字と通常の 2 つのフォントです。どちらも Chrome と Firefox で問題ありません。しかし、Safari では太字フォントのみが機能し、通常のフォントは機能しません。
Web サイトから変換した EOT フォントが IE で読み取れません。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>