opentype.js
opentype.js copied to clipboard
Update hmtx.js to read leftSideBearing array when numGlyphs > numMetrics
Description
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [x] I did
npm run testand all tests passed green (including code styling checks). - [ ] I have added tests to cover my changes.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the README accordingly.
- [ ] I have read the CONTRIBUTING document.
@sigurdle does this break any tests. Also can you write a test for this?
@sigurdle any updates on writing tests for this?
Pinging @sigurdle
@sigurdle any news?
Hi, I apologize, I am not well versed in the the "correct" way to add new code to github repository with tests etc. I also see above that there are some failings happening with eslint in the code I added. Is that just spacing issues? It would be best if someone looks at that . As for testing, that would mean finding a suitable font. I haven't looked at that.
I just fixed the linting issues and rebased on the current master. How did you spot this issue before you opened #546? Didn't you havve a font with which you encountered issues?
I spotted it by accident as I was reading the spec