Path: utzoo!utgpu!watserv1!watmath!att!rutgers!uwm.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!fozzie!stanley From: stanley@fozzie.phoenix.com (John Stanley) Newsgroups: comp.lang.postscript Subject: Re: Variable characters Keywords: font, character size Message-ID: <15N6q1w161w@fozzie.phoenix.com> Date: 16 Oct 90 22:25:23 GMT References: <21226@well.sf.ca.us> Organization: One Man Brand Lines: 24 shiva@well.sf.ca.us (Kenneth Porter) writes: > This is not true. stringwidth returns the change in current > point after a show of the specified string. For Roman > typefaces, only the x component is non-zero. The y component Only too true. I once wrote some ps functions to center strings on specified points. Y was always 0. > > If metric info is not available in the font dictionary, you can > use "charpath flattenpath pathbbox", but I think the resulting The results are in drawing coordinates. I.e. moving 1/2 the x value to the left will center the string l/r. Unfortunately, either charpath or flattenpath has problems with certain fonts (Courier is on of them) which prohibits its use. I forget which command is the problem, but it kept me from using my nice routines in a production environment. This is my signature. It doesn't contain my name at all!