Scroll to navigation

TTF_HintingFlags(3type) SDL_ttf3 DATATYPES TTF_HintingFlags(3type)

NAME

TTF_HintingFlags - Hinting flags for TTF (TrueType Fonts)

HEADER FILE

Defined in SDL3_ttf/SDL_ttf.h

SYNOPSIS

#include "SDL3_ttf/SDL_ttf.h"
typedef enum TTF_HintingFlags
{
    TTF_HINTING_NORMAL = 0,     /**< Normal hinting applies standard grid-fitting. */
    TTF_HINTING_LIGHT,          /**< Light hinting applies subtle adjustments to improve rendering. */
    TTF_HINTING_MONO,           /**< Monochrome hinting adjusts the font for better rendering at lower resolutions. */
    TTF_HINTING_NONE,           /**< No hinting, the font is rendered without any grid-fitting. */
    TTF_HINTING_LIGHT_SUBPIXEL  /**< Light hinting with subpixel rendering for more precise font edges. */
} TTF_HintingFlags;

DESCRIPTION

This enum specifies the level of hinting to be applied to the font rendering. The hinting level determines how much the font's outlines are adjusted for better alignment on the pixel grid.

AVAILABILITY

This enum is available since SDL_ttf 3.0.0.

SEE ALSO

(3), TTF_SetFontHinting(3), (3), TTF_GetFontHinting(3)

SDL_ttf 3.1.0 SDL_ttf