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

Content Size Rounding #487

Merged
merged 2 commits into from
Feb 8, 2024
Merged

Conversation

johannes-wolf
Copy link
Member

Fixes #438.

@johannes-wolf johannes-wolf added bug 🐛 Something isn't working core:draw ✏️ labels Feb 7, 2024
@johannes-wolf johannes-wolf added this to the 0.2.1 milestone Feb 7, 2024
@johannes-wolf johannes-wolf changed the title Cetz 438 content size rounding Content Size Rounding Feb 7, 2024
Comment on lines +877 to +882
let round-up(v, digits: 8) = {
calc.ceil(v * calc.pow(10, digits)) / calc.pow(10, digits)
}
Copy link
Member

Choose a reason for hiding this comment

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

Just make a note of why this is here in case it gets removed accidentially

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.

@johannes-wolf johannes-wolf force-pushed the cetz-438-content-size-rounding branch 2 times, most recently from 4aa1b11 to d32bfce Compare February 7, 2024 23:27
@johannes-wolf johannes-wolf merged commit 380f63f into master Feb 8, 2024
2 checks passed
@johannes-wolf johannes-wolf deleted the cetz-438-content-size-rounding branch February 8, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working core:draw ✏️
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Obscure line break in text under very specific conditions
2 participants