🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fa.laser-lovers
Article #984

PostScript VM management for TEX output

#984
From: laser-lovers
Date: Fri, 26 Jul 1985 23:28
31 lines
1957 bytes
From: Brian Reid <reid@Glacier>

Not being a TEX user myself, I'm not ready to jump in and fix this
problem, but those of you who are working on complicated
font-space-management PostScript software might want to study carefully
the following example, and remember that the bitmaps in bitmap fonts
are stored in strings, and remember further that the "getinterval"
operator will construct a new string descriptor pointing to a piece of
existing string body. This will allow you to construct a large buffer in
string space, whose contents will not be changed by save/restore, and
which can be managed using an allocate/free protocol like any other
buffer pool. 

%!
% PostScript program to show an obscure semantic property of strings in
% the presence of save/restore. See the looseleaf (first edition) PS
% manual, page 94, section 3.4.11 (Virtual Memory Operators), second
% paragraph, lines 5 and 6.

/ss (Prunes taste wonderful) def	% define two sample strings
/dd (Oranges are sour.) def
dd					% push dd body on the stack
/saveobj save def			% save the world
/ss (Prunes are awful) def		% redefine ss
/dd (Oranges are lemons) def		% redefine dd
  0 (Oranges are sweet) putinterval 	% use stacked dd body
saveobj restore				% restore the world
/Courier findfont 10 scalefont setfont	% print the answers
100 600 moveto ss show
100 588 moveto dd show
showpage
Technical Details
Message-ID: <1447@uw-beaver>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ucbvax!decvax!tektronix!uw-beaver!laser-lovers

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site uw-beaver
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ucbvax!decvax!tektronix!uw-beaver!laser-lovers
From: laser-lovers@uw-beaver
Newsgroups: fa.laser-lovers
Subject: PostScript VM management for TEX output
Message-ID: <1447@uw-beaver>
Date: Fri, 26-Jul-85 19:28:48 EDT
Article-I.D.: uw-beave.1447
Posted: Fri Jul 26 19:28:48 1985
Date-Received: Wed, 31-Jul-85 01:25:24 EDT
Sender: daemon@uw-beaver
Organization: U of Washington Computer Science
Lines: 31