SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]
(This function is part of SDL_ttf, a separate library from SDL.)

TTF_GetFontCharSpacing

Get the additional character spacing in pixels to be applied between any two rendered characters.

Header File

Defined in <SDL3_ttf/SDL_ttf.h>

Syntax

int TTF_GetFontCharSpacing(TTF_Font *font);

Function Parameters

TTF_Font * font the font to query.

Return Value

(int) Returns the character spacing in pixels.

Remarks

This defaults to 0 if it hasn't been set.

Thread Safety

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

Version

This function is available since SDL_ttf 3.4.0.


CategoryAPI, CategoryAPIFunction, CategorySDLTTF


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.