User Guide

348 APPENDIX E
bold
Apply or remove this font style to the text object. (Default is ‘false’, or off.)
textObj.bold = true;
italic
Apply or remove this font style to the text object. (Default is ‘false’, or off.)
textObj.italic = true;
underline
Apply or remove this font style to the text object. (Default is ‘false’, or off.)
textObj.underline = true;
strikeout
Apply or remove this font style to the text object. (Default is ‘false’, or off.)
textObj.strikeout = false;
center
Specifi es the offset of the text object around the geometry as an array of three values [ X, Y, Z ]. Note that these
values may be overwritten by the “radius property, if it is also present. The last property to be specifi ed (radius
or center) is what will take precedent.
textObj.center = [ 5, 2, 0 ];
textAlign
Sets the alignment of text relative to the end of the geometry pointer line. (left aligned = -1; centered = 0; right
aligned = 1;)
textObj.textAlign = -1;
anchor
Specifi es the location of the end of the pointer line to the text object as an array of two values [ X, Y ].
textObj.anchor = [ 0.7, 0 ];
radius
Specifi es the distance from the geometry to the text object. Note that this value may be overwritten by the
center” property, if it is also present. The last property to be specifi ed (radius or center) is what will take
precedent.
textObj.radius = 10;
trackPoint
Specifi es the location of the end of the pointer line on the instance as an array of three values [ X, Y, Z ].
textObj.trackPoint = [ 0, 2, 0 ];