开发者

Why won't Opera (11.00) display custom (@font-face) fonts?

开发者 https://www.devze.com 2023-02-05 18:24 出处:网络
@font-face { font-family: \'PFDinMonoBold\'; src: url(\'pfdinmono-bold-webfont.eot\'); src: local(\'☺\'),
@font-face {
    font-family: 'PFDinMonoBold';
    src: url('pfdinmono-bold-webfont.eot');
    src: local('☺'),
        url('pfdinmono-bold-webfont.woff') format('woff'),
        url('pfdinmono-bold-webfont.ttf') format('truetype'),
        url('pfdinmono-bold-webfont.otf') format('opentype'),
        url('pfdinmono-bold-webfont.svg#webfontS2rh8Zow') format('svg');
    font-weight: normal;
    font-style:开发者_如何转开发 normal;
}

made it with the font squirrel generator.

By the way, custom fonts are not shown on the squirrel web either

What could be the problem?

P.S font work fine in ff,chrome,ie


You have to use double quotes for font family name.

@font-face {
font-family: "PFDinMonoBold";
src: url('pfdinmono-bold-webfont.eot');
src: local('☺'),
    url('pfdinmono-bold-webfont.woff') format('woff'),
    url('pfdinmono-bold-webfont.ttf') format('truetype'),
    url('pfdinmono-bold-webfont.otf') format('opentype'),
    url('pfdinmono-bold-webfont.svg#webfontS2rh8Zow') format('svg');
font-weight: normal;
font-style: normal;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消