[comp.lang.postscript] Some simple questions

gleicher@CS.CMU.EDU (Michael Gleicher) (11/28/90)

I was hoping someone could answer some of these simple (I hope) questions:

1) is EPS defined somewhere? I'd like my program to be able to produce it, and
	I'd like to know what I need to do.

2) is it possible to set the line width in such a way that it isn't affected
	by the matrix?
	I am trying to print something as it looks on the screen, so I'd like
	my lines to be a constant width. (on an SGI Iris, the transformation
	matrix does nothing to the line width).

3) does anyone have postscript code which draws cardinal cubic splines? 
	It would be neat to do right in postscript, but even
	some C or C++ code which takes vectors of numbers (control points) and
	produces a vector of control points of a postscript bezier.
	(I guess the bezier can only approximate the cardinal because of
	 continuity conditions)

Thanks for the help,

	Mike

--
Michael Lee Gleicher					gleicher@cs.cmu.edu
	    ski bum, graphics hacker, and SCS PhD student
Carnegie Mellon University, Pittsburgh, PA 15213-3890	(412) 268-7899 (school)

orthlieb@adobe.COM (Carl Orthlieb) (12/01/90)

In article <GLEICHER.90Nov27231726@OREO.GRAPHICS.CS.CMU.EDU> gleicher@CS.CMU.EDU (Michael Gleicher) writes:
>
>I was hoping someone could answer some of these simple (I hope) questions:
>
>1) is EPS defined somewhere? I'd like my program to be able to produce it, and
>	I'd like to know what I need to do.
The EPSF documentation can be found on our server. It is in the Documents
directory, and comes in various forms:
	EPSF.ps
	EPSF.ps.A
	EPSF.ps.B
	EPSF.ps.Zba
This specification is version 2.0.  A new version of the specification, v3.0,
will appear in Appendix H of the PostScript Language Reference Manual,
Second Edition which will be available in the last week of December or the
first week in January.
>
>2) is it possible to set the line width in such a way that it isn't affected
>	by the matrix?
>	I am trying to print something as it looks on the screen, so I'd like
>	my lines to be a constant width. (on an SGI Iris, the transformation
>	matrix does nothing to the line width).
>
The current line width is part of the current graphics state and as such
is affected by changes to the graphics state. You could do the following
to get around this:
	/oldstroke /stroke load def
	/stroke {
		gsave
			mymatrix setmatrix
			oldstroke
		grestore
		newpath
	} bind def
where mymatrix contains a version of the CTM that produces the line width
that you're interested in.

Carl 8-)

----------------------------------------------------------------------------
The PS-File-Server is an automatic mail-response program. That means you
mail it a request, and it mails back the response. It is not accessible 
via anonymous FTP.

To get in touch with the server, send a message to the appropriate address,
either:
	uucp: {sun,decwrl}!adobe!ps-file-server OR
	internet: ps-file-server@adobe.COM
containing the word "help" in either the Subject: field or the message body.
It will reply with a message on how to use the available services.

There are many items available from the server; Documents (as PostScript
files), program sources, Adobe Font Metrics files, PostScript Printer
Description files, and other itmes.

You might send a separate message containing the word "index" to save some
time once you get the help message.

The file server does not respond to requests from users named "root",
"system", "daemon", or "mailer". This is to prevent mail loops from bounced
messages.

Note: If you do not receive help from the server within a day or so, it is
probably because the server's mail to you has bounced. You can try again
and use the "path" command within your message specifying a known return
path that the server should use. For example:
	path pyramid!rutgers!zakkaroo!jj
(substitute whatever address is appropriate)

If you have any problems contacting the server, or you have any suggestions,
please send a message to the moderator (ps-file-person@adobe.COM).