[comp.graphics] PHIGS Inquire Text Extent call

gilmore@vax1.acs.udel.EDU (Scott Gilmore) (02/08/90)

I am working on a PHIGS program and need to know the average character width
given a specific font, character height, expansion factor, and spacing.  The
version of PHIGS I am using right now (Template's FIGARO v1.25) does not
support an Inquire Text Extent call, so I want to write my own version for use 
until we upgrade to FIGARO+, which should have the actual routine.  At that 
time I will stop using my own version in favor of the real one.  I am 
programming in Fortran.

I have a copy of the official October 1987 ANSI PHIGS draft document.  The
functional description of the Inquire Text Extent call on Page 248 makes sense,
but I think the Fortran binding description is wrong.  For one thing, the
Fortran call shown on Page 122 of the PHIGS/FORTRAN ANS document does not
include the text font as an input argument, while the language-independent
functional description does (as it should).  Secondly, I find it hard to believe
that the output text extent requires two arrays of four elements each, as the
Fortran binding document says.

I would be grateful if someone who has a copy of the _final_ PHIGS/FORTRAN spec 
could mail me a description of the correct call and its arguments.  Thanks 
a million in advance.

---
Scott Gilmore                                   gilmore@vax1.acs.udel.edu
Mechanical Engineering and Center for Composite Materials, U. of Delaware