TTF_GetTextDirection - Man Page

Get the direction to be used for text shaping a text object.

Header File

Defined in SDL3_ttf/SDL_ttf.h

Synopsis

#include "SDL3_ttf/SDL_ttf.h"

TTF_Direction TTF_GetTextDirection(TTF_Text *text);

Description

This defaults to the direction of the font used by the text object.

Function Parameters

text

the text to query.

Return Value

( TTF_Direction ) Returns the direction to be used for text shaping.

Thread Safety

This function should be called on the thread that created the text.

Availability

This function is available since SDL_ttf 3.0.0.

Info

SDL_ttf 3.2.2 SDL_ttf3 FUNCTIONS