SoAsciiTextGetCharacterBounds Method |
Method to get the bounds of the given character in the given string.
Namespace: OIV.Inventor.Nodes
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public SbBox3f GetCharacterBounds( SoState state, int stringIndex, int charIndex )
This must be called during the application of an action; use a callbackAction applied to a Path to the text node if you have to (this is really designed to be used in a Text3 manipulator, which will have direct access to the state). The bounds are based on the font metric information, not the geometric bounding box of the character. So, for example, while a space character has an empty bounding box, OIV.Inventor.Nodes.SoAsciiText.GetCharacterBounds(OIV.Inventor.Misc.SoState, System.Int32, System.Int32) will return a box as high as the font height, as wide as a space, and as deep as the profile.