Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!boulder!pikes!csm9a!dhale From: dhale@csm9a.UUCP (Dave Hale) Newsgroups: comp.sys.next Subject: printPSCode: and stringwidth Keywords: printing NeXT stringwidth printPSCode Message-ID: <1424@csm9a.UUCP> Date: 14 Apr 89 19:46:50 GMT Organization: Colorado School of Mines Lines: 10 I am trying to use the printPSCode: method to print a View. The drawSelf:: method for this View contains a call to PSstringwidth(), which I am using to center some text in the View. The screen looks fine - text is centered as though PSstringwidth() is working properly. But printPSCode: produces the "malformed PostScript" error message. By examining the npcomm.verbatim file in /tmp, I noted that this error during printing is related to using PSstringwidth(). When I remove the PSstringwidth() calls, printing works fine. Any ideas, fixes, or workarounds?