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 postscript output in landscape orientation #82

Merged
merged 2 commits into from
Mar 3, 2017

Conversation

vzh
Copy link
Member

@vzh vzh commented Mar 2, 2017

Reported by Karl Hammar. gaf export trimmed Postscript output for landscape pages since there were no special handing for it in code.

For more details on why the previous code worked incorrectly, please see this link

Since proposed PR's commits affect output in other formats,
and we have no automated tests for gaf export yet, testing is
much appreciated. The more the better :-) I tested only output for all formats on
several schematic files with or without margins and using a different scale. As for plain PS, gs, gv and gv -nodsc showed correct output (evince segfaulted on landscaped PS pages, though it looks like a bug in it or in its libraries).

vzh added 2 commits March 2, 2017 18:38
The matrix has been rewritten and supplied with comments showing
how transformations are going.  This will allow for further PS
transformations, and seems to be simpler to understand. Well, I
did so because the further transformation functions I need must be
called before the transformations described by the matrix, and I
don't know how to make a new matrix to address this.
Postscript output must always go in Portrait orientation, so appropriate
transformations have been applied to ensure this and proper view
in PS viewers.

Please see
  https://www.cairographics.org/documentation/using_the_postscript_surface/
for more information.

Reported-by: Karl Hammar on the geda-help mailing list.
@peter-b peter-b merged commit 1ae1935 into lepton-eda:master Mar 3, 2017
@vzh vzh deleted the landscape-postscript-fix branch March 3, 2017 19:03
@vzh vzh added this to the v1.9.4 milestone Apr 22, 2018
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.

None yet

2 participants