HC_Compute_Text_Extent_By_Path
-
bool
HC_Compute_Text_Extent_By_Path(int count, Key const keys[], char const *text, float *xfrac, float *yfrac) - bool HC_Compute_Text_Extent_By_Path(int count, Key const keys, char const text, float xfrac, float yfrac)
Similar to Compute_Text_Extent(), but concatenates the matrices along a segment path rather than the currently open segment.
HC_Compute_Text_Extent()Parameters
count: The size of the keys array
keys: The array of keys starting with the owning segment and following all the way back to the root segment or other desired segment.
text: The text string whose extent is to be tested.
xfrac: The fraction from 0.0 to 1.0 (or more), in the X direction, of segment’s window that is necessary to hold text. Returned to user. Passed by reference always.
yfrac: The fraction from 0.0 to 1.0 (or more), in the Y direction, of segment’s window that is necessary to hold text. Returned to user. Passed by reference always.