# SetTextCharPosition

## Description

Set the position of an individual character relative to the text position set earlier. The character will be positioned using its top left corner. If any of the following commands are called the position of all characters will be reset to a straight line: SetTextPosition, SetTextX, SetTextY, SetTextSize, SetTextSpacing, SetTextAlignment. Positioning characters within a text object is more efficient than positioning lots of small text objects each containing a character as all the characters can be drawn in a single draw call.

## Definition

SetTextCharPosition( iTextIndex, iCharIndex, x, y )

void agk::SetTextCharPosition( UINT iTextIndex, UINT iCharIndex, float x, float y )

## Parameters

- iTextIndex - The ID of the text to modify.
- iCharIndex - The index of the character to modify, indexes start at 0, if the index is out of range it will be ignored.
- x - The new X position of the character, relative to the current text position.
- y - The new Y position of the character, relative to the current text position.