aslam@m.cs.uiuc.edu (11/11/89)
Does anyone have a GKS-style text extent routine that returns text extent
parallelogram for *Postscript* fonts? The AFM files are now available.
The GKS C-binding routine is set up as follows:
ginqtextextent(ws_id, position, str, extent)
Gint ws_id;
Gpoint position;
Gchar *str;
Gextent *extent;
{
..
/* your code goes here */
}
Gpoint is concatenation point. Gextent is struct {Gpoint ll, lr, ur, ul}. The
text extent routine uses the current font, precision, character spacing,
character expansion factor, and various character attirbutes (height, width,
up vector, base vector, text path and text alignment.) If the routine is
standalone, it could be given all of these attributes.
Sohail Aslam
Department of Computer Science
University of Illinois
arpa aslam@cs.uiuc.edu
usenet uiucdcs!aslam
bitnet aslam@uiucdcs.BITNET