home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.postscript
- Path: sparky!uunet!spool.mu.edu!umn.edu!umeecs!quip.eecs.umich.edu!plph
- From: plph@quip.eecs.umich.edu (MarkMontague)
- Subject: Printer fonts - help
- Message-ID: <1992Dec30.033715.1541@zip.eecs.umich.edu>
- Sender: news@zip.eecs.umich.edu (Mr. News)
- Organization: University of Michigan EECS Dept., Ann Arbor, MI
- Date: Wed, 30 Dec 1992 03:37:15 GMT
- Lines: 56
-
-
- I am posting the following for David Frenkiel. Please respond to him
- via email.
-
- Mark Montague
- plph@caen.engin.umich.edu
-
- -----------------------------------------------------------------------------
-
- From: dfl@math.tau.ac.il (David Frenkiel)
- Organization: School of Math & CS - Tel Aviv University , Tel Aviv , ISRAEL.
-
- < please post this for me under the subject header "Printer fonts - help" >
-
- Hi
-
- I need to find out whether or not a postscript printer has a certain
- font. In case it doesn't, I use a bitmap version of the font.
- Currently, I use a method I saw in the FAQ, which searches for the
- font in the FontDirectory, and defines a symbol to be equal either to
- the font, or to its bitmap version, according to the result of this
- search. There are two problems with this method:
-
- 1. It does not work for printers with disks.
- 2. Ghostview and ghostscript always fail on FontDirectory searches, so
- I get the default "ugly" font.
-
- If anyone knows how I can accomplish this in a different way, which
- bypasses these two problems, I'd appreciate an email response.
- I work on a system with a print spooler, so the printer can't
- talk back to me. Enclosed are the definitions I currently use.
-
- %% condfind uses one argument and returns true if it is a known font
- /condfind { dup FontDirectory exch known } def;
- %% altfind uses three arguments, and defines the middle one to be
- %% either the top argument, if it is a known font, else the bottom one.
- /altfind { condfind {def} {pop exch def } ifelse } def
-
- and after downloading a bitmap font called, e.g., bitmap100, which
- represents Symbol-Bold
-
- /bitmap100 /font100 /Symbol-Bold altfind
- font100 findfont ......
-
-
- Thanx
-
- David
-
- --
- +-------------------------------------------------------+
- | The white zone is 4 loading and unloading only. |
- | If you want to load or unload, go to the white zone. |
- +-------------------------------------------------------+
-
-
-