Click or drag to resize
SoText3GetCharacterBounds Method

Method to get the bounds of the given character in the given string.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public SbBox3f GetCharacterBounds(
	SoState state,
	int stringIndex,
	int charIndex
)

Parameters

state
Type: OIV.Inventor.MiscSoState
stringIndex
Type: SystemInt32
charIndex
Type: SystemInt32

Return Value

Type: SbBox3f
Remarks

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.SoText3.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.

See Also