🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.ghostscript.bug
Article #70

'random fonts' program

#70
From: L. Peter Deutsch
Date: Tue, 07 Apr 1992 15:56
26 lines
1467 bytes
In <9204070555.AA27697@raisin-nut>
<TOBY.92Apr6182343@r3h.cs.man.ac.uk>, Toby Howard writes:

> The following 'random fonts' program (from The PostScript language
> journal 2/1) makes GhostScript 2.4 (3/25/92) blow up with:
> 
> Initializing... done.
> Error: /undefinedresult in --mod--
> Operand stack:
> []  1416878226  0

The problem is that the program assumes (contrary to the warning on
p. 421 of the Second Edition of the PostScript Language Reference
Manual) that all available fonts appear as entries in FontDirectory.
This is the case for most printers, but it is not part of the
PostScript language definition.  Ghostscript, in particular, loads
all fonts from disk dynamically; they don't appear in FontDirectory
until they've been loaded.

You can work around this problem by invoking
	loadallfonts
before running the program.

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; 415-322-0103 8-9 AM M-F/msg
	    "Implementation is the sincerest form of flattery."
Technical Details
Message-ID: <9204070856.1.UUL1.3#5127@aladdin.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!aladdin.COM!ghost

Show Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!aladdin.COM!ghost
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: 'random fonts' program
Message-ID: <9204070856.1.UUL1.3#5127@aladdin.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 7 Apr 1992 15:56:14 GMT
Approved: bug-ghostscript@prep.ai.mit.edu
Lines: 28