home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / postscript / faq.part1-4 next >
Encoding:
Text File  |  1995-07-25  |  54.8 KB  |  1,403 lines

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