Skip to content

TSdlTtfHinting

Hinting options for TTF (TrueType Fonts)

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.

Definition

Unit: Neslib.Sdl3.Ttf

type TSdlTtfHinting = (Normal, Light, Mono, None, LightSubpixel)

See Also

Enumeration Values

Normal = TTF_HINTING_NORMAL

Normal hinting applies standard grid-fitting.


Light = TTF_HINTING_LIGHT

Light hinting applies subtle adjustments to improve rendering.


Mono = TTF_HINTING_MONO

Monochrome hinting adjusts the font for better rendering at lower resolutions.


None = TTF_HINTING_NONE

No hinting, the font is rendered without any grid-fitting.


LightSubpixel = TTF_HINTING_LIGHT_SUBPIXEL

Light hinting with subpixel rendering for more precise font edges.