Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: error in FT_New_Memory_Face: 2 #31

Closed
BrianPugh opened this issue Dec 16, 2019 · 4 comments
Closed

Error: error in FT_New_Memory_Face: 2 #31

BrianPugh opened this issue Dec 16, 2019 · 4 comments

Comments

@BrianPugh
Copy link

BrianPugh commented Dec 16, 2019

Currently a WOFF I made (pixel-perfect symbols that were crappily made in FontForge for a low res monochrome oled display. Only reason I'm saying this is that there might be errors within the font like self-intersecting symbols) no longer works using the online font converter. This same WOFF file worked previously (I believe I last used the converter on Aug 17, 2019).

Settings:
Name: jolt_symbols
Size: 8
Bpp: 1
Compression? yes
Range: 0xF000-0xF00D

WOFF file (zipped for GitHub compatibility)
jolt_symbols_old.zip

The popup error dialog says "Error: error in FT_New_Memory_Face: 2"

@embeddedt
Copy link
Member

August was before the internal renderer was switched from OpenType.JS to FreeType, so chances are your font is incompatible with FreeType for some reason. Unfortunately I don't know enough about the internals of the font converter to give any further information.

@puzrin
Copy link
Collaborator

puzrin commented Dec 16, 2019

@BrianPugh AFAIK, problem may be only with self-cross contours. When you draw multiple filled contours and those touch or overlap - that's acceptable.

I did this thing: opened your file in FontForge, then saved as TTF via "Create Font". So:

  • Provided WOFF file crashes with code 2, as been reported.
  • Resaved TTF works (used CLI tool).

If that's ok - i'd prefer to close issue. In other words - nobody interested spend time for debug just to know one more way to create bad font :). As far as i remember, i had issues with FF's woff format compatibility when did fontello. If you draw in FF - just save your work as TTF.

If you need other font formats - use battle tested standalone tools instead (see ttf2woff, wawoff2 or native C projects)

@puzrin
Copy link
Collaborator

puzrin commented Dec 16, 2019

Unfortunately I don't know enough about the internals of the font converter to give any further information.

https://github.com/littlevgl/lv_font_conv/blob/master/lib/freetype/index.js#L96 - error happens on attempt to load font into FreeType, before process concrete glyphs. Probably, FF's woff has compatibility issues.

IMO we can bury this silent :). TTF works - solution exists. If anyone wish to debug & report FF/FT upstreams, this can be done without JS at all.

@BrianPugh
Copy link
Author

This solves my problem, thanks guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants