Previous Next Up Title Contents Index Functions Index Top Library

INQUIRE EXTENDED TEXT EXTENT

PXINQ_TEXT_EXTENT


CALLING SEQUENCE

pxinq_text_extent (
)

EFFECT

Return a bounding rectangle and concatenation offset for the specified text string, using the specified text characteristics.

This function can be used to obtain the extent of hardware and software text strings, unlike Inquire Text Extent (routine pinq_text_extent) which provides information about software text strings only. It is a convenience interface to Escape function -2410. If Escape function -2410 is not supported by the workstation controller, this function calls Inquire Text Extent and does not report an error.

To request information about hardware text strings, specify text font 0 and string precision (PPREC_STRING) or character precision (PPREC_CHAR).

It is necessary to specify a view index because of the way that GPHIGS determines which hardware font to use. GPHIGS will use the largest hardware font whose height does not exceed the requested character height (or the smallest available hardware font if they all exceed the requested character height). To make this determination, GPHIGS must convert the specified character height in MC to a height in DC using the view transformation specified by the view index, and then select the appropriate hardware font to use in the text extent calculations.

The text extent is computed relative to the local 2D text coordinate system, with the text position at (0,0). The concatenation offset, with a suitable modeling transformation applied to account for the character up vector, indicates the text position for the concatenation of a subsequent text output primitive in the local 2D text coordinate system.

ERRORS

3
Ignoring function, function requires state WSOP.
54
Ignoring function, the specified workstation is not open.
59
Ignoring function, the specified workstation does not have output capability (i.e., the workstation category is neither OUTPUT, OUTIN, nor MO).

SEE ALSO

Text, see ptext, ptext3

Inquire text extent, see pinq_text_extent


Previous Next Up Title Contents Index Functions Index Top Library