Article View: comp.lang.postscript
Article #1649Re: backspaces in strings not working - help!!
From: Ned Batchelder
Date: Fri, 16 Mar 1990 00:16
Date: Fri, 16 Mar 1990 00:16
22 lines
1751 bytes
1751 bytes
> According to the red book (PostScript Language Reference Manual), page 23, > this should work. But when I send the file to our Apple LaserWrite II, > I get a space substituted for each \b. What's wrong??? Page 23 says that when PostScript gets the characters \ and b together while reading a string, it will put the ASCII BS character (decimal 8) into the string that it is building. [Well, it doesn't say that exactly, but that is what it meant]. And your string does have a backsapce character in it. Your problem is that your font doesn't know what the backspace character is, so it simply prints a space (actually, the .notdef glyph, which is usually the same as a space). It is possible to define a backspace glyph (that is, a glyph with no marks that has a negative width), but it only makes sense in a momospaced font. In a proportional font, there is no way to know what the width of the previous glyph was. In general, PostScript fonts do not implement the control characters. This includes tab, backspace, line feed, carriage return, etc. Ned Batchelder, Digital Equipment Corp., BatchelderN@Hannah.enet.DEC.com
Technical Details
Message-ID:
<9273@shlump.nac.dec.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!decwrl!shlump.nac.dec.com!hannah.enet.dec.com!batcheldernReferences:
<19059@shamash.cdc.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!decwrl!shlump.nac.dec.com!hannah.enet.dec.com!batcheldern From: batcheldern@hannah.enet.dec.com (Ned Batchelder) Newsgroups: comp.lang.postscript Subject: Re: backspaces in strings not working - help!! Message-ID: <9273@shlump.nac.dec.com> Date: 16 Mar 90 00:16:47 GMT References: <19059@shamash.cdc.com> Sender: newsdaemon@shlump.nac.dec.com Reply-To: batcheldern@hannah.enet.dec.com Distribution: usa Organization: Digital Equipment Corporation Lines: 22