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

No glyphs detected using hb_face_get_glyph_count() #3065

Closed
mealdy opened this issue Jul 21, 2021 · 4 comments
Closed

No glyphs detected using hb_face_get_glyph_count() #3065

mealdy opened this issue Jul 21, 2021 · 4 comments

Comments

@mealdy
Copy link

mealdy commented Jul 21, 2021

By using the hb_face_get_glyph_count function to detect some font files, but it always returned 0. When I tried to outline some glyphs and I got empty data. These fonts can be opened in most programs such as Font Book, and can be parsed by most js libraries such as fontkitjs, opentype.js, Typr.js, etc.

font_files_attached

@behdad
Copy link
Member

behdad commented Jul 22, 2021

Please attach a zip of one of the fonts. The link requires access.

@mealdy
Copy link
Author

mealdy commented Jul 22, 2021

Sorry, I've attached the font files. fonts_harfbuzz_test.zip

@behdad
Copy link
Member

behdad commented Jul 22, 2021

I can reproduce. Debugging.

@behdad
Copy link
Member

behdad commented Jul 22, 2021

The fonts have wrong (unsorted) table entries. I pushed a fix to handle them.

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

2 participants