我有以下代码:
#entrance {
margin: 20% auto auto auto;
text-align: center;
font-family: 'Baron Neue';
src: url('fonts/baron.otf');
}
这允许文本以chrome中的所需字体呈现,即safari和opera,但不是firefox。我得到的只是新罗马时代。
答案 0 :(得分:2)
使用@ font-face属性。
@font-face {
font-family: Baron Neue;
src: local('Baron Neue'),
url('fonts/baron.otf');
font-weight: 400;
}