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

Incorrect conversion factor for pt to px #42

Open
pfheatwole opened this issue Jun 25, 2020 · 1 comment
Open

Incorrect conversion factor for pt to px #42

pfheatwole opened this issue Jun 25, 2020 · 1 comment

Comments

@pfheatwole
Copy link

return int(length) * 96 / 6

Assuming DPI=96, converting points to pixels should be 96 / 72. SVG files using pt are wrong by a factor of 12.

@tk0miya
Copy link
Contributor

tk0miya commented Jun 26, 2020

+1. Let's post a PR!

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

No branches or pull requests

2 participants