title: Failed to decode the downloaded font glyphicons-halflings-regular.woff2 - Rails, Production
body: <p>Im using the bootstrap3-wysihtml5 and some of the icons are using glyphicons font.</p>
  
  <p>Im having problems using the glyphicons-halflings-regular font in my rails application when its running in production. My chrome browser console is showing </p>
  
  <pre><code>Failed to decode the downloaded font
  </code></pre>
  
  <p>and the font-icons are not showing. I see a square around where the icons should show. The fonts seems to be working locally even if precompile locally and run as production locally. Im running assets precompile in production.</p>
  
  <p>My fonts were originally located in the vendor directory under plugins and appended the path the config.assets.paths. </p>
  
  <p>I've ensured the paths are correct in the CSS file because i can successfully access the file via browser url. And the fact that the console warning shows "Failed to decode downloaded font" means it has access to it. Just cant understand the file. </p>
  
  <p>I've also tried registering the Mimetypes in the rails mimetype config:</p>
  
  <pre><code>Mime::Type.register 'application/x-font-woff', :woff 
  Mime::Type.register 'application/font-woff2', :woff2 
  Mime::Type.register 'application/x-font-ttf', :ttf 
  Mime::Type.register 'application/vnd.ms-fontobject', :eot
  </code></pre>
  
  <p>I've also tried moving the fonts out of the asset pipeline by placing them in the public folder and referencing accordingly but I get the same issue. </p>
  
  <p>Does anyone have any ideas on how i can resolve this?</p>
  
  <p>Using: 
  Rails 4.1.6
  Ruby 2.2.2</p>