Function GraQueryTextBox() Foundation
Determines coordinates for the boundaries of a character string.
GraQueryTextBox( [<oPS>], <cString> ) --> aPoints
The function GraQueryTextBox() returns a two dimensional array of five elements. Each element contains a subarray with two elements which are the relative coordinates for five points. The first four elements designate the corner points for a parallelogram which represents the boundaries of the specified character string <cString>. The fifth element is the pen position at which the pen is found after the character string is drawn with GraStringAt():
The points designate the boundaries if the string is displayed at the origin of the coordinate system (the point {0,0}). To calculate the actual coordinates for a box surrounding a string, add the x and y positions at which <cString> is drawn.
The function GraQueryTextBox() determines the corner points of the parallelogram in which the output of a character string occurs. The coordinates describe a rectangle which outlines the character string, unless the characters are output in italic.
GraQueryTextBox() is well suited for determining the space required for a character string displayed in a proportional typeface before it is drawn with GraStringAt().
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.