[Freeciv] Re: Portrait of a Techtree
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
La 2001-03-02, Mike Jing skribis:
> Hi David,
>
> I am playing a Civ2 scenario with a very shallow and wide techtree. I know
> I can adjust the width and height of the output, but then I can't get it to
> print properly on my printer. It would be nice if I could simply turn the
> chart 90 degrees to landscape mode. Would this be hard to implement? Or is
> there other ways to convert the .ps output from portrait to landscape for
> printing?
You can alway try adding a line like
90 rotate
to the beginning of the .ps file, after any comments (starting with %)
You may also need to shift the image; do this with
72 72 translate
which will translate (slide) the image 72 points (1 inch) in each
direction. You'll need to shift it a bit more than that, but you can
certainly experiment. You can scale in X and Y by
2.0 0.5 scale
which will stretch x2 vertically and x0.5 horizontally.
For example, by adding these lines to the begining of the default FreeCiv
techtree, the tree is rotated, shifted, and stretched to fill the page in
the other dimension (stretching text this much is a bad idea, but you see
what's happening).
%!PS-Adobe-2.0
%%Creator: techtree version 3.0 by David W. Pfitzner
%%BoundingBox: 28 28 567 780
%%Pages: 1
%%DocumentFonts: Helvetica
%%EndComments
90 rotate
0 580 neg translate
1.29 0.65 scale
% techtree v3.0 options:
% input = "./data/freeciv_default.in"
% rm_redundant = 0
% page_width = 210
...
+----------------------------------------------------------
| PGP http://www.eng.uwaterloo.ca/student/cjmorlan/pgp.txt
| cjmorland@xxxxxxxxxxxx
|
| We cannot get grace from gadgets. In the Bakelite house of the future,
| the dishes may not break, but the heart can. Even a man with 10 shower
| baths may find life flat, stale and unprofitable.
| --J. B. Priestley
+----------------------------------------------------------
|
|