home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / postscript / faq / part1-4 next >
Encoding:
Internet Message Format  |  1995-07-19  |  53.3 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!news.moneng.mei.com!news.ecn.bgu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!newsfeed.internetmci.com!usenet.eel.ufl.edu!usenet.cis.ufl.edu!purdue!mozo.cc.purdue.edu!staff.cc.purdue.edu!root
  2. From: Allen Braunsdorf <postscript-faq@cc.purdue.edu>
  3. Newsgroups: comp.lang.postscript,comp.answers,news.answers
  4. Subject: PostScript monthly FAQ v2.4 07-18-95 [01-04 of 11]
  5. Followup-To: poster
  6. Date: 18 Jul 1995 22:04:49 GMT
  7. Organization: Purdue University
  8. Lines: 1284
  9. Approved: news-answers-request@MIT.Edu
  10. Distribution: world
  11. Message-ID: <3uhb61$ijt@mozo.cc.purdue.edu>
  12. Reply-To: postscript-faq@cc.purdue.edu (PostScript FAQ comments address)
  13. NNTP-Posting-Host: staff.cc.purdue.edu
  14. Summary: Useful facts about the PostScript graphics programming language
  15. Archive-name: postscript/faq/part1-4
  16. Last-modified: 1995/04/20
  17. Version: 2.4
  18. Originator: root@staff.cc.purdue.edu
  19. Xref: senator-bedfellow.mit.edu comp.lang.postscript:34265 comp.answers:13174 news.answers:48773
  20.  
  21.                               -- PostScript -- 
  22.  
  23.                             Answers to Questions 
  24.  
  25.                     (the comp.lang.postscript FAQ v2.4) 
  26.  
  27.                               Allen Braunsdorf 
  28.  
  29.                         postscript-faq@cc.purdue.edu 
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.                      This FAQ is formatted as a digest. 
  37.  
  38.                 Most news readers can skip from one question 
  39.  
  40.                 to the next by pressing control-G. GNUs uses 
  41.  
  42.                    C-c C-n to skip to the next question. 
  43.  
  44.  
  45.     Changes since the last version are marked with a '|' in the table 
  46.     of contents and in the sections in the text-only format of the FAQ. 
  47.  
  48.     Now that there is Linux and NetBSD and BSD 386 UNIX IBM PC (and 
  49.     clone) users can run any of the X-windows and UNIX programs in the 
  50.     utilities section. See any of comp.os.linux.{ 
  51.     admin,development,help,misc}. Also, there is now GhostScript for 
  52.     the Macintosh. 
  53.  
  54.     Many thanks to Dan Carrigan for reformatting the books and 
  55.     publishers section. 
  56.  
  57.     The utilities index from the comp.sources.postscript FAQ will be 
  58.     posted in comp.lang.postscript now too. 
  59.  
  60.     Please help fix the FAQ! All comments should be mailed to 
  61.     postscript@cc.purdue.edu. My favorite way to receive a change 
  62.     suggestion is when it is accompanied by a section of the FAQ that 
  63.     is edited and mailed to me verbatim as an example. If you would 
  64.     like to contribute, please read the section ``about the FAQ'' 
  65.     first. Thank you! 
  66.  
  67.     Books and programs are referred to by name only. See the book 
  68.     sections for book information, and the comp.sources.postscript FAQ 
  69.     for a full list of all PostScript related programs. I have archived 
  70.     a number of the small utilities in 
  71.     wilma.cs.brown.edu:pub/postscript. You can get the 
  72.     comp.sources.postscript FAQ from 
  73.     wilma.cs.brown.edu:pub/comp.sources.postscript. 
  74.  
  75.     Related FAQs: comp.text, comp.text.tex, comp.fonts, comp.graphics, 
  76.     comp.sys.mac.apps, comp.sources.postscript. 
  77.  
  78.     Table of Contents 
  79.  
  80.  
  81.     This FAQ has 11 sections. It is available by anonymous ftp to 
  82.     wilma.cs.brown.edu:pub/comp.lang.postscript/FAQ.txt in ASCII, and 
  83.     there are also LaTeX, DVI, and PostScript formats. 
  84.  
  85.   
  86.       1 General Questions 
  87.          1.1 What is PostScript? 
  88.          1.2 How can I tell how many pages my document will have? 
  89.          1.3 How can I print just one page or a few pages from a big 
  90.          1.4 How can I print more than one page per sheet of paper? 
  91.          1.5 How can I edit a PostScript picture? 
  92.          1.6 How can I print PostScript on a non-PostScript printer? 
  93.          1.7 How do I print a file containing 8-bit characters? 
  94.          1.8 What other graphics languages are there? 
  95.       2 Printers 
  96.          2.1 How can I get my printer to talk back to me? 
  97.          2.2 Should I leave my printer on? 
  98.          2.3 How do you print double-sided on a single-sided printer? 
  99.          2.4 How do I suppress the power-on start page? 
  100.          2.5 How do I make a downloaded font ``persistent''? 
  101.          2.6 How do I remove a persistent (``permanent'') downloaded font? 
  102.          2.7 How do I reset the printer without power-cycling? 
  103.          2.8 About saving files 
  104.          2.9 What's the control-D business? 
  105.          2.10 Why does the printer say ``still busy'' when my document is 
  106.          2.11 How should I set up my spoolers? 
  107.          2.12 What are PPD files? 
  108.          2.13 What's a timeout error? 
  109.          2.14 Can I tell if my printer is color or black/white? 
  110.       3 Formats and Conversions 
  111.          3.1 How can I convert PostScript to some other graphics format? 
  112.          3.2 How can I convert PostScript to a bitmap or pixmap? 
  113.          3.3 How can I convert HPGL to PostScript? 
  114.          3.4 How can I convert DVI to PostScript? 
  115.          3.5 How can I convert HP Laserjet language (PCL) to PostScript? 
  116.          3.6 How can I convert TeX PK format font to PostScript? 
  117.          3.7 How do I embed PostScript into troff? 
  118.          3.8 How do I embed PostScript into LaTeX or TeX? 
  119.          3.9 How can I convert an image to PostScript? 
  120.          3.10 How can I convert ASCII text to PostScript? 
  121.          3.11 How can I convert PostScript to ASCII? 
  122.          3.12 How do I convert between PFB, PFA, Mac, PFM, and AFM? 
  123.       4 Fonts  
  124.          4.1 What are .PFB and .PFA files? 
  125.          4.2 How does Macintosh Store PostScript Fonts?
  126.          4.3 How can I convert a PostScript font to TeX's PK format? 
  127.          4.4 Why are Adobe fonts hidden? 
  128.          4.5 How do I get bitmap representations of Adobe fonts? 
  129.          4.6 What are some good ftp sites for fonts? 
  130.          4.7 How can I re-encode a font? 
  131.          4.8 What's the difference between a Type 1 and a Type 3 font? 
  132.          4.9 What vendors sell fonts for PostScript printers? 
  133.          4.10 What are ATM fonts? 
  134.          4.11 What are Multiple Master Fonts? 
  135.          4.12 Do I need a Level Two printer to use Multiple Master Fonts? 
  136.          4.13 What are Type 4 fonts? 
  137.          4.14 What are Type 5 fonts? 
  138.          4.15 Is there an editor for Type 1 Fonts? 
  139.       5 Books 
  140.          5.1 Books 
  141.          5.2 Publishers 
  142.       6 About Adobe 
  143.          6.1 How do I get in touch with Adobe? 
  144.          6.2 What can Adobe do for me? 
  145.       7 Programming in PostScript 
  146.          7.1 What is PostScript level 2? 
  147.          7.2 Should I learn level 2 PostScript? 
  148.          7.3 Where can I find examples of PostScript code? 
  149.          7.4 What is the physical size of the page? 
  150.          7.5 What is the Imagable Area of the page 
  151.          7.6 Why can't I do a pathforall after a charpath ? 
  152.          7.7 How do I center a string of text around a point? 
  153.          7.8 How can I concatenate two strings together? 
  154.          7.9 What do I do when I get stack overflow/underflow? 
  155.          7.10 How can I print in landscape mode? 
  156.       8 Computer-specific PostScript 
  157.          8.1 Sun Workstations 
  158.          8.2 IBM PC 
  159.          8.3 Apple Macintosh 
  160.          8.4 NEXTSTEP
  161.       9 Encapsulated PostScript 
  162.          9.1 What is Encapsulated PostScript? 
  163.          9.2 What are EPSI and EPSF? 
  164.          9.3 How do I convert PostScript to EPS? 
  165.          9.4 How do I get the bounding box of a PostScript picture? 
  166.       10 About The Comp.Lang.PostScript FAQ 
  167.          10.1 The PostScript FAQ: What is it? 
  168.          10.2 How to get the FAQ files 
  169.          10.3 How to write a FAQ answer 
  170.          10.4 The FAQ can contain LaTeX and PostScript inserts 
  171.          10.5 Revising the FAQ 
  172.          10.6 How to submit new information 
  173.          10.7 How to add a program description to the FAQ index 
  174.          10.8 How to add a book description to the FAQ 
  175.          10.9 Questions that need answers 
  176.       11 About PostScript 2 
  177.          11.1 What printers support Level 2 PostScript? 
  178.          11.2 What is PostScript Level 2? 
  179.          11.3 [ Color Extensions ] 
  180.          11.4 [ Composite Font Extensions ] 
  181.          11.5 [ Display PostScript Extensions ] 
  182.          11.6 [ Overview of Level 2 Features ] 
  183.          11.7 Filters 
  184.          11.8 Binary Encoding 
  185.          11.9 Optimized graphics operators 
  186.          11.10 Optimized text operators 
  187.          11.11 Forms 
  188.          11.12 Patterns 
  189.          11.13 Images 
  190.          11.14 Composite Fonts 
  191.          11.15 New Color Spaces 
  192.          11.16 New screening/halftoning technology 
  193.          11.17 Improved printer support features 
  194.          11.18 Interpreter parameters 
  195.          11.19 Resources 
  196.          11.20 Dictionaries 
  197.          11.21 When did Level 2 products come available? 
  198.          11.22 Are Level 1 and Level 2 implementations compatible? 
  199.   
  200.  
  201.  
  202.     1 General Questions 
  203.  
  204.  
  205.     1.1 What is PostScript? 
  206.  
  207.     PostScript is a page description programming language. 
  208.  
  209.     It is perhaps the most versatile and loved language for printers, 
  210.     being used in printers world-wide. It is capable of drawing to 
  211.     computer screens and any kind of drawing device. PostScript is 
  212.     interpreted, stack based and has latent typing. It somewhat 
  213.     resembles the computer language FORTH. 
  214.  
  215.     A number of programmers write PostScript programs directly for a 
  216.     variety of drawing applications. The NeXTSTEP Operating System, 
  217.     running on Intel-486 and Motorola machines, uses Display PostScript 
  218.     Level II to manage the display. However, PostScript programs are 
  219.     usually documents meant to be printed that have been generated by a 
  220.     program written in some compiled language. 
  221.  
  222.  
  223.     1.2 How can I tell how many pages my document will have? 
  224.  
  225.     The easiest way to count pages is view your document on-line with a 
  226.     PostScript previewer. Some previewers like Ghostview and GSPreview 
  227.     count the pages for you. (See the comp.sources.postscript FAQ, 
  228.     which has a section ``PostScript Interpreters and Utilities''.) 
  229.  
  230.     If your document is generated by a program compliant with the 
  231.     Document Structuring Conventions, you should be able to just count 
  232.     the number of ``%%Page:'' comments imbedded in the document. 
  233.     With UNIX you can type 
  234.   
  235.   grep -c %%Page: document.ps
  236.   
  237.     to do this counting. (See Section 9, ``Encapsulated PostScript''.) 
  238.  
  239.     You could use the program pspages posted to 
  240.     comp.sources.postscript, volume 2, issue 5, by Kevin Grover. 
  241.  
  242.     The only completely reliable way to count pages is to ask the 
  243.     printer after the job is printed. PostScript printers maintain a 
  244.     page counter that can be queried before and and after the job is 
  245.     printed, and the page count is a simple subtraction. This tends to 
  246.     require rather sophisticated spooling systems and a communications 
  247.     channel that is bidirectional. However, some printers allow you to 
  248.     submit jobs on one port, and issue queries on another. 
  249.  
  250.     Send this PostScript through a bidirectional I/O port and you'll 
  251.     get back the page count, nominally the total number of pages 
  252.     printed since manufacture: 
  253.  
  254.     statusdict begin pagecount == end flush 
  255.  
  256.     Experts using a level 2 printer can use the SerialOff.PS and 
  257.     SerialEHandlder.ps programs to communicate bidirectionally to the 
  258.     printer. 
  259.  
  260.  
  261.     1.3 How can I print just one page or a few pages from a big 
  262.     document? How can I print pages in reverse order? 
  263.  
  264.     Try using a host-specific program, like the UNIX command psrev, 
  265.     which is part of the TranScript suite of software from Adobe 
  266.     Systems. Or use the more general utilities Ghostview, psutils or 
  267.     psxlate. 
  268.  
  269.     There is no guarantee that a given PostScript document can be split 
  270.     in such a manner. The reason is that some programs which generate 
  271.     PostScript code don't conform to the Adobe Document Structuring 
  272.     Conventions (DSC). (See Section 9, ``Encapsulated PostScript''.) A 
  273.     notable example of this is Microsoft Word. 
  274.  
  275.  
  276.     1.4 How can I print more than one page per sheet of paper? 
  277.  
  278.     Use psnup or pstext or enscript. 
  279.  
  280.     These programs redefine the PostScript ``showpage'' command to do 
  281.     multiple PostScript pages per physical page. If one program doesn't 
  282.     work with a complex document, try out other ones. 
  283.  
  284.     Some PostScript programs can't work with these programs because 
  285.     they break the EPS conventions (See Section 9, ``Encapsulated 
  286.     PostScript''.). The reason is that some Postscript operators (such 
  287.     as initgraphics, the list is in the Red book) change the printer 
  288.     state so "violently", that software trying to do things like n-up 
  289.     will get confused. Theoretically, an EPS shouldn't have any of 
  290.     these operators, but it may not really be an EPS, or there may be a 
  291.     weird interaction between TeX, the EPS and the inclusion mechanism 
  292.     that breaks psnup. 
  293.  
  294.  
  295.     1.5 How can I edit a PostScript picture? 
  296.  
  297.     If you know the PostScript programming language, just use any text 
  298.     editor to edit the code directly. 
  299.  
  300.     If you want to do it visually, you can use Canvas on the Macintosh. 
  301.     Arts & Letters software package from Computer Support Corporation 
  302.     is supposed to be able to read arbitrary EPS files, using a 
  303.     software converter called Decipher. Also, Island Graphics has a 
  304.     trio of software packages called, appropriately, Island 
  305.     Draw/Paint/Write. This is also supposed to include a full-blown 
  306.     PostScript interpreter, and be able to read and edit arbitrary 
  307.     PostScript files. 
  308.  
  309.  
  310.     1.6 How can I print PostScript on a non-PostScript printer? 
  311.  
  312.     You need a tool that converts to something that your printer knows 
  313.     how to print. Use Freedom of Press, GhostScript, pageview, TScript, 
  314.     or UltraScript PC. Or, use a printer cartridge if your printer 
  315.     manufacturer sells one. 
  316.  
  317.  
  318.     1.7 How do I print a file containing 8-bit characters? 
  319.  
  320.     If you only have Transcript you just don't. Transcript uses 
  321.     "enscript" to convert a "text" file to a PostScript file and 
  322.     "enscript" is not able to deal with 8-bit characters. 
  323.  
  324.     You have to use one of the many programs that convert text to 
  325.     PostScript, like a2ps, which not only handles the 8-bit characters 
  326.     in a very nice way using the standard ISO Latin 1 character 
  327.     encoding, but it also produces outputs in a series of very well 
  328.     set, nice an paper saving formats, much nicer than the ones 
  329.     produced by enscript. 
  330.  
  331.  
  332.     1.8 What other graphics languages are there? 
  333.  
  334.     HPGL is for pen plotters. PCL is for HP Laser printers (and 
  335.     compatibles). Both are by HP, and PCL5 is supposed to allow 
  336.     inclusion of HPGL commands, preceded by an appropriate escape code, 
  337.     however I have found this to give errors and abort even for simple 
  338.     HPGL code that plots fine on a plotter. 
  339.  
  340.     2 Printers 
  341.  
  342.  
  343.     2.1 How can I get my printer to talk back to me? 
  344.  
  345.     Experts using a level 2 printer can use the SerialOff.PS and 
  346.     SerialEHandlder.ps programs to communicate bidirectionally to the 
  347.     printer. 
  348.  
  349.     If you just need the error returns from the printer, you can spawn 
  350.     a 
  351.   
  352.   cat < port >> logfile&
  353.   
  354.     in your system startup. Then you will get a log of everything the 
  355.     printer says. This works on any serial-port connected printer. 
  356.  
  357.  
  358.     2.2 Should I leave my printer on? 
  359.  
  360.     Most laser printers consume several hundred watts while idle in 
  361.     order to keep the fuser warm. A few models shut down automatically 
  362.     after a while, and this feature seems to be the wave of the future. 
  363.  
  364.     Wear-and-tear due to power cycling is no longer the problem it once 
  365.     was. The advice in the FAQ would have been appropriate in the 
  366.     1970s, but no longer. A good modern rule of thumb is to turn off 
  367.     electronic equipment if it won't be used for a few hours (overnight 
  368.     or weekends), otherwise to leave it on. 
  369.  
  370.  
  371.     2.3 How do you print double-sided on a single-sided printer? 
  372.  
  373.     The biggest problem comes in jamming when you feed the document 
  374.     through the second time to print the backside. To minimize this 
  375.     problem, you want to minimize the curl that the paper acquires in 
  376.     passing through the printer. So, if your printer normally stacks 
  377.     face down (to make the page order come out right) rearrange it 
  378.     (often this involves flipping out a plastic paper catcher on the 
  379.     end) so the pages feed straight through and stack face up. Then 
  380.     acquire and build psutils, and run your document through the 
  381.     following commands: 
  382.  
  383.   
  384.        pstops '2:0'           <original.ps >odd.ps
  385.        pstops '2:1U@1(1w,1h)' <original.ps >even.ps
  386.   
  387.     This puts the even and odd pages in different files, and rotates 
  388.     the even pages 180 degrees so the top and bottom are reversed. This 
  389.     lets you feed the paper back through with the old trailing edge at 
  390.     the front; since pages get the most severe curl at the leading edge 
  391.     this also helps reduce jamming. Print odd.ps, flip the output pile 
  392.     face down and backwards, put it back in the input magazine, and 
  393.     print even.ps. 
  394.  
  395.     If the printer is fed by a shared print queue, you can leave the 
  396.     paper magazine out after you put the first pass pages into it, 
  397.     before you submit the second half, then make sure your job is at 
  398.     the front of the queue (waiting for you to replace the paper tray) 
  399.     before you reinsert the tray. 
  400.  
  401.     Alternatively, particularly with serially-interfaced printers, 
  402.     there's a long enough delay to pull the paper tray out between two 
  403.     print jobs, so you can submit them both, then pull the tray out as 
  404.     soon as the last page of the first job finishes. The ``pstops'' 
  405.     invocations report how many pages they emit, so you can count pages 
  406.     to determine when the first one is done. 
  407.  
  408.  
  409.     2.4 How do I suppress the power-on start page? 
  410.  
  411.     Disabling the start page is described in your printer's PostScript 
  412.     supplement. The most common sequence is ``serverdict begin 0 
  413.     exitserver statusdict begin false setdostartpage end''. 
  414.  
  415.  
  416.     2.5 How do I make a downloaded font ``persistent''? 
  417.  
  418.   
  419.   %!PS-Adobe-2.0 ExitServer
  420.   %%BeginExitServer: 0
  421.   serverdict begin 0 exitserver
  422.   %%EndExitServer
  423.   % Test for existence of font, abort if present.
  424.   % This won't work on a printer with a hard disk!
  425.   /str 32 string def
  426.   /Eurostile dup FontDirectory exch known
  427.   { str cvs print ( is already loaded!\n) print flush quit }
  428.   { (loading font ) print str cvs print (\n) print flush }
  429.   ifelse
  430.   %% Font follows...
  431.   
  432.     The part following ``%%EndExitServer'' is optional. If you use 
  433.     it, change Eurostile to the name of the font. The default PFA 
  434.     behavior is to use up additional VM for the new copy if another 
  435.     copy has already been downloaded. 
  436.  
  437.  
  438.     2.6 How do I remove a persistent (``permanent'') downloaded font? 
  439.  
  440.     In PostScript Level 2, you can use the undefinefont operator to 
  441.     remove fonts selectively. 
  442.  
  443.     The only reliable method in PostScript Level 1 is to restart the 
  444.     printer, for example with: 
  445.  
  446.   
  447.     serverdict begin 0 exitserver
  448.     systemdict /quit get exec
  449.   
  450.     Of course, the real solution is just to not download persistent 
  451.     fonts unless you really want them to persist indefinitely. If you 
  452.     want them only for one job, download them as part of the job. 
  453.  
  454.  
  455.     2.7 How do I reset the printer without power-cycling? 
  456.  
  457.     Most printers can be reset by issuing ``serverdict begin 0 
  458.     exitserver systemdict /quit get exec''. 
  459.  
  460.  
  461.     2.8 About saving files 
  462.  
  463.     Adobe recommends that driver writers do not put EOT (control-D) 
  464.     into files when saving to disk. Normally, the EOT is a part of the 
  465.     protocol for parallel and serial ports and never hits the 
  466.     PostScript interpreter. 
  467.  
  468.     Drivers that do embed EOD can create problems for devices that 
  469.     allow other communication methods (e.g. AppleTalk, Ethernet, and 
  470.     SCSI) where the EOT is not part of the communications protocol. It 
  471.     is useful to redefine EOT in these instances so that the 
  472.     interpreter does not generate an error. The recommended 
  473.     redefinition is: 
  474.  
  475.   
  476.                    (\004) cvn {} def
  477.   
  478.     This should convert any stand-alone embedded EOTs into a null 
  479.     procedure. This definition does not cause all 004 characters to be 
  480.     consumed, it just prevents an "undefined" error if you try to 
  481.     execute one. 
  482.  
  483.  
  484.     2.9 What's the control-D business? 
  485.  
  486.     PostScript printers communicating over serial lines use control-D 
  487.     as an end of job indicator. The host computer should then wait for 
  488.     the printer to send a control-D back to indicate that the job has 
  489.     finished. Managing the serial protocol between host and printer 
  490.     should be done by some form of print service, but if you're unsure 
  491.     whether your print service is doing it, it's an idea to send one 
  492.     yourself. 
  493.  
  494.     PC type computers frequently do not have any kind of printer 
  495.     manager and applications end up sending control-D characters to the 
  496.     printer, sometimes before and after a job. PC applications 
  497.     frequently embed a control-D as the first character in the print 
  498.     file, presumably to flush out any other jobs, and thereby breaking 
  499.     the Adobe Document Structuring Conventions. There is a way to turn 
  500.     off generation off the control-D in Windows (anybody know it?). 
  501.  
  502.     According to the PRINTERS.WRI file that is included with MS Windows 
  503.     3.x and up, you can place a line 
  504.  
  505.   
  506.                   CtrlD=0
  507.   
  508.     in the WIN.INI sections for any postscript printers for which you 
  509.     wish to supress the Control-D generation. This usually works as 
  510.     long as you're using a specific printer, i.e. Apple LaserWriter, 
  511.     QMS820, etc ] . However if you use the generic ``PostScript 
  512.     printer'' driver, it does not work. There is a freeware program 
  513.     called ctrld that will let users select if a given ps driver should 
  514.     output control-D's or not. It can be found at ftp.cica.indiana.edu 
  515.     in the file ftp/pub/pc/win3/misc/ctrld10.zip. 
  516.  
  517.     The shareware package WLPRSPL (an LPR spooler for Windows) includes 
  518.     a convenient utility program for listing the relevant printers and 
  519.     turning the option off or on. 
  520.  
  521.     If you want to prevent applications from doing this, you could use 
  522.     a spooler which would look at the end of every outgoing file and 
  523.     drop the control-D on the end if there happened to be one. 
  524.  
  525.     If you want a spooler, check out lprps. 
  526.  
  527.  
  528.     2.10 Why does the printer say ``still busy'' when my document is 
  529.     done printing? 
  530.  
  531.     Sometimes when you finish a print job, the printer ``Ready'' light 
  532.     keeps flashing for a minute or so. Somehow, the printer has 
  533.     received some character(s) after the control-D which was sent 
  534.     immediately after the PostScript file. The most common is that a 
  535.     newline has been inserted after the control-D. The printer took 
  536.     these character(s) to be another program, and eventually timed-out 
  537.     while waiting for the rest of it. This can happen because of the 
  538.     host not waiting for the printer to finish. 
  539.  
  540.  
  541.     2.11 How should I set up my spoolers? 
  542.  
  543.     Since PostScript usually is prefixed with ``%!'', it's easy to 
  544.     educate your spooler to autoselect between passing raw PostScript 
  545.     through to the printer or doing an ``ASCII-to-PostScript'' 
  546.     conversion first. There are many packages that will do this, 
  547.     including Transcript and psxlate. 
  548.  
  549.     Unfortunately, many PostScript applications generate PostScript 
  550.     without a proper ``%!'' magic cookie. 
  551.  
  552.     The spooler should be responsible for transmitting the ``job 
  553.     termination code'' (a control-D on serially-connected printers) to 
  554.     the printer, not the application. Do yourself a favor and disable 
  555.     (or filter out) control-Ds in your applications and generate them 
  556.     in the spooler. This will be far more reliable in the face of 
  557.     arbitrary input. 
  558.  
  559.  
  560.     2.12 What are PPD files? 
  561.  
  562.     Adobe Postscript Printer Description (PPD) files describe how to 
  563.     use the special features for a specific Postscript printer. They 
  564.     are suppose to be human-readable, but they are really only readable 
  565.     by PostScript gurus. It is the responsibility of the printer 
  566.     manufacturer to supply PPD files. However, the Adobe mail server 
  567.     has many of them. (see the Section 6, ``About Adobe'') 
  568.  
  569.     Adobe Technical Document 5003 - PPD Specification describes how to 
  570.     read and parse PPD files. You can find it on the Adobe mail server, 
  571.     or by anonymous ftp to ftp.adobe.com:/pub/adobe/Documents/5003.PPD 
  572.     _Spec.ps. 
  573.  
  574.  
  575.     2.13 What's a timeout error? 
  576.  
  577.     The wait timeout is the maximum time the PostScript interpreter 
  578.     will wait for input before aborting. The timeout interval begins 
  579.     when the interpreter finishes executing everything it has received 
  580.     so far and starts waiting for the host to send it more data. If 
  581.     this timeout expires and no more data arrives, a timeout occurs. 
  582.  
  583.     In particular, a compute-bound job (or one that goes into an 
  584.     infinite loop) will not encounter a wait timeout, since it is not 
  585.     waiting. The long diatribe about the need to "keep sending stuff" 
  586.     and problems with long compute-bound jobs is totally off the mark. 
  587.     The data channel may stop due to flow control, and may stay stopped 
  588.     for long periods if the printer is very busy. This is perfectly OK 
  589.     and won't cause a timeout. 
  590.  
  591.     Don't disable the wait timeout. The whole point of the wait timeout 
  592.     is to prevent the interpreter from being indefinitely tied up by a 
  593.     host application that has crashed, a communication channel that has 
  594.     been disconnected, or whatever. This is particularly important for 
  595.     networked printers. The only situation in which disabling timeouts 
  596.     is appropriate is when debugging applications or drivers, since you 
  597.     don't want the printer timing out while the host is at a breakpoint 
  598.     or something. 
  599.  
  600.  
  601.     2.14 Can I tell if my printer is color or black/white? 
  602.  
  603.     If you tried testing for the presence of ``colorimage'', your 
  604.     application will fail on PostScript level 2 printers. Several 
  605.     applications make this mistake, simply testing for the presence of 
  606.     a color operator (``colorimage'', ``setcmykcolor'', etc.). This is 
  607.     not sufficient -- some level 1 PostScript black and white devices 
  608.     and all level 2 devices include the color operators. 
  609.  
  610.     However, before you do this, you should ask yourself *why* you want 
  611.     to know. There are really two reasons an application might care 
  612.     about the color capabilities of a printer. 
  613.  
  614.     1. To determine if the printer will accept PostScript language 
  615.     programs using the color extensions (colorimage, setcmykcolor, 
  616.     etc.) 
  617.  
  618.     2. To determine if the printer, as currently configured, will 
  619.     actually produce color output. This is what processcolors tells 
  620.     you. 
  621.  
  622.     These are entirely different questions, and developers should make 
  623.     sure they are asking the right one. (1) is a language compatibility 
  624.     question, similar to the issue of Level 1 versus Level 2 (see red 
  625.     book, appendices A and D). (2) is a device dependent query, which 
  626.     is essentially independent of (1). 
  627.  
  628.     In particular, it makes sense to ask (2) only if the application 
  629.     intends to take different actions depending on the outcome. For 
  630.     example, a CAD application might paint objects with stipple 
  631.     patterns on a monochrome device but true color on a color device. 
  632.     Or a prepress application might want to query and/or change the 
  633.     many Level 2 page device parameters dealing with production of 
  634.     separations (see PostScript Language Supplement for version 2012 or 
  635.     greater). 
  636.  
  637.     On the other hand, if an application is not going to do such 
  638.     things, it should ask only question (1). If the printer will accept 
  639.     the color extensions, the application should sent it color output, 
  640.     whether or not the printer will actually produce color. That way, 
  641.     the PostScript language file captures the application's intent, and 
  642.     color will be produced if the file is later diverted to a color 
  643.     printer. 
  644.  
  645.     Some times it's sensible to make such a test, though. For example, 
  646.     an application might want to display red and green on a color 
  647.     device, but a varying fill pattern on a black and white device 
  648.     since red and green are difficult to distinguish when rendered as 
  649.     gray. 
  650.  
  651.     In ``statusdict'', the ``processcolors'' operator, if present, 
  652.     returns the number of device colors. Black and white level 2 
  653.     devices I have tested (TI microLaser Turbo, Apple LaserWriter IIg) 
  654.     omit ``processcolors''. Level 2 Color devices (such as the 
  655.     Tektronix Phaser III PXi) include it, and it returns the number of 
  656.     device colors. 
  657.  
  658.     So, on both level 1 and level 2, the correct technique is to test 
  659.     for the presence of ``processcolors'' in ``statusdict'' and assume 
  660.     black and white if it is not present. If it is present, execute it 
  661.     and test the result for a ``1'', indicating black and white. 
  662.  
  663.   
  664.           % returns true for black & white, false otherwise
  665.    
  666.           /black-and-white-device
  667.           {       statusdict begin
  668.                   /processcolors where
  669.                   { pop processcolors } { 1 } ifelse
  670.                   end
  671.                   1 eq
  672.           } def
  673.   
  674.  
  675.     3 Formats and Conversions 
  676.  
  677.     This section describes formats that can be converted to and from 
  678.     PostScript, and how to convert them. Encapsulated PostScript and 
  679.     Fonts have their own sections. 
  680.  
  681.  
  682.     3.1 How can I convert PostScript to some other graphics format? 
  683.  
  684.     Since PostScript is not just a picture-description language, but in 
  685.     fact a complete programming language, you will need a complete 
  686.     PostScript interpreter to convert or display a PostScript graphic. 
  687.     See the comp.sources.postscript FAQ for an index of all PostScript 
  688.     related programs. 
  689.  
  690.     Try using Ghostscript or Tailor. 
  691.  
  692.  
  693.     3.2 How can I convert PostScript to a bitmap or pixmap? 
  694.  
  695.     Use Ghostscript, and build the devices under gs pbmraw, pbm.dev, 
  696.     etc. (See devs.mak under the sources for gs) The following converts 
  697.     file.ps in file.ppm: 
  698.  
  699.     gs -sDEVICE=ppmraw -sOutputFile=file.ppm file.ps 
  700.  
  701.     Or try using the Ghostscript tools ps2image.ps or pstoppm.ps. Or 
  702.     use the NETPBM tool pstopnm. Netpbm (a descendant of the PBMPLUS 
  703.     utilities) can then convert that image into whatever format you 
  704.     want. 
  705.  
  706.     You can also use the ImageMagick-tools program ``convert''. Try 
  707.     ftp.x.org in contrib/ImageMagick.tar.Z. 
  708.  
  709.     If you have the new xv installed, it can now read PostScript files, 
  710.     and it stores them to any format. 
  711.  
  712.  
  713.     3.3 How can I convert HPGL to PostScript? 
  714.  
  715.     Use hp2ps. 
  716.  
  717.  
  718.     3.4 How can I convert DVI to PostScript? 
  719.  
  720.     Use dvips. 
  721.  
  722.  
  723.     3.5 How can I convert HP Laserjet language (PCL) to PostScript? 
  724.  
  725.     Use lj2ps for simple PCL. Alternatively, another lj2ps, from 
  726.     psroff3.0, is a little more complete. 
  727.  
  728.     hp2pbm can convert all of PCL4 (up to and including rasters, 
  729.     downloaded fonts and macros) into PostScript, G3 and any other 
  730.     PBM-supposed format. 
  731.  
  732.  
  733.     3.6 How can I convert TeX PK format font to PostScript? 
  734.  
  735.     Psroff3.0 contains programs that can convert TeX PK format or HP 
  736.     SFP format fonts into PostScript bitmap fonts along with 
  737.     rearranging encoding, etc. While bitmap bfonts scale poorly, this 
  738.     is sometimes of use in special circumstances. 
  739.  
  740.  
  741.     3.7 How do I embed PostScript into troff? 
  742.  
  743.     Most troffs can be ``coerced'' into including PostScript figures. 
  744.     The best approach is a configuration that takes EPS PostScript and 
  745.     can automatically scale it, or tell troff how big the picture is. 
  746.     Groff and DWB 3 have this built in. 
  747.  
  748.     psfig is an add-on EPS inclusion handler that can add this 
  749.     capability to other versions of troff, provided that a compatible 
  750.     PostScript driver is used (Psroff 3.0 for ditroff or CAT troff, 
  751.     Transcript for ditroff). See the comp.text FAQ for more detail. 
  752.  
  753.  
  754.     3.8 How do I embed PostScript into LaTeX or TeX? 
  755.  
  756.     You should use an add-on program for seamless PostScript inclusion. 
  757.  
  758.     Use psfig. 
  759.  
  760.     If your LaTeX is simple, but your PostScript is fancy, try using 
  761.     LameTeX. 
  762.  
  763.     If you need a good compromise, use pstricks. 
  764.  
  765.     See the comp.text.tex FAQ. 
  766.  
  767.  
  768.     3.9 How can I convert an image to PostScript? 
  769.  
  770.     First determine what format your images are in. PBMPLUS will have 
  771.     converters for most image formats. 
  772.  
  773.     To convert an image to PostScript with the X Window System, you can 
  774.     display the image on the screen, and grab it with xv, which can 
  775.     save the image in a PostScript file. 
  776.  
  777.     A more general alternative in X Window System would be to use the 
  778.     PPM, PGM and PBM utilities in the X11R4 and X11R5 distributions. 
  779.  
  780.  
  781.     3.10 How can I convert ASCII text to PostScript? 
  782.  
  783.     Unless your printer is smart about raw ASCII, you can't just send 
  784.     the ASCII to a PostScript printer, because the printer will attempt 
  785.     to interpret your ASCII file as PostScript code. You need a program 
  786.     which will wrap some PostScript code around your ASCII file. 
  787.  
  788.     Try any of the following programs: asciiprint.ps, ato2pps, cz, 
  789.     ETSR, i2ps, lpp, lwf, POSTPRN, printer, psf, psfx80, PSR, ps2txt, 
  790.     pstext, swtext, text2ps, TranScript, spike.ps, enscript, nenscript, 
  791.     a2ps, asc2ps, ascii2ps, crossword.ps, double.ps, landscape.ps, 
  792.     numbered.ps, portrait.ps, or wide.ps. 
  793.  
  794.     If you want to make something fancy, why not use a word processor? 
  795.     Most of them can ``include'' ASCII directly from a file and produce 
  796.     PostScript. 
  797.  
  798.  
  799.     3.11 How can I convert PostScript to ASCII? 
  800.  
  801.     In general, when you say ``I want to convert PostScript to ASCII'' 
  802.     what you really mean is ``I want to convert MacWrite (which makes 
  803.     PostScript output) to ASCII'' or ``I want to convert somebody's TeX 
  804.     document (which I have in PostScript) to ASCII''. 
  805.  
  806.     Unfortunately, programs like these (if they're smart) do a lot of 
  807.     fancy stuff like kerning, which means that where they would 
  808.     normally execute the postscript command for 
  809.  
  810.   
  811.       ``print water fountain''
  812.   
  813.     instead they execute the postscript command for 
  814.  
  815.   
  816.       ``print wat''      (move a little to get the spacing *just* right)
  817.       ``print er''       (move a little to get the spacing *just* right)
  818.       ``print foun''     (move a little to get the spacing *just* right)
  819.       ``print tain''     (move a little to get the spacing *just* right)
  820.   
  821.     So if I write a program to look through a PostScript file for 
  822.     strings, like ps2ascii.pl, It can't tell where the words really 
  823.     end. Here my program would see 4 strings 
  824.  
  825.   
  826.   ``wat'' ``er'' ``foun'' ``tain''
  827.   
  828.     And it doesn't see any difference between the spacing between 
  829.     ``found'' and ``tain'' (not a word break) and the spacing between 
  830.     ``er'' and ``foun'' (a real word break). 
  831.  
  832.     The problem is that PostScript for text formatting is usually 
  833.     produced machine generated by a text formatter. A PostScript 
  834.     generator like dvips might have a special command like ``boop'' 
  835.     that differentiates between a real world break and a fake one. But 
  836.     every text formatter that generates PostScript has their own name 
  837.     for the ``boop'' command. 
  838.  
  839.     So you really want a ``PostScript to ASCII converter for dvips 
  840.     output''. 
  841.  
  842.     The only general solution I can see would be to redefine the show 
  843.     operator to print out the currentpoint for every letter being 
  844.     printed, like gs2asc, and then make up an ASCII page based on this 
  845.     by sticking ASCII characters where they go in a two-dimensional 
  846.     array. That would convert PostScript to ASCII ``formatted''. 
  847.  
  848.     But even that wouldn't solve the problem, because special bitmap 
  849.     fonts and and standard fonts like Symbol don't always print a ``P'' 
  850.     when you say the letter ``P''. Sometimes they print the greek Pi 
  851.     symbol or a chess piece or a ZapfDingBat. 
  852.  
  853.     Use ps2a, ps2ascii, ps2txt, ps2ascii.ps or ps2ascii.pl. 
  854.  
  855.  
  856.     3.12 How do I convert between PFB, PFA, Mac, PFM, and AFM? 
  857.  
  858.     Write or call Y and Y Software, listed in the fonts section as a 
  859.     vendor. For NEXTSTEP systems, write or call Trilithon Software, 
  860.     also listed in the fonts section as a vendor. 
  861.  
  862.  
  863.     4 Fonts 
  864.  
  865.     This section answers questions about fonts as they pertain to 
  866.     PostScript. See the comp.fonts FAQ for more information about 
  867.     fonts. 
  868.  
  869.  
  870.     4.1 What are .PFB and .PFA files? 
  871.  
  872.     ``PFB'' stands for Printer Font Binary, and is a STORAGE FORMAT in 
  873.     which Adobe Type 1 font programs are usually distributed for IBM PC 
  874.     and compatibles. Many application programs support fonts in PFB 
  875.     format, and refer to them as ``downloadable''. 
  876.  
  877.     Macintosh uses a radically different binary storage format than PC. 
  878.     See below for some details. 
  879.  
  880.     PFB files usually appear in several sections, each section preceded 
  881.     by a binary header containing the type of the section (ASCII, 
  882.     binary, or end of file) and the length of the section. Because of 
  883.     the presence of the binary section headers, and the possible 
  884.     presence of binary data sections, PFB files cannot in general be 
  885.     sent directly to a PostScript printer. Application programs like 
  886.     dvips which use fonts in PFB format unpack the font into ASCII 
  887.     format before sending it to the printer. If you would like to use a 
  888.     font which is in PFB format, you must unpack the font to make a PFA 
  889.     (Printer Font ASCII) file. Adobe Systems supply a font downloader 
  890.     for PC's which turns the PFB format into PFA format on the fly as 
  891.     it's being downloaded. 
  892.  
  893.     ``PFA'' stands for Printer Font ASCII, which is the unpacked 
  894.     version of a PFB file. In PFB, the data is stored as-is. In a PFA, 
  895.     any binary data present in a former PFB file is stored as ``ascii 
  896.     hex''--meaning each byte of binary data is turned into two ASCII 
  897.     characters representing the hexdecimal value. 
  898.  
  899.     Once you have the PFA file, just send it to the printer ahead of 
  900.     your file, and use the font like any other. There are several 
  901.     programs which can do the conversion from PFB to PFA for you. Try 
  902.     t1utils. 
  903.  
  904.     Details of the PFB format can be found in Adobe Technical Note # 
  905.     5040, ``Supporting Downloadable PostScript Fonts''. 
  906.  
  907.  
  908.     4.2 How does Macintosh Store PostScript Fonts? 
  909.  
  910.     To start off understanding how Macintosh stores PostScript fonts, 
  911.     first you need to know that a Macintosh file consists of two 
  912.     different parts, called ``forks''. The two forks of a Macintosh 
  913.     file are called the ``resource fork'' and the ``data fork''. 
  914.  
  915.     The data fork normally contains the data of the file. In the case 
  916.     of a text editor, for instance, the data fork contains the text. 
  917.  
  918.     The resource fork contains system (resource) information about the 
  919.     file: who owns the file, its icon maybe, and other information. The 
  920.     various bits of information in the resource fork are contained in a 
  921.     complex structure. One of the items is a resource map, detailing 
  922.     the different kinds of resources and their positions in the 
  923.     resource fork. 
  924.  
  925.     The reason you need to know all this is because PostScript Type 1 
  926.     fonts are stored in the resource fork of Macintosh files. Why this 
  927.     was done is a historical mystery now, because the information could 
  928.     just as easily have been stored in the data fork in a format 
  929.     similar to PFB, and unpacking fonts would have been a whole lot 
  930.     easier. 
  931.  
  932.     PostScript Type 1 fonts are stored in resources with the name 
  933.     POST''. If you aren't familiar with the layout of resource forks, 
  934.     study the ``Resource Manager'' chapter of the Inside Macintosh 
  935.     books. Details of Macintosh PostScript Type 1 storage format can be 
  936.     found in Adobe Technical Note # 5040, ``Supporting Downloadable 
  937.     PostScript Fonts''. The information in the Adobe Technical Note is 
  938.     incomplete in the sense that you need to understand the layout of 
  939.     Macintosh resource forks to make sense of the information. 
  940.  
  941.     In the majority of cases, you can assume that the POST resources 
  942.     are stored contiguously in the resource fork. Unfortunately, there 
  943.     are a few cases where this isn't true, and the resulting PFA file 
  944.     will be incorrect. 
  945.  
  946.     POST resources occur in five types. Type 0 are comments. Type 1 are 
  947.     ASCII data. Type 2 are binary data. Type 3 are end of this font 
  948.     program. Type 4 means that the remainder of this font appears in 
  949.     the data fork of the file! Type 5 means end of file. 
  950.  
  951.     Having talked about PostScript Type 1 fonts being stored in the 
  952.     resource fork, why is there a case where the font comes out of the 
  953.     data fork? Some PostScript Type 3 fonts are stored in this manner. 
  954.  
  955.  
  956.     4.3 How can I convert a PostScript font to TeX's PK format? 
  957.  
  958.     Use ps2pk or try out the GNU font utilities in fontutils. 
  959.  
  960.  
  961.     4.4 Why are Adobe fonts hidden? 
  962.  
  963.     In PostScript level 1, Adobe's fonts were hidden because they 
  964.     didn't want people pirating copies instead of paying for them. 
  965.     That's why you can't do a pathforall on a charpath. 
  966.  
  967.     PostScript Level Two has removed the restriction, in the words of 
  968.     the new Red Book, ``for most fonts''. There will still be some 
  969.     vendors who will want to restrict access. Japanese font vendors, 
  970.     for example, are concerned about piracy -- given the work that goes 
  971.     into an 8,000-character Kanji font. 
  972.  
  973.  
  974.     4.5 How do I get bitmap representations of Adobe fonts? 
  975.  
  976.     On the IBM PC, use the Font Foundry program included with the font. 
  977.     If you don't have it, contact Adobe for an upgrade. 
  978.  
  979.  
  980.     4.6 What are some good ftp sites for fonts? 
  981.  
  982.   
  983.   ftp.cs.umb.edu
  984.   sumex-aim.stanford.edu
  985.   archive.umich.edu
  986.   ftp.cica.indiana.edu    /pub/pc/win3/fonts
  987.   colonsay.dcs.ed.ac.uk   /pub/postscript/fonts
  988.   
  989.   
  990.   For the NeXT platform, fonts are available on the NeXT-FTP-archives,
  991.           sonata.cc.purdue.edu :/pub/next/graphics/fonts
  992.           fiasko.rz-berlin.mpg.de :/pub/next/fonts
  993.   
  994.     For Macintosh, look in sumex-aim.stanford.edu, 
  995.     mac.archive.umich.edu, and ftp.cs.umb.edu (192.12.26.23), in 
  996.     pub/tex/ps-screenfonts.tar.Z. 
  997.  
  998.     Color PostScript samples and many other PostScript programs are 
  999.     available from irisa.irisa.fr. 
  1000.  
  1001.  
  1002.     4.7 How can I re-encode a font? 
  1003.  
  1004.     See ddev.ps for an example for code that does this. You can find it 
  1005.     by ftp to wilma.cs.brown.edu:pub/postscript/ddev.ps. 
  1006.  
  1007.  
  1008.     4.8 What's the difference between a Type 1 and a Type 3 font? 
  1009.  
  1010.     The Type 1 font format is a compact way of describing a font 
  1011.     outline using a well-defined language that can be quickly 
  1012.     interpreted. The language contains operations to provide the 
  1013.     rasterizer with additional information about a character, known as 
  1014.     hints. The hints are additional information which describes how to 
  1015.     adjust the representation of the character to make it look good 
  1016.     when the font size is small compared to the device resolution. The 
  1017.     Type 1 font format is defined in the book ``The Adobe Type 1 Font 
  1018.     Format'', also known as the black book, for the colors on its 
  1019.     cover. 
  1020.  
  1021.     The Type 1 font format has nothing to do with TrueType, which is 
  1022.     another font format defined by Apple. The Type 1 font format has 
  1023.     been around quite a while, and is used on a wide variety of 
  1024.     platforms to obtain scalable fonts. 
  1025.  
  1026.     Most clone interpreters will not have Adobe's proprietary rendering 
  1027.     technology which interprets font hints to improve the appearance of 
  1028.     fonts shown at small sizes on low-resolution devices. The 
  1029.     exceptions (PowerPage and UltraScript) have their own hint 
  1030.     interpreters. 
  1031.  
  1032.     The Type 3 font format is a way of packaging up PostScript 
  1033.     descriptions of characters into a font, so that the PostScript 
  1034.     interpreter can rasterize them. 
  1035.  
  1036.     It is easier to create a Type 3 font program by hand than to create 
  1037.     the corresponding Type 1 font program. Type 3 font programs have 
  1038.     access to the entire PostScript language to do their imaging, 
  1039.     including the 'image' operator. They can be used for bitmapped 
  1040.     fonts, although that is certainly not a requirement. The Type 3 
  1041.     font format contains no provisions for 'hinting', and as such Type 
  1042.     3 font programs cannot be of as high a quality at low resolutions 
  1043.     as the corresponding Type 1 font program. 
  1044.  
  1045.     Both formats are scalable formats, and both can be run on any 
  1046.     PostScript interpreter. However, because of the requirement that a 
  1047.     Type 3 font program have a full PostScript interpreter around, Type 
  1048.     3 font programs cannot be understood by the Adobe Type Manager. 
  1049.     Only Type 1 font programs can. 
  1050.  
  1051.     Why bother making a font that's just made up of bitmaps? Once a 
  1052.     character from a font has been rendered, the bitmap will be saved 
  1053.     in a cache, and another instance of the same character at the same 
  1054.     size and orientation can be quickly drawn without recalculation. 
  1055.  
  1056.     Because of Adobe Type Manager's wide availability on a large number 
  1057.     of platforms (PC, Mac, and Unix), the Type 1 font format makes an 
  1058.     excellent cross-platform scalable font standard. 
  1059.  
  1060.  
  1061.     4.9 What vendors sell fonts for PostScript printers? 
  1062.  
  1063.     PostScript font vendors are many and varied. Here is a partial 
  1064.     list. 
  1065.  
  1066.  
  1067.  
  1068.     Adobe Systems 
  1069.       sells a variety of fonts. With the huge number of third-party 
  1070.       Type 1 vendors, in recent years Adobe have specialized in 
  1071.       creating their own ``Adobe Originals'' -- high-quality fonts, 
  1072.       some of which are their renditions of classic faces (Adobe 
  1073.       Garamond) and some of their own devising (Stone, Utopia, ...). 
  1074.       Adobe Systems, 1585 Charleston Road, Mountain View, CA 94039. 
  1075.       (415) 961-4400 
  1076.  
  1077.  
  1078.     AGFA Compugraphic, 
  1079.       90 Industrial Way, Wilmington, Massachusetts 01887. (508) 
  1080.       658-5600. 
  1081.  
  1082.  
  1083.     Bear Rock Technologies 
  1084.       specializes in bar code fonts. 4140 Mother Lode Drive, Suite 100, 
  1085.       Shingle Springs California 95682. Toll-free sales: (800) 
  1086.       232-7625. International: (916) 672-0244. FAX: (916) 672-1103. 
  1087.       E-mail: info@bearrock.com. 
  1088.  
  1089.  
  1090.     Bitstream, 
  1091.       Athenaeum House, Cambridge, MA 02142. (617) 497-6222. 
  1092.  
  1093.  
  1094.     Callifonts 
  1095.       has a really nice looking set of calligraphy typefaces. P.O. Box 
  1096.       224891, Dallas, TX 75222. (214) 504-8808. 
  1097.  
  1098.  
  1099.     Casady and Greene, 
  1100.       22734 Portola Drive, Salinas, CA 93908. (408) 484-9228. 
  1101.  
  1102.  
  1103.     Ecological Linguistics, 
  1104.       specializes in non-Roman alphabets. Ecological Linguistics, P. O. 
  1105.       Box 15156, Washington D. C. 20003. 
  1106.  
  1107.  
  1108.     Emigre Graphics 
  1109.       4475 ``D'' Street / Sacramento CA 95819 (800) 944 9021 ] Over 70 
  1110.       faces, all PostScript Type 1 ATM compatible, including the 
  1111.       omnipresent Modula and infamous Template Gothic. Almost all faces 
  1112.       are ``must haves'' for graphic designers. Call for free catalog. 
  1113.  
  1114.  
  1115.     The Font Company 
  1116.       12629 North Tatum Boulevard, Suite 210, Phoenix Arizona 85032. 
  1117.       (602) 998-9711. 
  1118.  
  1119.  
  1120.     Image Club, 
  1121.       # 5 1902 11th St Southeast, Calgary, Alberta T2G 2G2, Canada. 
  1122.       (403) 262-8008. 
  1123.  
  1124.  
  1125.     Lanston 
  1126.       specializes in display faces. 
  1127.  
  1128.  
  1129.     Letraset 
  1130.       specializes in fancy kinds of script fonts, Letraset, 40 
  1131.       Eisenhower Drive, Paramus, New Jersey 07652. (201) 845-6100 
  1132.  
  1133.  
  1134.     Linguists Software 
  1135.       specializes in non-Roman alphabets (Farsi, Greek, Hangul, Kanji, 
  1136.       etc.) Linguists Software, P. O. Box 580, Edmonds, Washington 
  1137.       98020-0580. (206) 775-1130. 
  1138.  
  1139.  
  1140.     Monotype, 
  1141.       53 West Jackson Boulevard, Suite 504, Chicago, IL 60604. 
  1142.  
  1143.  
  1144.     Page Studio Graphics, 
  1145.       Chandler, Arizona, specialize in symbols fonts such as Mac icons, 
  1146.       keyboards, and others, Page Studio Graphics, 3175 North Price 
  1147.       Road, # 1050, Chandler, Arizona 85224. (602) 839-2763. 
  1148.  
  1149.  
  1150.     Software Complement 
  1151.       specializes in creating logo fonts. 8 Penn Avenue, Metamoras, 
  1152.       Pennsylvania 18366 USA. 
  1153.  
  1154.  
  1155.     The Font Company 
  1156.  
  1157.  
  1158.     TreacyFaces 
  1159.  
  1160.  
  1161.     Trilithon Software, 
  1162.       Portola Valley, California can supply fonts from the Adobe Type 
  1163.       library for NEXTSTEP. If you're working on NEXTSTEP, getting 
  1164.       fonts in the correct form with ancillary information and 
  1165.       downloaders and such is important. You can convert Mac fonts to 
  1166.       NEXTSTEP (PFA) format, but NEXTSTEP demands AFM files as well, 
  1167.       and many Mac/PC font vendors omit AFM files because Mac/PC apps 
  1168.       don't use them. For Adobe fonts for NEXTSTEP, save yourself a lot 
  1169.       of hassle by getting the fonts from Trilithon. 
  1170.  
  1171.       If you want non-Adobe fonts for NEXTSTEP, Trilithon Software can 
  1172.       supply font conversion tools to go from Macintosh or PC format to 
  1173.       NEXTSTEP format. The conversion tools generate AFM files if none 
  1174.       are supplied with the fonts, and sanity check AFM files for 
  1175.       correctness when they are supplied. 
  1176.  
  1177.       Two Ohlone, Portola Valley, California 94028 USA. Telephone: 
  1178.       (415) 325-0767, FAX: (415) 325-0768. E-Mail: info@trilithon.com. 
  1179.  
  1180.  
  1181.     URW 
  1182.       supplies high-quality fonts at low prices. They are also the 
  1183.       creators of the top of the line font creation and editing 
  1184.       software called Ikarus. URW, 4 Manchester Street, Nashua, New 
  1185.       Hampshire 03060. (603) 882-7445. 
  1186.  
  1187.  
  1188.     Y and Y Software 
  1189.       , 106 Indian Hill, Carlisle Massachusetts 10741 USA. (508) 
  1190.       371-3286. Sells a Font Metric Manipulation Package for DOS with 
  1191.       lots of interesting utilities. 
  1192.  
  1193.     Many more font vendors exist. Look in magazines and other sources. 
  1194.     Check the Usenet newsgroup comp.fonts. Look in U & lc, published by 
  1195.     ITC, for long lists of vendors. 
  1196.  
  1197.  
  1198.     4.10 What are ATM fonts? 
  1199.  
  1200.     There has been a rash of misunderstanding about the nature of Type 
  1201.     1 fonts and what people call ATM fonts. ATM fonts are Adobe Type 1 
  1202.     fonts. ATM stands for Adobe Type Manager -- a utility to render 
  1203.     smooth characters on Macintosh and PC screens, from font outlines 
  1204.     (Type 1 fonts) instead of using bitmap fonts. In one sense, there's 
  1205.     no such thing as an ``ATM font'' -- ATM interprets Type 1 fonts, so 
  1206.     there's no need to create a new name. A correctly constructed Type 
  1207.     1 font can be interpreted by ATM. 
  1208.  
  1209.  
  1210.     4.11 What are Multiple Master Fonts? 
  1211.  
  1212.     Multiple Master Fonts are an extension to the Adobe font format. 
  1213.     providing the ability to interpolate smoothly between several 
  1214.     ``design axes'' from a single font. Design axes can include weight, 
  1215.     size, and even some whacko notions like serif to sans serif. 
  1216.     Adobes' first Multiple Master Font was Myriad -- a two-axis font 
  1217.     with WEIGHT (light to black) on one axis, and WIDTH (condensed to 
  1218.     expanded) along the other axis. In the case of Myriad, there are 
  1219.     four ``polar'' designs at the ``corners'' of the design space. The 
  1220.     four designs are light condensed, black condensed, light expanded, 
  1221.     and black expanded. 
  1222.  
  1223.     Given polar designs, you can set up a ``weight vector'' which 
  1224.     interpolates to any point within the design space to produce a 
  1225.     unique font for a specific purpose. So you can get a ``more or less 
  1226.     condensed, somewhat black face''. 
  1227.  
  1228.  
  1229.     4.12 Do I need a Level Two printer to use Multiple Master Fonts? 
  1230.  
  1231.     No -- Multiple Master Fonts can be used on any PostScript printer. 
  1232.     Multiple Master Fonts need a new PostScript operator known as 
  1233.     makeblendedfont. The current crop of Multiple Master Fonts supply 
  1234.     an emulation of this operator so the printer doesn't need this 
  1235.     operator. 
  1236.  
  1237.     A short tutorial on Multiple Master Fonts and makeblendedfont 
  1238.     appears in PostScript by Example, by Henry McGilton and Mary 
  1239.     Campione, published by Addison-Wesley. 
  1240.  
  1241.  
  1242.     4.13 What are Type 4 fonts? 
  1243.  
  1244.     Type 4 fonts are actually Type 3 fonts which contains a Type 1 
  1245.     font. They're stored on hard disk in a special way to save space 
  1246.     when they're loaded into printer RAM by findfont. Your interpreter 
  1247.     must have the extra PostScript operator CCrun to handle Type 4 
  1248.     fonts. They are usually used for Kanji (Japanese) characters. 
  1249.  
  1250.  
  1251.     4.14 What are Type 5 fonts? 
  1252.  
  1253.     Type 5 fonts are actually Type 1 fonts, but stored in printer ROM 
  1254.     in a special compressed format. They're also known as CROM fonts 
  1255.     (for Compressed ROM fonts). The contents of the CharStrings entries 
  1256.     in Type 5 will probably be different from Type 1. 
  1257.  
  1258.  
  1259.     4.15 Is there an editor for Type 1 Fonts? 
  1260.  
  1261.     Fontographer for the Macintosh and MS-Windows under DOS is 
  1262.     available from Altsys Corporation, 269 West Renner Road, 
  1263.     Richardson, Texas 75080 USA. (214) 680-2060. 
  1264.  
  1265.     Ikarus-M is availble for the Macintosh from URW, Harksheider 
  1266.     Strasse 102, 2000 Hamburg 65, GERMANY. (040) 60 60 50 Or URW 
  1267.     Software and Type, 4 Manchester Street, Nashua, New Hampshire 
  1268.     03060. (800) 229-8791 in USA. (603) 882-7445 otherwise. 
  1269.  
  1270.     Acknowledgments 
  1271.  
  1272.  
  1273.     This FAQ was compiled based heavily on the contributions of and 
  1274.     with the help of Henry McGilton, Dick Dunn, Howard Gayle, Dan 
  1275.     Carrigan, Carl Orthlieb, Ed Garay, Robert Lerche, Bruno Hall, Tom 
  1276.     Epperly, and Chris Lewis. 
  1277.  
  1278.     Also thanks to contributors Paul Balyoz, Karl Berry, Jerry Black, 
  1279.     Charles Cashion, Jim DeLaHunt, Leonard Hamey, Chris Herborth, Steve 
  1280.     Kinzler, Bill Lee, Timo Lehtinen, Carl Lydick, Otto Makela, Bill 
  1281.     Pringle, Tony Valsamidis, and Jamie Zawinski. 
  1282.  
  1283.     Special thanks to Ken Porter, who originally compiled and organized 
  1284.     this FAQ, and to Jon Monsarrat who built it from there. 
  1285.  
  1286.   
  1287.   
  1288.   Ver  Date     Reason
  1289.   ----------------------------------------------------------------
  1290.   1.00 12-18-90 Creation by Ken Porter
  1291.   1.06  5-29-91 expanded on EPS explanation, general updates
  1292.   2.00 10-25-92 Brought up to date and expanded, by Jon Monsarrat
  1293.   2.1   5-21-93 Revised because of new comp.sources.postscript group.
  1294.   2.2  12-26-93 Finally incorporated all the '93 comments and suggestions.
  1295.   2.3  07-07-94 Incorporated early '94 comments and suggestions.  
  1296.   2.4  03-04-95 Mostly changed references to maintainer (ab).  
  1297.   
  1298.   
  1299.     This FAQ is copyright (C) 1995 by Allen Braunsdorf. Permission is 
  1300.     granted to freely edit and distribute as long as this copyright 
  1301.     notice is included. 
  1302.  
  1303.     This document was written with the LaTeX language and formatted by 
  1304.     LameTeX, the PostScript hacker's LaTeX. 
  1305.