Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!tomwest From: tomwest@utgpu.UUCP Newsgroups: comp.lang.postscript Subject: Underlining and character lengths Message-ID: <1987Oct27.134058.23182@gpu.utcs.toronto.edu> Date: Tue, 27-Oct-87 13:40:58 EST Article-I.D.: gpu.1987Oct27.134058.23182 Posted: Tue Oct 27 13:40:58 1987 Date-Received: Thu, 29-Oct-87 02:36:06 EST Reply-To: tomwest@gpu.utcs.toronto.edu (Tom West) Organization: University of Toronto Computing Services Lines: 29 Keywords: Underlining. Checksum: 10649 Summary: Is there an easy way to underline is postscript? I am adapting our word processor to a postscript engine. However, I am not sure how to handle underlines. Is there any easy way to know where or how to underline? We use a mono-spaced font (for the most part). Can one just draw a horizontal line of the appropriate length with the same vertical position as the characters? i.e. 100 100 moveto (Hello) show ! Using Courier 10 cpi 100 100 moveto 136 100 lineto stroke As well, if we decide to get sophisticated, we would want to use non-mono fonts. Is there anywhere that we can get the length of characters in the standard fonts (Times, Helvetica and Symbols)? Thanks in advance. -- Tom West BITNET: tomwest@utorgpu.bitnet, tomwest@gpu.utcs.utoronto Internet: tomwest@gpu.utcs.toronto.edu UUCP: tomwest@utgpu utzoo, yetti, harpo, mnetor \ cbosgd, deepthot, utoronto - !utgpu!tomwest ihnp4, lsuc, sfmin, vnr-vpa /