 |
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: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
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