BMFont load error

Issue #1275 invalid
Laurent Zubiaur
created an issue


I get the following error when I try to load a BMFont created using GlyphDesigner.

Error: TrueType Font loading error: FT_New_Face failed: 0x2 (problem with font file?)
stack traceback:
    [C]: at 0x070c7020
    [C]: in function 'newFont'
    main.lua:2: in function 'load'
    [string "boot.lua"]:440: in function <[string "boot.lua"]:436>
    [C]: in function 'xpcall'

Comments (2)

  1. Alex Szpakowski

    newFont(filename, fontsize) only loads TrueType fonts (since BMFonts cannot have arbitrary font sizes at runtime from a single file).

    Use newFont(filename), or newFont(fntfilename, imagefilename).

  2. Log in to comment