Set additional space in pixels to be applied between any two rendered characters.
Defined in <SDL3_ttf/SDL_ttf.h>
bool TTF_SetFontCharSpacing(TTF_Font *font, int spacing);
TTF_Font * | font | the font to specify a direction for. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
The spacing value is applied uniformly after each character, in addition to the normal glyph's advance.
Spacing may be a negative value, in which case it will reduce the distance instead.
This updates any TTF_Text objects using this font.
This function should be called on the thread that created the font.
This function is available since SDL_ttf 3.4.0.