🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1759

Re: Font Metric Files + Routines?

#1759
From: Chris Lewis
Date: Thu, 13 Aug 1992 14:56
24 lines
1826 bytes
In article <hess.713705522@swt1> hess@swt1.informatik.uni-hamburg.de (Hauke Hess) writes:
>Hi,
>
>I have to write a PostScript output routine for a X11R5 graphical application.
>In this application there is an extensive use for font metrics as supplied by
>the function XTextWidth(). Sadly enough this information is wrong for PostScript
>fonts rendered by the printer, so I have to write a routine that gets the font
>metrics from the adobe font metric files and supllies its own XTextWidth().

If all you need is the width of the character, there are several utilities
that can retrieve them for you.  One particular example is "psdtwid" in
psroff 3.0.  psdtwid is a program that you download to a printer, and the
printer will spit shars back to the computer (if you're using serial
ports at least) that contain ditroff-width-table format width tables.
This should be scalable/transformable to what you want.  Psroff 3.0 also
has other utilities for parsing these things - a start on what you
may need.

tpscript also has a similar utility (where did you think I got the idea and
some of the code ;-)

Psroff 3.0 also has a program called "showfont" which, when send to the
printer, will print out a nicely formatted table of characters in the font
you request, including font metric information.
Technical Details
Message-ID: <1992Aug13.145634.9262@bwdls61.bnr.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!news.utdallas.edu!corpgate!bnrgate!bwdls61!bwdlh118!clewis
References: <hess.713705522@swt1>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!news.utdallas.edu!corpgate!bnrgate!bwdls61!bwdlh118!clewis
From: clewis@bwdlh118.bnr.ca (Chris Lewis)
Subject: Re: Font Metric Files + Routines?
Message-ID: <1992Aug13.145634.9262@bwdls61.bnr.ca>
Keywords: PFM, font metrics
Sender: usenet@bwdls61.bnr.ca (Use Net)
Nntp-Posting-Host: bwdlh118
Organization: Bell Northern Research
References: <hess.713705522@swt1>
Distribution: comp
Date: Thu, 13 Aug 1992 14:56:34 GMT
Lines: 24