# SetTextCharY

## Description

Set the Y 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

SetTextCharY( iTextIndex, iCharIndex, y )

void agk::SetTextCharY( UINT iTextIndex, UINT iCharIndex, 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.
- y - The new Y position of the character, relative to the current text position.