Questions tagged «woff2»

4
.woff2字体的正确MIME类型
今天,我将Font Awesome软件包更新为4.3.0,并注意到添加了woff2字体。该文件在CSS中链接,因此我需要配置nginx才能正确提供woff2文件。 目前,我在nginx config中有此字体块: location ~* \.(otf|eot|woff|ttf)$ { types {font/opentype otf;} types {application/vnd.ms-fontobject eot;} types {font/truetype ttf;} types {application/font-woff woff;} } woff2字体正确的mime类型是什么?
279 fonts  mime-types  woff  woff2 

4
字体在IIS 8.0中不起作用
我从Font Squirrel生成的程序中有一个字体,但我无法使它在IIS中工作,它在localhost中工作。我在我的MIME类型中添加了application / font-woff 文章,但它仍然不起作用。 Context --Fonts ----font location --css files 的CSS @font-face { font-family: 'wallStreetFont'; src: url('Fonts/subway-webfont.eot'); src: url('Fonts/subway-webfont.eot?#iefix') format('embedded-opentype'), url('Fonts/subway-webfont.woff2') format('woff2'), url('Fonts/subway-webfont.woff') format('woff'), url('Fonts/subway-webfont.ttf') format('truetype'); font-weight: normal; font-style: normal; } 编辑当前MIME 我正在使用默认的IIS 8 MIME 字体/ x-woff
118 css  iis  fonts  woff2 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.