table of contents
- experimental 3~git20241102~f20defe+ds-1
TTF_GetFontDirection(3) | SDL_ttf3 FUNCTIONS | TTF_GetFontDirection(3) |
NAME¶
TTF_GetFontDirection - Get direction to be used for text shaping by a font.
HEADER FILE¶
Defined in SDL3_ttf/SDL_ttf.h
SYNOPSIS¶
#include "SDL3_ttf/SDL_ttf.h"
TTF_Direction TTF_GetFontDirection(TTF_Font *font);
DESCRIPTION¶
Possible direction values are:
• TTF_DIRECTION_LTR (Left to Right)
• TTF_DIRECTION_RTL (Right to Left)
• TTF_DIRECTION_TTB (Top to Bottom)
• TTF_DIRECTION_BTT (Bottom to Top)
If SDL_ttf was not built with HarfBuzz support, this function returns
TTF_DIRECTION_LTR .
FUNCTION PARAMETERS¶
- font
- the font 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 font.
AVAILABILITY¶
This function is available since SDL_ttf 3.0.0.
SDL_ttf 3.0.0 | SDL_ttf |