Article View: comp.lang.postscript
Article #8581PostScript utility for font changes, subscripts within string
From: Martin R. Wittmann
Date: Mon, 18 Dec 1989 18:28
Date: Mon, 18 Dec 1989 18:28
20 lines
1541 bytes
1541 bytes
Does anyone have or know of a set of PostScript procedures which will print strings which have encoded within them font changes, superscript and subscripts, etc., and also calculate the lengths of same? I am writing some PS plotting routines (and modifying those from the S language) and wish to be able to label the plots with strings containing Greek symbols, simple super- and subscripts, etc. It would be easiest to do this by sending a single string for the label, with the font changes and super/subscript encoded within it in some fashion. The string would be printed with a substitute for the "show" operator which would properly decode the string. I also need to be able to calculate the string width, so that I can center or right justify it. I have written a simple set of procedures to do all of the above EXCEPT calculate the string width, but they are by no means elegant, and I was wondering if anyone has worked this out before. Thanks. Please email replies! Martin Wittmann mrwittma@phoenix.princeton.edu
Technical Details
Message-ID:
<12294@phoenix.Princeton.EDU>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!udel!princeton!phoenix!mrwittmaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!udel!princeton!phoenix!mrwittma From: mrwittma@phoenix.Princeton.EDU (Martin R. Wittmann) Newsgroups: comp.lang.postscript Subject: PostScript utility for font changes, subscripts within string Message-ID: <12294@phoenix.Princeton.EDU> Date: 18 Dec 89 18:28:03 GMT Reply-To: mrwittma@phoenix.Princeton.EDU (Martin R. Wittmann) Distribution: na Organization: Princeton University, NJ Lines: 20