TTF_HintingFlags(3type)

TTF_HintingFlags3type

Hinting flags for ttf (truetype fonts)

Usage

#include "SDL3_ttf/SDL_ttf.h"

typedef enum TTF_HintingFlags { TTF_HINTING_INVALID = -1, TTF_HINTING_NORMAL, /**< 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;

Header file

Defined in SDL3_ttf/SDL_ttf.h

Overview

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.

From libsdl3-ttf-doc 3.2.2+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.