title: Firefox problems with Unicode fonts
body: <p>I am developing a game in HTML5/Canvas. Most of my game objects are represented as Uncicode glyphs. 
  I have three fonts embedded on the site in a bunch of different formats. All three of these fonts have support for most of the glyphs in the Basic Multilingual Plane and the Supplementary Multilingual Plane (in other words: They contain the symbols I use as game objects).</p>
  
  <p>While I was testing out the prototype across multiple browsers, I quicly realized that something odd was going on in Firefox/Gecko. I put together a little test, and here's what I found.</p>
  
  <p>In Chrome and other Webkit-based browsers, all characters of all the fonts render fine. </p>
  
  <p>Firefox seems to have problems to load the fonts though. This is strange: I have supplied the fonts in all usual formats (ttf, eot, woff, svg), and there's no cross-site shenaningans going on since they are saved in a subfolder of the folder containing the current page. However, firefox shows all text in the default font (Times New Roman) instead. 
  Also interesting to note is the fact that if you use a font that is not included in the web-page but is installed on your local computer, Firefox will show the normal Latin characters, but any other unicode characters will again turn up in Times New Roman.</p>
  
  <p>This is either a bug in Firefox, but more likely is of course that I have made a mistake somewhere. Can someone point out what causes this problem and how to resolve it?</p>
  
  <p><strong>Pictures:</strong></p>
  
  <p>Firefox has trouble with the fonts, they all look the same:
  <img src="https://i.stack.imgur.com/6sOiL.png" alt="Firefox showing the page with problems"></p>
  
  <p>The page as it should look, using Google Chrome:
  <img src="https://i.stack.imgur.com/uRgCF.png" alt="Chrome showing the page as it should"></p>
  
  <p>To check it out yourself, here is the page with the current prototype: <a href="http://wmmusic.nl/codexamples/pixijs/fonttest/smuv2.html" rel="nofollow noreferrer">http://wmmusic.nl/codexamples/pixijs/fonttest/smuv2.html</a></p>
  
  <p>EDIT:</p>
  
  <p>After doing some research and asking around in the #firefox IRC channel of Mozilla, I found out that there is something wrong with the .ttf fonts I am using. It seems that somehow some table in the font is corrupted in a way that makes Firefox unable to load it.</p>
  
  <p>The debugger shows the following error :</p>
  
  <pre><code>    [14:05:04.286] downloadable font: table 'post': failed to parse table (font-family: "unifont" style:normal weight:normal stretch:normal src index:2)
      source: http://wmmusic.nl/codexamples/pixijs/fonttest/fonts/unifont5-1.ttf
      [14:05:04.286] downloadable font: rejected by sanitizer (font-family: "unifont" style:normal weight:normal stretch:normal src index:2)
      source: http://wmmusic.nl/codexamples/pixijs/fonttest/fonts/unifont5-1.ttf
  </code></pre>
  
  <p>It does this for both fonts (unifont and Code2000), in both the .woff and the .ttf formats (those are the ones Firefox reads). Quivira seems to work now. Quivira is the only font I've converted with FontSquirrel since it is the only font small enough to do so. 
  The other fonts I've converted using FontForge(for the .svg format), a CLI called tff2eot (for the .eot format),and a tool from Mozilla called sfnt2woff(for the .woff format).</p>
  
  <p>Now to figure out how to fix these errors and/or make Firefox not care about them.</p>