My Project
Loading...
Searching...
No Matches
Deprecated List
Global SDL_GetRevisionNumber (void)
Use SDL_GetRevision() instead; if SDL was carefully built, it will return a git hash.
Global SDL_TTF_COMPILEDVERSION
, use SDL_TTF_VERSION_ATLEAST or SDL_TTF_VERSION instead.
File SDL_types.h
Global TTF_GetFontKerningSize (TTF_Font *font, int prev_index, int index)
This function accidentally requires FreeType font indexes, not codepoints, which we don't expose through this API, so it could give wildly incorrect results, especially with non-ASCII values. Going forward, please use TTF_GetFontKerningSizeGlyphs() instead, which does what you probably expected this function to do.
Global TTF_SetDirection (int direction)
This function expects an hb_direction_t value, from HarfBuzz, cast to an int, and affects all fonts globally. Please use TTF_SetFontDirection() instead, which uses an enum supplied by SDL_ttf itself and operates on a per-font basis.
Global TTF_SetScript (int script)
This function expects an hb_script_t value, from HarfBuzz, cast to an int, and affects all fonts globally. Please use TTF_SetFontScriptName() instead, which accepts a string that is converted to an equivalent int internally, and operates on a per-font basis.