PEXTextExtent *PEXQueryTextExtents( Display *display, XID resource_id, unsigned int font_table_index, int path, double expansion, double spacing, double height, int halign, int valign, unsigned long count, PEXStringData *text )
An array of text extents; a null pointer if unsuccessful.
Invoke PEXQueryTextExtents to get the geometric extent and the concatenation point for each specified text string. The extent of a string is the smallest rectangle completely surrounding it.
The concatenation point is the position to place another string if the string is to be extended. The client may still need to apply a suitable modeling transformation to account for the character up vector.
If the resource identifier is a renderer or PHIGS workstation, then this function uses the text font table associated with the renderer or workstation. If the resource identifier is a text font lookup table, then this function uses it directly. The specified font_table_index provides the index of the entry that this function uses to get the font group. The first character set in the font group is used for all strings in text. If that font group does not define a font for character set 1, then the implementation substitutes the font for character set 1 of the default font group.
Stroke precision is assumed.
The extent and concatenation point of each string is computed independently of the other strings in the list.
If the selected font has no defined default glyph, then this function assumes undefined glyphs have all zero metrics.
The extent data is returned in memory allocated by PEXlib. Invoke XFree to deallocate the memory.
For a list of PEX Font functions and related topics, see PEX Fonts.