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

Update hmtx.js to read leftSideBearing array when numGlyphs > numMetrics #559

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sigurdle
Copy link

@sigurdle sigurdle commented Feb 7, 2023

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • 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:

  • I did npm run test and 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.

@ILOVEPIE
Copy link
Contributor

ILOVEPIE commented Feb 7, 2023

@sigurdle does this break any tests. Also can you write a test for this?

@Connum Connum linked an issue Feb 7, 2023 that may be closed by this pull request
@Connum Connum added this to the Release 2.0.0 milestone Feb 7, 2023
@Connum Connum added Spec Related to the implementation of the Opentype specification bug labels Feb 7, 2023
@ILOVEPIE
Copy link
Contributor

@sigurdle any updates on writing tests for this?

@Connum
Copy link
Contributor

Connum commented Feb 22, 2023

Pinging @sigurdle

@Connum
Copy link
Contributor

Connum commented Mar 2, 2023

@sigurdle any news?

@sigurdle
Copy link
Author

sigurdle commented Mar 3, 2023

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.

@Connum
Copy link
Contributor

Connum commented Mar 3, 2023

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?

@sigurdle
Copy link
Author

sigurdle commented Mar 4, 2023

I spotted it by accident as I was reading the spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Spec Related to the implementation of the Opentype specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HMTX incorrect parsing
3 participants