CompuServe Messages

#ReEncode bug

    08-Nov-88 16:04:16
Sb: #ReEncode bug
Fm: Lenox H. Brassell 73707,1427
To: all
I am using the ReEncode procedure which I found in the file PS-17C.TXT in DL4. For reasons I don't understand, the new font which I make will not work if the new Encoding vector is too different from the original one. Consider the following re-encoding fonts: /VeryDifferent [256 {/.notdef} repeat] def VeryDifferent 32 /Aacute put /Courier /Courier-D VeryDifferent ReEncode /VerySimilar 256 array def StandardEncoding VerySimilar copy VerySimilar 32 /Aacute put /Courier /Courier-S VerySimilar ReEncode The Courier-D font will cause an "invalidfont" error when I try to show the "Aacute" character, but the Courier-S font will do what is desired. That is, /Courier-S findfont 12 scalefont setfont 72 720 moveto ( ) show % This works. /Courier-D findfont 13 scalefont setfont % Force a Cache Miss 72 720 moveto ( ) show % This fails. Can anyone tell me why the /Courier-D font fails? –Lenox