.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL_ttf's wiki page for TTF_SetDirection: .\" https://wiki.libsdl.org/SDL_ttf/TTF_SetDirection .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision 3~git20230930~32637cb+ds-1 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20TTF_SetDirection .\" SDL_ttf can be found at https://libsdl.org/projects/SDL_ttf .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH TTF_SetDirection 3 "SDL_ttf 3.0.0" "SDL_ttf" "SDL_ttf3 FUNCTIONS" .SH NAME TTF_SetDirection \- Set a global direction to be used for text shaping\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3_ttf/SDL_ttf.h\(dq .PP .BI "int TTF_SetDirection(int direction); /* hb_direction_t */ .fi .SH DEPRECATED This function expects an hb_direction_t value, from HarfBuzz, cast to an int, and affects all fonts globally\[char46] Please use .BR TTF_SetFontDirection () instead, which uses an enum supplied by SDL_ttf itself and operates on a per-font basis\[char46] This is a global setting; fonts will favor a value set with .BR TTF_SetFontDirection (), but if they have not had one explicitly set, they will use the value specified here\[char46] The default value is .BR HB_DIRECTION_LTR (left-to-right text flow)\[char46] .SH FUNCTION PARAMETERS .TP .I direction an hb_direction_t value\[char46] .SH RETURN VALUE Returns 0, or -1 if SDL_ttf is not compiled with HarfBuzz support\[char46] .SH AVAILABILITY This function is available since SDL_ttf 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR TTF_SetFontDirection (3)