🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #7955

How to obtain complete(!) font metrics of built in fonts

#7955
From: Thomas Oeser
Date: Thu, 09 Feb 1989 10:48
47 lines
2266 bytes
There are several PostScript examples around that provide information about the
metrics of a selected font.

But all of these scripts fail, if the following information is required:

	1) What is the distance between the base line and the top line?
	2) What is the distance between the base line and the cap line?
	3) What is the distance between the base line and the half line?
	4) What is the distance between the base line and the bottom line?

Definitions:
	
	base line:	line along which the characters are normally positioned.
	top line:	line parallel to base line above which no parts of
			characters extend.
	cap line:	line parallel to base line that forms the upper
			boundary for most of the upper case letters.
	half line:	line parallel to base line that forms the upper
			boundary for most of the lower case letters.
	bottom line:	line parallel to base line beyond which no parts of
			characters extend.
	
You may question, why we need such information? Mostly for layout purposes,
where text strings are to be vertically aligned.

Can anybody help us getting this information with PostScript means?

We tried already "FontBBox" in "FontDictionary". Does this give us at least top
and bottom line? Anyway, we need the other information too.

Thanks in advance

Thomas Oeser


------------------------------------------------------------------------------
ARPA:		kap121@ztivax.siemens.com
UUCP:		kap121@ztivax.uucp (may work only in Europe...)
Postal mail:	Siemens AG, K Sys Ap 121, Otto-Hahn-Ring 6, P.O. Box 830951,
		D-8000 Munich 83, West Germany
Phone:		+ 49 (89) 636-47537
FAX:		+ 49 (89) 636-41477

Disclaimer:
The opinions expressed are my own, and should not be attributed to anyone else
living or dead.
------------------------------------------------------------------------------
Technical Details
Message-ID: <594@ztivax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!unido!ztivax!kap121

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!unido!ztivax!kap121
From: kap121@ztivax.UUCP (Thomas Oeser)
Newsgroups: comp.lang.postscript
Subject: How to obtain complete(!) font metrics of built in fonts
Keywords: font metrics
Message-ID: <594@ztivax.UUCP>
Date: 9 Feb 89 10:48:39 GMT
Organization: Siemens AG in Munich, W-Germany
Lines: 47