🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #3626

get current font height or scalefont factor

#3626
From: Andy Sun Anu-guest
Date: Sat, 10 Nov 1990 23:54
22 lines
1510 bytes
Hi,

This might be a trivial question to ask but I just couldn't find the answer
on the red and blue book. Is there a command to return the current
scale factor a font used in scalefont? Or better, is there a command that
will return the curent height of a font? My faith in PostScript tells me
that if they have stringwidth, they should have something like stringheight,
but I couldn't find anything similar.

I am writing something that needs to know the maximum character height of
a scaled font. Ideally I want to get the maximum height of a string of a
particular font, which is a local maximum depending on the characters (i.e.
aero will have a smaller font height than AERO). Right now I am defining the 
scale explictly as a variable so that I can refer to it later but that's
not flexible/intelligent enough to do the job. Any help will be appreciated.

Andy

_______________________________________________________________________________
Andy Sun                            | Internet: sun@me.utoronto.ca
University of Toronto, Canada       | UUCP    : ...!utai!me!sun
Dept. of Mechanical Engineering     | BITNET  : sun@me.utoronto.BITNET
Technical Details
Message-ID: <90Nov10.185352est.20181@me.utoronto.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!me!sun

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!me!sun
Newsgroups: comp.lang.postscript
From: sun@me.utoronto.ca (Andy Sun Anu-guest)
Subject: get current font height or scalefont factor
Message-ID: <90Nov10.185352est.20181@me.utoronto.ca>
Organization: U of Toronto, Dept. of Mechanical Engineering
Date: 10 Nov 90 23:54:08 GMT