Bootstrap woff2 font not getting loaded correctly

Since you put a asp.net-mvc tag on your post, I’m giving you IIS configuration solution for you. Chrome doesn’t consume woff and throws 404 error when your web server isn’t configured with MIME type ‘woff’ or ‘woff2’. You need to add IIS a MIME-TYPE for woff2. You can configure it in web.xml. <system.webServer> <staticContent> <remove … Read more

application/font-woff2 not working when using Asp.Net VNext

The file format woff2 is in the mapping list but this was added recently (February 2015) so you may not use a release that contains this change. So to add a custom file format you can use the IIS way using web.config: <system.webServer> <staticContent> <remove fileExtension=”.woff2″ /> <mimeMap fileExtension=”.woff2″ mimeType=”application/font-woff2″ /> </staticContent> </system.webServer> Or using … 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 (late 2022 update: Microsoft actually killed it on its promised EOL date of June 15, and the world is a better place for it), and without the local() source indicator, because you want everyone to … Read more

Font Face isn’t working in IIS 8.0

Great to see WOFF2 being included in Font Squirrel fonts! Whilst IIS 8 does not need a mime type added for WOFF it will need one for WOFF2. The W3C recommends: application/font-woff2 For more info on WOFF2 see here. To add the mime type in IIS, modify your Web.Config as follows: <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> … Read more

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)