logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TTF_AddFallbackFont - Add a fallback font.

Availability

       This function is available since SDL_ttf 3.0.0.

Description

       Add  a font that will be used for glyphs that are not in the current font.  The fallback font should have
       the same size and style as the current font.

       If there are multiple fallback fonts, they are used in the order added.

       This updates any TTF_Text
        objects using this font.

Function Parameters

font   the font to modify.

       fallback
              the font to add as a fallback.

Header File

       Defined in SDL3_ttf/SDL_ttf.h

Name

       TTF_AddFallbackFont - Add a fallback font.

Return Value

       Returns true on success or false on failure; call SDL_GetError() for more information.

See Also

(3), TTF_ClearFallbackFonts(3), (3), TTF_RemoveFallbackFont(3)

SDL_ttf                                           SDL_ttf 3.2.2                           TTF_AddFallbackFont(3)

Synopsis

#include"SDL3_ttf/SDL_ttf.h"boolTTF_AddFallbackFont(TTF_Font*font,TTF_Font*fallback);

Thread Safety

       This function should be called on the thread that created both fonts.

See Also