title: FreeType FT_New_Memory_Face crashes
body: <p>I have loaded an "arial.ttf" file (taken from my /Windows/Fonts folder) into memory, however passing this into FT_New_Memory_Face crashes (somewhere in FT_Open_Face). I am not able to debug this, any clues as to what I might be doing wrong?</p>
  
  <pre><code>unsigned char *fontBuffer = LoadFile("arial.ttf");
  zip_uint64_t fSize = GetFileSize("arial.ttf");
  FT_Library  library;   /* handle to library     */
  FT_Face     face; 
  int error = FT_Init_FreeType( &amp;library );
  if( error != 0 )
      printf("FT_Init_FreeType failed");
  
  error = FT_New_Memory_Face( library,
                              (FT_Byte*)fontBuffer,
                              fSize,                  
                              0,                      
                              &amp;face );
  </code></pre>