Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!zaphod.mps.ohio-state.edu!ncar!boulder!gore!jacob From: jacob@gore.com (Jacob Gore) Newsgroups: comp.sys.next Subject: What dict can font definition store things in? Message-ID: <130093@gore.com> Date: 10 Aug 90 22:58:48 GMT Reply-To: jacob@gore.com (Jacob Gore) Organization: Gore Enterprises Lines: 28 I am trying to get a third-party type 3 font to work, and I ran into a problem. The font defines a dictionary (let's call it D) and tucks it away in userdict. It stores in D things such as routines that BuildChar calls and the encoding. If I prepend the font definition to the Postscript program that uses it, everything prints OK. But if I just print the program, I get "D undefined" errors. I suspect that userdict gets reset between the automatic sending of the font definition to DPS and the sending of the program to DPS. Is this correct? If so, is there a dictionary that can be used instead of userdict? I tried using nextdict, which (according to the Digital Librarian) is only documented in Chapter 4 of the Reference Manual ("Drawing"), where it is described as "a modifiable dictionary containing any dynamic information common to all applications, such as downloaded packages." Unfortunately, that didn't work: "nextdict begin /D 40 dict def" returns an invalidaccess error on def. Any ideas? Jacob -- Jacob Gore Jacob@Gore.Com boulder!gore!jacob