-
Notifications
You must be signed in to change notification settings - Fork 224
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
Fontkit produces invalid .ttf files? #149
Comments
I get this as well but I'm trying to make a subset of a woff file. |
Glyphr Studio show an error for this file (remove the txt extension). |
do you have a PoC/minimal code that'll generate a bad TTF to test this? |
Ahh, I see what's going on. This line computes the "maximum power of 2 <= numtables" incorrectly, invalidating the searchRange and entrySelector values.: https://github.com/foliojs/fontkit/tree/master/src/tables/directory.js#L47 |
I was testing the code form the homepage with the subset and it looks like the .ttf file that is produced by it is not loaded by Chrome.
Chromes throws this error:
OTS parsing error: incorrect entrySelector for table directory
The text was updated successfully, but these errors were encountered: