HDTenEightyP/NetNews huggingface dataset:
From: cet1@cus.cam.ac.uk (C.E. Thompson)
Newsgroups: comp.lang.postscript
Subject: Re: PS L2 compression behavior
Keywords: PostScript compression rle pathological
Date: 13 Sep 92 00:42:06 GMT
Organization: U of Cambridge, England

In article <1992Sep8.205244.17495@adobe.com>, taft@adobe.com (Ed Taft) writes:
|> In article <1992Sep8.143846.3667@Princeton.EDU>
|> dmlaur@ernie.Princeton.EDU (David M. Laur) writes:
[...]
|> >Secondly, is there something wonderfully magic about the number 85
|> >that makes the encoding algorithm Very Easy(tm)?
|> 
|> I'm not aware of any tricks that apply specifically to multiplying and
|> dividing by 85. The choice of 85 as a base derives from it being the
|> smallest integer n such than n^5 >= 2^32.

However, it so happens that there are some tricks to aid multiplication
and division by 85, in the absence of decent integer multiply or divide
hardware, based on the fact that 85 = (2^8-1)/3. For multiplication

  y = (x<<2)+x ; z = (y<<4)+y   /* would be two instructions on an ARM */

makes z == 85*x. For division use 1/85 = 3/2^8 + 3/2^16 + 3/2^24 + ...;
details left as an exercise for the reader (as they say in all the best
books).

Chris Thompson
Cambridge University Computing Service
JANET:    cet1@uk.ac.cam.phx
Internet: cet1@phx.cam.ac.uk
Xref: sparky comp.lang.postscript:4599 comp.os.ms-windows.programmer.misc:1689
From: mpdillon@uuisis.isis.org (Michael Dillon)
Subject: conversion to/from EPS, .WMF, CGM, other non-bitmap formats
Organization: International Shared Information Service (Ottawa)
Date: Tue, 15 Sep 92 06:13:10 GMT

Is there any source code on the nets for converting between
Encapsulated Postscript and any other object-oriented graphics
format such as  Windows Metafiles, Computer Graphics Metafiles
or anything else.
 
No bitmap formats or commercial software please. I'm looking
for source code to study and adapt.
From: runene@ifi.uio.no (Rune Nerg}rd)
Newsgroups: comp.lang.postscript
Subject: Re: Split very large postscript file
Date: 6 Sep 92 16:19:44 GMT
Organization: Dept. of Informatics, University of Oslo, Norway
Originator: runene@svartor.ifi.uio.no

In article <s897461.715687869@numbat> s897461@numbat.cs.rmit.OZ.AU (Alfred Yau) writes:
> Hello, netters
>
>        I have a problem in printing out a large postscript file(about
> 4 Meg).The error message is " lpr: input file is too large". Does anyone
> know how to solve my problem ? Is there any program that can split a 
> large postscript file in several small pieces?

