Proper MIME type for .woff2 fonts

In IIS you can declare the mime type for WOFF2 font files by adding the following to your project’s web.config: <system.webServer> <staticContent> <remove fileExtension=”.woff2″ /> <mimeMap fileExtension=”.woff2″ mimeType=”font/woff2″ /> </staticContent> </system.webServer> Update: The mime type may be changing according to the latest W3C Editor’s Draft WOFF2 spec. See Appendix A: Internet Media Type Registration section … Read more

Are eot, ttf, and svg still necessary in the font-face declaration?

October 2018 edit tl;dr: use WOFF2, every modern browser supports it, with WOFF fallback because IE11 just won’t bloody die (update: it finally got an EOL date of June 15, 2022), and without the local() source indicator, because you want everyone to use the same font, not “a different version or even completely different font … Read more