S or /

SourceEnum HintingTarget

from egui import HintingTarget
HintingTarget.Mono

How to hint glyph outlines, i.e. how aggressively to nudge them onto the pixel grid before rasterizing. Mirrors skrifa.outline.Target.

Hinting trades shape fidelity for sharpness: snapping stems to whole pixels makes text crisp at small sizes / low dpi, at the cost of slightly distorting the designer's outlines. At high dpi it matters little.

This only has an effect if the font is actually hinted — either it ships TrueType instructions, or it was auto-hinted (see FontTweak.hinting).

Used by FontTweak.hinting_target.

Variants§

HintingTarget.Mono Enum value§

Methods§

@staticmethod def Smooth(settings: SmoothHinting) -> HintingTarget§
@staticmethod def default() -> HintingTarget§
def name(self, /) -> str§
def smooth_settings(self, /) -> SmoothHinting |None§