The representation of a substring within text.
Defined in <SDL3_ttf/SDL_ttf.h>
typedef struct TTF_SubString
{/**< The flags for this substring */
TTF_SubStringFlags flags; int offset; /**< The byte offset from the beginning of the text */
int length; /**< The byte length starting at the offset */
int line_index; /**< The index of the line that contains this substring */
int cluster_index; /**< The internal cluster index, used for quickly iterating */
/**< The rectangle, relative to the top left of the text, containing the substring */
SDL_Rect rect; } TTF_SubString;
This struct is available since SDL_ttf 3.0.0.