🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.postscript
1 messages
1 total messages Started by MarkMontague Wed, 30 Dec 1992 03:37
Printer fonts - help
#5856
Author: MarkMontague
Date: Wed, 30 Dec 1992 03:37
55 lines
2388 bytes
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.  |
+-------------------------------------------------------+
     
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads