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

Fix error in parsing of hhea and vhea table and add sanity checks #7

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

wldevries
Copy link
Contributor

It seems there were two mistakes. In both the hhea and vhea tables the 4 reserved int16 fields were seeked over by only seeking 4 bytes from the beginning of the file.

@roy-t
Copy link
Owner

roy-t commented Feb 16, 2023

Awesome! I'll double check it tonight if time permits and I'll try to release a new Nuget package if everything goes well.

@roy-t roy-t merged commit 5439a3f into roy-t:master Feb 16, 2023
@wldevries
Copy link
Contributor Author

Both the hmtx and vmtx tables are based on glyph indexes. I think it would make sense to release a new version of the library once I get basic support for the glyf table up and running.

@wldevries
Copy link
Contributor Author

After reading through the spec some more it seems the glyph index to character mapping in in the cmap table which you already implemented 👍

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

Successfully merging this pull request may close these issues.

2 participants