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

Changed the definition of textBounds() in p5.Font.js #6673

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

sudhanshuv1
Copy link
Contributor

Resolves #6671

Changes:

Removed the check for glyph.index === 10 from if(glyph.index === 0 || glyph.index === 10) in the definition of p5.Font.textBounds() (line 190 in p5.Font.js)

Screenshots of the change:

after

PR Checklist

@sudhanshuv1 sudhanshuv1 changed the title Changed the definition of textBounds() in p5.Font.js to fix issue #6671 Changed the definition of textBounds() in p5.Font.js Dec 30, 2023
@limzykenneth limzykenneth merged commit 46cf6ff into processing:main Jan 12, 2024
2 checks passed
@limzykenneth
Copy link
Member

Looks good. Thanks!

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.

TrueType Font.textBounds breaks when string includes single quote
2 participants