-
Notifications
You must be signed in to change notification settings - Fork 17
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
25 pdf extracted fonts can not be loaded in browser #26
base: master
Are you sure you want to change the base?
25 pdf extracted fonts can not be loaded in browser #26
Conversation
Awesome thank you for the PR. Code looks good except for some minor formatting issues, don't include spaces inside parentheses blocks (sorry I never set up some sort of linter for this project) |
setName(NameTable.createDefaultTable()); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately these changes surface a bug in NameTable
- i have a fix for that but if you want I can rollback those changes and provide another PR to fix this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the problem is in the offset-computation where there are 2 problems:
- it's not guaranteed that the length of the string has been computed
- the offset computation is done BEFORE the entries are sorted
I think currently one most of the time does not recognize that because if one call normalize() and then getData() the content is correct because on the get data-call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh if you have a fix for it you can just throw it into this PR. I unfortunately haven't worked on this project in a long time so I'm not really familiar with the specifics here (I also haven't touched java in years either)
Normalize "Format6SubTable" to default tables if they are not present yet
Closes #25