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

karm-print: parametrize stock paper size with scale #11

Closed
wants to merge 1 commit into from

Conversation

pauloamed
Copy link
Contributor

The Print::PaperStock _paper attribute from Karm::Scene::Page is sized taking the scale parameter into account; however, this should not be the size of the paper when printing, that is, we should use the original paper size, not the scaled one.

This commit couples the scaling logic to the printing classes, allowing the _paper attribute from Karm::Scene::Page to be sized back to its original size and thus the correct dimenions of the printing paper to be used.

The Print::PaperStock _paper attribute from Karm::Scene::Page is sized taking
the scale parameter into account; however, this should not be the size of the
paper when printing, that is, we should use the original paper size, not the
scaled one.

This commit couples the scaling logic to the printing classes, allowing the
_paper attribute from Karm::Scene::Page to be sized back to its original size
and thus the correct dimenions of the printing paper to be used.
@pauloamed pauloamed closed this Dec 23, 2024
@pauloamed pauloamed deleted the palm-fix-paper-size branch December 23, 2024 16:00
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.

1 participant