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

Fix precision rounding issues in LineWrapper #1583

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

hollandjake
Copy link
Contributor

@hollandjake hollandjake commented Jan 10, 2025

What kind of change does this PR introduce?

Handle JS quirks with large decimal precision checks resulting from the calculations of next lines in the LineWrapper

Checklist:

  • Unit Tests
  • Documentation N/A
  • Update CHANGELOG.md
  • Ready to be merged

Yes this is a very niche situation but it has caused many headaches for me when working with very precise measurements and/or weird font sizes

Handle JS quirks with large decimal precision checks resulting from the calculations of next lines in the LineWrapper
@hollandjake hollandjake force-pushed the line-wrapper-rounding-issues branch from 3fd0f80 to 1e121dd Compare January 10, 2025 19:15
@hollandjake hollandjake changed the title fix line wrapper precision rounding issues Fix precision rounding issues in LineWrapper Jan 10, 2025
@blikblum
Copy link
Member

LGTM

@hollandjake hollandjake mentioned this pull request Jan 11, 2025
4 tasks
@liborm85 liborm85 merged commit 40a0f38 into foliojs:master Jan 11, 2025
3 checks passed
@liborm85
Copy link
Collaborator

Merged. Thanks.

@hollandjake hollandjake deleted the line-wrapper-rounding-issues branch January 11, 2025 12:48
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.

3 participants