Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news.babsi.de!open-news-network.org!news2.open-news-network.org!.POSTED!not-for-mail From: Mark Carroll Newsgroups: comp.lang.postscript Subject: Re: Showing text along a path Date: Tue, 24 Sep 2013 09:02:35 +0100 Organization: none Lines: 14 Message-ID: <87ppryprz8.fsf@ixod.org> References: <322836da-5d55-4454-800b-c1d85da13b4d@googlegroups.com> NNTP-Posting-Host: home.ixod.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news2.open-news-network.org 1380009755 6949 82.71.47.217 (24 Sep 2013 08:02:35 GMT) X-Complaints-To: abuse@open-news-network.org NNTP-Posting-Date: Tue, 24 Sep 2013 08:02:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:hpbE6qOW3tu6AovxLpXMFQqVh4w= Xref: csiph.com comp.lang.postscript:1645 luser- -droog writes: > /Courier 10 selectfont %... must have a font set > (str) false charpath > flattenpath pathbbox % left bottom right top > 3 2 roll sub % left right top-bottom > 3 1 roll exch sub % top-bottom right-left > exch % width height Out of curiosity, can you also ask for the font metrics and find out the height without actually processing the path? (It's been a while since I looked at font stuff.) -- Mark