This is often a problem with the spooler software. No space in
spooler directory. If so try `lpr -s' on a standard unix system. -s tells
spooler not to copy file to spooler dir., but to spool it directly from
original location.

	Rune N.
Newsgroups: comp.lang.postscript
From: slaud@cc.curtin.edu.au
Subject: OCCAM informations wanted
Organization: Curtin University of Technology
Date: Thu, 10 Sep 1992 05:47:39 GMT

Help needed !

I know this newsgroup is not for OCCAM, but I need informations on the
language "OCCAM". Does anyone know any info, or any sites, or even
newsgroups where I can get info on "OCCAM" off.

The assignment I am doing is on Inter-process communications between
procedures of OCCAM.

Help appreciated. Thanks.

D.LAU
From: glenn@rightbrain.com (Glenn Reid)
Newsgroups: comp.lang.postscript
Subject: Re: No Zapf-Dingbats in my Apple LaserWriter IIf ?
Date: 13 Sep 92 23:42:57 GMT
Reply-To: glenn@rightbrain.com

David J Stevenson writes

> Any ideas why I am not getting the correct font?   Postscript test program
> follows:
> /Zapf-Dingbats findfont 12 scalefont setfont

You spelled it wrong.  There's no hyphen.  Just /ZapfDingbats will do it.

--
 Glenn Reid        		NeXTmail: glenn@rightbrain.com
 RightBrain Software		415-326-2974 (NeXTfax 326-2977)
 Palo Alto, California
Newsgroups: comp.lang.postscript
From: jgm@cs.brown.edu (Jonathan Monsarrat)
Subject: Format LaTeX into plain ASCII files with new version of LameTeX (1.1)
Organization: Brown University Department of Computer Science
Date: Wed, 9 Sep 1992 03:49:16 GMT

Hi everybody! This is Jon Monsarrat from Brown University.

LameTeX is a neat-o PostScript and C++ program that is a clone of LaTeX.
It lets you format text inside a non=rectangular page, like a circle,
triangle, or any bounding PostScript path.

LameTeX also allows you to include lots of fancy graphics, both "simple"
and "fancy PostScript hacker".

There is a new version of LameTeX, version 1.1, that can convert a simple
LaTeX .tex file into plain ASCII output. Just type

lametex -t yourfile.tex

   ...and it produces...

yourfile.txt

Also included in this version are the following additional LaTeX commands:

\ref \label \part* \chapter* \section* \subsection* \subsubsection*
\paragraph* \subparagraph*

The new version of LameTeX is now available at the ftp site
wilma.cs.brown.edu (128.148.31.66) as "pub/lametex.tar.Z".

Please tell me what you think! Version 1.1 brought to you by people
who cared enough to make enchancement requests.

-Jon
%! Obfuscated PostScript /cult{def}def/r def load def PS love{honk} if -18 mul
/r{rand 1073741824 div mul}def/g{5 srand 30{1200 r 1600 r 2 copy moveto f fill}
repeat}def/f{-72 0 180 360 -216 0 -36 72 358.56 0 4.3 2.88 -36 72 -432 0 179.28
-360.72 33.12 69.12 -108.72 216.72 1.44 0 108 -216 72 144 1.44 0 -108 -216 -180
360 -36 -72 216 -432 -1.44 0 -216 432 36 72 432 0 36 -72 24 {rlineto} repeat
closepath}def 35 200 moveto f fill 0 0 moveto .2 .2 scale g 0 0 moveto 5 5
scale 35 200 moveto f clip newpath 0 0 moveto .2 .2 scale 1 setgray g showpage
From: kevind@pogo.wv.tek.com (Kevin Draz)
Newsgroups: comp.lang.postscript
Subject: Re: Color Postscript Question
Date: 15 Sep 92 20:26:38 GMT
Organization: Tektronix, Inc., Wilsonville,  OR.

In article <192kbmINNlng@phakt.usc.edu> sgoldste@usc.edu (Fogbound Child) writes:
>Forgive me if this is a FAQ or related to one. I wasn't able to find
>a reference anywhere.
>
>I've got this 1024 x 864 screen dump that I'm converting into color
>Postscript. I've been successful in translating it into a printable file.

send mail to:

"color_printer_info@leda.wv.tek.com" with the line "send index" in the
body.  You'll see an X-Window dump to PS level-2 filter.  If you are only
using 12 colors, the indexed colorspace option with run-length or LZW
compression should squeeze that file down to a very compact size.

KD

-- 
----
kevind@pogo.wv.tek.com  | For most software publishers, quality is job 1.01.
Tektronix Color Printers|                            -- MacWeek Magazine
Newsgroups: comp.lang.postscript
Subject: Apple laserprinter 2 Digital Printerserver 20 (Lps20)
From: Michel <SELD2050@HASARA11.BITNET>
Date: Friday, 11 Sep 1992 12:51:35 CET
Organization: SARA - Stichting Academisch Rekencentrum Amsterdam

Hi everyone,
 
I've got some Postscript files created to be printed on a
Apple Laserprinter. But I don't have a Apple Laserprinter around here
only a Digital printerserver 20.
 
Once I edit the files i saw a lot of one or two character defs.
The printerserver 20 can't translate them, so I wondering if
there is a program or a Postscript file with the full defs of those
one or two character codes.
 
If you know any sollution (a program to convert it or so, NOT a
a program on the Mac (I don't have one) but one on Unix (Aix) or
a Postscript files) I will be very thankfull, thanx any way.
 
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
^ MICHEL@SARA.NL  = <SELD2050@HASARA11.BITNET>^ Well that's all folx  ^
^ MICHEL1@SARA.NL = <SELD1050@DIAMOND.SARA.NL>^  c.u. l8r ........    ^
^ MICHEL2@SARA.NL = <MICHEL@WCW-BALIE.SARA.NL>^      > Michel <       ^
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
From: rberlin@birdland.Eng.Sun.COM (Rich Berlin)
Newsgroups: comp.lang.postscript
Subject: Re: No Zapf-Dingbats in my Apple LaserWriter IIf ?
Date: 9 Sep 1992 04:50:45 GMT
Organization: SunPics -- A Sun Microsystems Business
NNTP-Posting-Host: birdland

In article <1992Sep8.153655.17176@jet.uk> djs@jet.uk (David J Stevenson) writes:
...
>Any ideas why I am not getting the correct font?   Postscript test program
>follows:
...
>/Zapf-Dingbats findfont 12 scalefont setfont


Try /ZapfDingbats, without the hyphen.

-- Rich
--
===============================================================================
Richard.Berlin@Eng.Sun.COM   |   The significant problems we face cannot be
			     |   solved at the same level of thinking we were
			     |   at when we created them.  -- Albert Einstein
From: jude@jeeves.ucsd.edu (Jude Poole)
Newsgroups: comp.lang.postscript
Subject: looking for ps code
Keywords: postscript, code, ftp
Date: 11 Sep 92 21:29:27 GMT

I'm looking for useful postscript code, especially for charts, but really
any utility stuff.  If you know of any ftp or other archive sites, I'd
really appreciate the pointer.

Thanks

Jude

Please email:

jpoole@ucsd.edu
From: tgl+@cs.cmu.edu (Tom Lane)
Newsgroups: comp.lang.postscript
Subject: Re: PS L2 compression behavior
Keywords: PostScript compression rle pathological
Date: 8 Sep 92 22:49:39 GMT
Organization: School of Computer Science, Carnegie Mellon

taft@adobe.com (Ed Taft) writes:
> dmlaur@ernie.Princeton.EDU (David M. Laur) writes:
> >Secondly, is there something wonderfully magic about the number 85
> >that makes the encoding algorithm Very Easy(tm)?
> 
> I'm not aware of any tricks that apply specifically to multiplying and
> dividing by 85. The choice of 85 as a base derives from it being the
> smallest integer n such than n^5 >= 2^32.

No, 85 is not particularly easy, it's just the largest "safe" value for this
application.  Base-85 representation is customarily used for representing
arbitrary binary files as ASCII text so that they can be mailed around on
Usenet.  It happens that there are 85 printable ASCII characters that have
exact EBCDIC equivalents.  If you try to use all 95 ASCII characters, you
run the risk of your file getting mangled in an ASCII <=> EBCDIC conversion
performed by some mail gateway.  (And of course, using any ASCII control
characters or characters with the 8th bit set is hopeless...)

At least, that was *my* understanding of the design.  The fact that 5
base-85 characters can represent 32 bits is convenient but it's not really
the driving force.

				regards, tom lane

ps: any further discussion should probably move to comp.compression.
Newsgroups: comp.lang.postscript
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Re: Splash your graphics will metal-looking objects (example given)
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Sun, 6 Sep 1992 10:34:48 GMT

In article <1992Sep5.064148.4276@cs.brown.edu> jgm@cs.brown.edu
	(Jonathan Monsarrat) writes:
>/TextMetalShow
>{
>  4 dict begin  % If you don't know dictionaries, you should learn them.
   ^
I get a "dictfull" error unless I raise this to 5.

					-=EPS=-
From: dhinds@leland.Stanford.EDU (David Hinds)
Subject: Compression of *arbitrary* Postscript??
Organization: DSG, Stanford University, CA 94305, USA
Date: Fri, 11 Sep 92 23:29:31 GMT

I've seen a couple recent postings about schemes for compressing bit-map
images in Postscript.  Has anyone written a utility for doing the same
thing, but for arbitrary Postscript code?  Like, a filter that would take
any Postscript file, compress it, and prepend a bit of Postscript to the
front to take care of uncompressing it?  It could be set up to be invoked
automatically by a print spooler, for example.  It seems to me this would
be a great thing...

        - David Hinds
          dhinds@allegro.stanford.edu
Newsgroups: comp.lang.postscript
From: patrice@cs.sfu.ca (Patrice Belleville)
Subject: Re: Rounding error?!?!
Organization: CSS, Simon Fraser University, Burnaby, B.C., Canada
Distribution: cct
Date: Tue, 8 Sep 1992 17:09:54 GMT

From article <1992Sep8.153127.27371@cetia.fr>, by alastair@bugle.cetia.fr (Alastair Adamson):
> |> I am amazed by the magnitude of the resulting value. Can this
> |> simply be put down to rounding error? Does anyone have a better
> |> explanation. The test was done on a LaserWriter II NTX.
> 
> The ouptut I got was 6.10352e-5 which I feel is a long
> way off zero.

I got similar problems on a LaserWriter II NT. I had code that drew a picture
in which some  of the intersection points were  computed on the fly. The code
ran perfectly on  the original LaserWriter   [albeit very slowly], or  on the
NeXT, but died  on  the II NT due to  a divide-by-zero caused (indirectly) by
roundoff errors. The value you give seems  completely reasonable (it probably
got converted to and from the current transformation matrix, which  is why it
is so far off).
								      Patrice

-- 
/***************************************************************************\
|* Patrice Belleville 					 patrice@cs.sfu.ca *|
|*   --- Simon Fraser University is not responsible for my mistakes. ---   *|
\***************************************************************************/
Newsgroups: comp.lang.postscript
From: bdb112@rsphy3.anu.edu.au (Boyd Blackwell)
Subject: annotating EPSF files
Reply-To: bdb112@rsphy3.anu.edu.au (Boyd Blackwell)
Organization: PLasma Research Lab
Date: Thu, 10 Sep 92 04:37:07 GMT

We want to annotate epsf format graphs with labels, arrow etc.  It seems
that DIsplayPostscript workstations should be able perform postscript
editing (at least adding things over the top of a postscript image)
interactively, but I have not heard of anything that does.  

A poor second choice would be a program that displays a simplified encapsulated
image of the postscript image, and lets you annotate relative to that.  I
believe that this is what some of the high-end PC/Mac publishing programs do.
Is this correct?  Are there PC/MAC programs that let one view and annotate
an EPSF image?



--
	-Boyd Blackwell
Plasma Research Lab, RSPhysSE, ANU/ GPO Box 4 /Canberra ACT 2601/AUSTRALIA
internet: Boyd.Blackwell@anu.edu.au
PHONE: +61 62 49 2482 +61 62 51 2605(h) FAX: Boyd Blackwell, PRL +61 62 49 1884
From: jos@bull.nl (Jos Vos)
Newsgroups: comp.lang.postscript
Subject: Severe problems with Ghostscript 2.5 (core dumps)
Date: 9 Sep 92 06:41:09 GMT
Organization: Bull, P.O. Box 22859, NL-1100 DJ Amsterdam, The Netherlands

Using Ghostscript 2.5 on my Bull DPX/2 UNIX system, I have two situations
where it dumps core:

(1)	When using a printer driver it produces a memory fault, unless I
	compile using -g: then it seems to work correctly (as usual ... :-().
	The stack trace of the core is garbage. Note: I'm NOT using -O
	optimization.
	But because it works with -g, I have a workaround...

(2)	Using original Adobe Type 1 fonts, a floating point exception
	is generated when showing a string. This occurs both using .pfa
	and .pfb font files, and with EVERY font I tried. It happens, at
	the mnoment of the first "show" operation.
	This is the stack trace:

*flatten_sample(ppath=0x3c6f90,n=17,x1=-57754,y1=14084301,x2=-36659,y2=14086144,x3=-27648,y3=14086144)   [gxpcopy.c:306]
flatten_recur(ppath=0x3c6f90,x1=-57754,y1=14084301,x2=-36659,y2=14086144,x3=-27648,y3=14086144,scaled_flat=0)   [gxpcopy.c:214]
gx_path_add_flattened_curve(ppath=0x3c6f90,x1=-57754,y1=14084301,x2=-36659,y2=14086144,x3=-27648,y3=14086144,flatness=0)   [gxpcopy.c:64]
gs_op1_rrcurveto(ps=0x7ffff534,dx1=-598016,dy1=-73728,dx2=-53248,dy2=-417792,dx3=0,dy3=-180224)   [gstype1.c:249]
gs_type1_interpret(pis=0x7ffff774,str=0,pindex=0x7ffffa44)   [gstype1.c:368]
ztype1addpath(op=0x20da34)   [zchar.c:321]
interp(pref=0x7ffffbfc)   [interp.c:515]
gs_interpret(pref=0x7ffffbfc,user_errors=1,pexit_code=0x7ffffc18)   [interp.c:181]
gs_run_string(str=0x29ff14,user_errors=1,pexit_code=0x7ffffc18)   [gsmain.c:178]
run_string(str=0x29ff14)   [gs.c:406]
runarg(argp=0x7ffffc60,pre=0x201a0a,post=0x201a08,nstrs=0)   [gs.c:401]
argproc(arg=0x7ffffd5b)   [gs.c:375]
main()   [gs.c:191]

	This is the code around line 306 in gxpcopy.c:

  300	/* Flatten a segment of the path by repeated sampling. */
  301	/* n is the number of points to sample, including the endpoints; */
  302	/* we require n >= 3. */
  303	private int
  304	flatten_sample(gx_path *ppath, int n,
  305	  fixed x1, fixed y1, fixed x2, fixed y2, fixed x3, fixed y3)
> 306	{	const fixed
  307			x0 = ppath->position.x,
  308			y0 = ppath->position.y;
  309		/* We spell out some multiplies by 3, */
  310		/* for the benefit of compilers that don't optimize this. */
  311		const fixed
  312			x01 = x1 - x0,
  313			cx = (x01 << 1) + x01,		/* 3*(x1-x0) */
  314			x12 = x2 - x1,
  315			bx = (x12 << 1) + x12 - cx,	/* 3*(x2-2*x1+x0) */
  316			ax = x3 - bx - cx - x0;		/* x3-3*x2+3*x1-x0 */

Anyone having a solution for one of these problems?

-- 
--    Jos Vos <jos@bull.nl>   (UUCP: ...!{uunet,mcsun,sun4nl}!nlbull!jos)
--    Bull Nederland NV, Product Support Unix, Amsterdam, The Netherlands
Newsgroups: comp.lang.postscript
From: etxmesa@eos.ericsson.se (Michael Salmon)
Subject: Re: zoom in ghostview1.3
Keywords: ghostview1.3 ghostscript2.5 zoom
Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
Organization: Ericsson Telecom AB
Date: Tue, 15 Sep 1992 07:39:23 GMT

In article <1992Sep15.050101.5353@xenitec.on.ca>, 
vances@xenitec.on.ca (Vance Shipley) writes:
|> In article <1992Sep10.153319.5768@cbis.ece.drexel.edu> 
|> jeff@cbis.ece.drexel.edu (Jeff White) writes:
|> >In article <1992Sep3.184652@genethon.fr> 
|> >pat@genethon.fr (Patricia Rodriguez-Tome) writes:
|> >>
|> >>Everything works fine but the zoom : I get the zoom
|> >>window but nothing inside.
|> >
|> >  We are running ghostview1.1 on a DECstation 5000/240.  Zooming worked
|> >fine with ghostscript2.4.1.  When I upgraded to gs2.5 last week, we also
|> >lost the zoom feature.  I'd say that is probably the culprit.
|> 
|> I installed Ghostscript v2.5 and Ghostview v1.3 a few days ago on 
|> SCO ODT v2.0.  I also have no zoom.

This problem has disappeared for me now that I have installed gs 2.5.1.

-- 

Michael Salmon

#include	<standard.disclaimer>
#include	<witty.saying>
#include	<fancy.pseudo.graphics>

Ericsson Telecom AB
Stockholm
From: alastair@bugle.cetia.fr (Alastair Adamson)
Newsgroups: comp.lang.postscript
Subject: Rounding error?!?!
Date: 8 Sep 92 14:50:18 GMT
Reply-To: alastair@bugle.cetia.fr (Alastair Adamson)
Organization: Cetia

I wrote the following trivial program to test my disbelief.
It simply prints the difference between the "y" value used in
a "moveto" and the "y" value returned by "currentpoint".
I am amazed by the magnitude of the resulting value. Can this
simply be put down to rounding error? Does anyone have a better
explanation. The test was done on a LaserWriter II NTX.

%!
/y 700 def
/x 100 def
/Times-Roman findfont 20 scalefont setfont
x y moveto
currentpoint exch pop
y sub
(                  ) cvs show
showpage

Thanks in advance for any help you can give me,
	Alastair Adamson
	alastair@cetia.fr
Newsgroups: comp.lang.postscript
From: hank@ducvax.auburn.edu
Subject: Re: Need a Postscript-->ASCII converter
Organization: Auburn University, AL
Date: Thu, 10 Sep 1992 03:40:38 GMT

In article <1992Sep9.205533.58749@cc.usu.edu>, slcx9@cc.usu.edu writes:
>Can someone out there tell me if there exists a Postscript to ASCII conversion
>program & where can I inherit it from ??

ps2txt was recently announced (posted?) on this group. It compiled with only
one small change for OS/2 and MSDOS. 

--darrel hankerson hank@ducvax.auburn.edu

/*  Jason Black, Feb 22 1992

Input can come from stdin, from '-' or from a file named on the command line:
Flags: -dvi for use with dvitps PostScript files.
Usage:
                ps2txt [-dvi] [-] [input_file.ps]

ps2txt.c extracts strings from a PostScript file.  This version has been
modified to correctly deal with the oddities of PostScript files generated by
dvi-to-PostScript converters, so if you keep this and the original program
around, you might want to rename one of them.
[text deleted]
Newsgroups: comp.lang.postscript
From: ronb@cs.utwente.nl (Ronald Beekelaar)
Subject: 4/page for Windows PostScript
Keywords: Windows, 4/page
Organization: University of Twente, Dept. of Computer Science
Date: Mon, 14 Sep 1992 10:31:36 GMT

Hi,

I am looking for a PostScript program that will allow me
to print four Windows 3.1 PostScript output pages (Word, CorelDraw)
on one sheet of paper. I know they exist. You have to
prepend the program to the output file and send it to the
printer and it works, but I can't seem to find it on the net.

Thanks,
ron

Newsgroups: comp.lang.postscript
From: pconnor@ishtar.med.jhu.edu (Paul Connor x5-8318)
Subject: Re: Barcodes in Postscript
Organization: The Johns Hopkins University
Date: Wed, 9 Sep 1992 18:04:52 GMT

Where can i find the complete code 39 specification? 

Should i post this question to some other newsgroup?

Paul Connor                                   pconnor@ishtar.med.jhu.edu
Johns Hopkins University
Baltimore, MD 21205
From: dmjones@theory.lcs.mit.edu (David M. Jones)
Newsgroups: comp.lang.postscript
Subject: Ghostscript + distill?
Date: 7 Sep 92 21:10:25 GMT
Reply-To: dmjones@theory.lcs.mit.edu (David M. Jones)
Organization: Laboratory for Computer Science, MIT

Has anyone been able to get Glenn Reid's still.ps to work with
Ghostscript?  I have still.ps V 1.0d release 12 edit 0 and Ghostscript
version 2.4.1.  If I give the following file:

    %!

    /Times-Roman findfont 12 scalefont setfont

    72 300 moveto

    (hello, world) show

    showpage

to distill, I get the following:

    %%BeginSetup
     PROLOGUE begin
    (hello, world) 71.9999 300 T
    1 ENDPAGE
    %%PageTrailer
    %%PageFonts: 
    %%PageBoundingBox: 71 299 129 299 
     end %PROLOGUE
    %%Trailer
    %%Pages: 1 
    %%BoundingBox: 71 299 129 299 
    %%DocumentFonts: 
    %%EOF

This is typical: All font-setting commands simply disappear.  As a
wild guess, I'd say this probably has something to do with the way
findfont operates in GhostScript, but does anyone know for sure?

David M. Jones                              "Trifles! Trifles light as air!"
dmjones@theory.lcs.mit.edu                              -- the Hystricide
Newsgroups: comp.lang.postscript
From: pmullins@cs.ulowell.edu ([Irish Harp])
Subject: Orientation of Postscript Graph: Question???
Organization: University of Massachusetts at Lowell Computer Science
Date: Sun, 6 Sep 1992 17:28:29 GMT

Hi,

I am dumping some graphs (displayed on a window) into postscript files.
However, when I view or print the postscript files, the graphs are displayed
vertical instead of horizontal.

My question is: Is there a way of storing the graphs in postscript form that
keep them horizontal?

thanks in advance,

PGM
-- 
"I am over here, YOU'll always be over there,
 There's an ocean in between,
 The Irish Sea is to your back, An tOilean Ur is to mine,
 As they claimed in '85, We shall return, And I will." 
Newsgroups: comp.lang.postscript
From: johnw@bnd2.bnd.oz.au (John Warburton)
Subject: Testing a printer for a downloadable font...
Organization: B&D Doors, Sydney, NSW, Australia
Date: Wed, 9 Sep 1992 07:08:48 GMT

Hello all,

I have a little bit of code which checks to see if
a downloadable font is on the printer:

%!PS
FontDirectory /Barcode known {
  /Times-Italic findfont 30 scalefont setfont
  newpath 0 setgray 200 400 moveto (found Barcode) show
}
{ %else
  /Times-Italic findfont 30 scalefont setfont
  newpath 0 setgray 200 400 moveto (Barcode not downloaded) show
} ifelse

This works well.

What I would like to do would actually put the code for the font
into the else block. ie jam the download code in to look like:
 
{ %else
  serverdict begin 0 exitserver
% FONT DICTIONARY
% ScaleFactor 1.117318
%--------- Define Dictionary
12 dict dup begin
%--------- FontMatrix
 /FontMatrix [0.001000 0 0 0.001000 0 0] def
%--------- FontType
 /FontType 3 def
%--------- FontBBox
 /FontBBox [0 -23 750 978] def
%--------- FontInfo
 /FontInfo 9 dict dup begin
.
.
.
.
/UniqueID 66 def

/Barcode exch definefont pop
statusdict begin [ 210 30 13 0 1 setidlefonts end

} ifelse

showpage

This unfortunately fails with a stack overflow.
Can anyone suggest any reason why?

Thanks

John
-- 
John Warburton				Internet:    johnw@bnd2.bnd.oz.au
Systems Administrator			Phone:       +61 2 771 5566
B & D Australia				Fax:	     +61 2 771 6385
		  Living on ice-cream and chocolate kisses...