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

GlyphSet.prototype.get can return undefined #755

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

forresto
Copy link
Contributor

Calling font.glyphs.get(9999) should return undefined if the glyph doesn't exist.

Description

When not in low memory mode, font.glyphs.get(9999) errors because font._push is undefined.

Calling `font.glyphs.get(9999)` should return `undefined` if the glyph doesn't exist.
Copy link
Contributor

@Connum Connum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely makes sense, thanks for catching this!

@Connum Connum merged commit 74fe1f4 into opentypejs:master Sep 9, 2024
1 check passed
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