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

@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; } 

did it with a protein generator.

By the way, custom fonts do not appear on the white network either

What could be the problem?

PS font works fine in ff, chrome, i.e.

+4
source share
1 answer

You need to use double quotes for the 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; } 
+8
source

Source: https://habr.com/ru/post/1336150/


All Articles