 |
VectorFontFactoryCreateIndividualTextOutlinePositions Method |
CreateIndividualTextOutlinePositions generates 2D outline positions for the specified text.
The returned list contains tuples with the following values: index of the character in the text, the character and the outline positions.
Note that each character can have multiple Vector2 array, that means that multiple items in the returned list can be created from a single character.
The coordinate axis (0, 0) starts at the baseline of the first character.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic List<(int charIndexInText, char character, Vector2[] )> CreateIndividualTextOutlinePositions(
string text,
float fontSize,
TextAlignment textAlignment = TextAlignment.Left
)
Parameters
- text String
- text
- fontSize Single
- font size
- textAlignment TextAlignment (Optional)
- TextAlignment (Left by default)
Return Value
ListValueTupleInt32,
Char,
Vector2list contains tuples with the following values: index of the character in the text, the character and the outline positions
See Also