-
Notifications
You must be signed in to change notification settings - Fork 492
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
Unable to write GSUB lookup type 6 tables. #309
Comments
So you could check https://github.com/nodebox/opentype.js/blob/master/src/tables/gsub.js Feel free to contribute and add the type 4 if you need it 😉 |
May I know how to add type 2 and type 6? |
So for adding the support for these 2 types you'll need to check how the reading part was done and read the OpenType specification to understand how it works. It's easier as the reading part is implemented but still need to be done 😉 |
Should I implement in order to parse? Are there any other way that I can parse without doing it? |
So parsing is already implemented actually! |
Yeah but actually this error throws on toArrayBuffer(). So, If it's throws an error, I hope it won't parse correctly. |
Yes indeed, so what's happening is that toArrayBuffer() is trying to write the GSUB type 6 that was read when loading the font and it can't because it's not implemented. |
I've got writing for GSUB type 6 format 1 and 3 working so far: |
Expected Behavior
I have loaded Ribeye-Marrow-regular.ttf font and trying to font.toArrayBuffer() on Aws
Current Behavior
It throws following error:
Unable to write GSUB lookup type 6 tables.
The text was updated successfully, but these errors were encountered: