From: Alan W. I. <ir...@be...> - 2004-12-03 20:47:22
|
On 2004-12-01 18:13-0400 Thomas J. Duck wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > Here are a couple of fixes for postscript text problems in the > ps.c driver (diffs below, revised file at > http://aolab.phys.dal.ca/~tomduck/temp/ps.c): > > 1) When using postscript fonts and portrait orientation, the text was > rotated incorrectly. > > 2) When using postscript fonts, brackets were not properly escaped for the > SW postscript command, resulting in postscript errors. > > 3) Subscripts and superscripts should be printed with a smaller font size. Hi Thomas: Now that Rafael has reminded me about the -drvopt text option for -dev psc, I was able to try your patched version of ps.c, and as a result ./x07c -dev psc -portrait -o test.ps -drvopt text=1 looks good for the first time, and there were similar good results for x01c. So I am tempted just to stick your patch into cvs. However, before I do that, would you be willing to have a quick look at the remaining obvious orientation issues for example 11? Your patch now makes portrait mode look identical to -landscape mode (as far as orientation issues are concerned) for 3d plots, but both are wrong. Try the following to see this with the default landscape mode: ./x11c -dev psc -o test.ps -drvopt text=1 or ./x11c -dev psc -o test.ps -drvopt text=1 (Just drop the -drvopt text=1 option to see what the label orientation really should be like.) This problem (for landscape mode) is present regardless of whether your current patch is applied or not. I am sure this is just some issue like rotating the wrong way to generate the 3D perspective on the labels, and if you could sort out that issue as well, we would end up with postscript fonts that work in all circumstances which would be most helpful. Note, from the programme notes it looks like I tried to figure out the 3D orientation issue with a quick effort before but was not successful. If a similar quick effort from you doesn't pay off, then I am happy to accept "half a loaf" and update cvs with your present patch. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |