I know how to use
TTF_SetFontDirection() to render complex scripts and/or bi-directional text, but that requires you to specify explicitly the script and direction you want for a particular string.
What I want to do (and this can’t be an unusual requirement) is to reproduce the functionality of all modern text editors in automatically switching script and direction according to the text being rendered.
But I can’t see how to do this using SDL2_ttf. Am I missing something?