How do I use fontello fonts?

Inside the bundle, there is “font” folder and a “css” folder. Move the font folder into your project. Your project might look something like this: /project-root — /stylesheets — /images — /javascripts — /font Include the Fontello css. Inside the “css” folder in the bundle, you’ll see: [yourfontname]-codes.css [yourfontname]-embedded.css [yourfontname]-ie7-codes.css [yourfontname]-ie7.css [yourfontname].css For most cases, … Read more

“NetworkError: 404 Not Found fontawesome-webfont.woff?v=4.0.3

This worked for me: Add the following lines to your web.config <system.webServer> <staticContent> <remove fileExtension=”.woff”/> <mimeMap fileExtension=”.woff” mimeType=”application/x-font-woff” /> </staticContent> </system.webServer> You have to add these lines because by default Apache is not configured with .woff as a default MIME-type. Apache default MIME-type This holds for IIS as well. As Seb Duggan explains here:IIS default … Read more

Using jQuery to know when @font-face fonts are loaded?

I use this function – tested in Safari, Chrome, Firefox, Opera, IE7, IE8, IE9: function waitForWebfonts(fonts, callback) { var loadedFonts = 0; for(var i = 0, l = fonts.length; i < l; ++i) { (function(font) { var node = document.createElement(‘span’); // Characters that vary significantly among different fonts node.innerHTML = ‘giItT1WQy@!-/#’; // Visible – so … Read more

Flash of unstyled content (FOUC) in Firefox only? Is FF slow renderer?

If you add a dummy <script> tag right after <body>, Firefox will show the page after all the css from <head> is loaded: <body> <script>0</script> <!– rest of the code –> </body> There is an official bugreport about this FOUC (Flash Of Unstyled Content) on the Firefox site: https://bugzilla.mozilla.org/show_bug.cgi?id=1404468