Text.findCharacterPos

Return the position of the index-th character.

This function computes the visual position of a character from its index in the string. The returned position is in global coordinates (translation, rotation, scale and origin are applied). If index is out of range, the position of the end of the string is returned.

class Text
findCharacterPos
(
size_t index
)

Parameters

index size_t

Index of the character

Return Value

Type: Vector2f

Position of the character.

Meta