logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This function is available since SDL_ttf 3.0.0.

SDL_ttf                                           SDL_ttf 3.2.2                          TTF_GetTextDirection(3)

Description

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

Function Parameters

text   the text to query.

Header File

       Defined in SDL3_ttf/SDL_ttf.h

Name

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

Return Value

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

Synopsis

#include"SDL3_ttf/SDL_ttf.h"TTF_DirectionTTF_GetTextDirection(TTF_Text*text);

Thread Safety

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

See Also