Fixed memory not allowed when opening a font file