SDL Wiki
(This function is part of SDL_ttf, a separate library from SDL.)

TTF_HintingFlags

Hinting flags for TTF (TrueType Fonts)

Header File

Defined in <SDL3_ttf/SDL_ttf.h>

Syntax

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;

Remarks

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.

Version

This enum is available since SDL_ttf 3.0.0.

See Also


CategoryAPI, CategoryAPIEnum, CategorySDLTTF


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

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