Skip to main content

TextHintingMode Enum

Definition

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

Specifies the level of hinting applied to text glyphs during rendering. Text hinting adjusts glyph outlines to improve readability and crispness, especially at small font sizes or low DPI. This enum controls the amount of grid-fitting and outline adjustment performed.

public enum TextHintingMode

Inheritance: Enum -> TextHintingMode

Fields

NameDescription
LightMinimal hinting, preserves glyph shape.
NoneNo hinting, outlines are scaled only.
StrongAggressive grid-fitting, maximum crispness at low DPI.
UnspecifiedHinting mode is not explicitly specified. The default will be used.

Light Field

Minimal hinting, preserves glyph shape.

public Avalonia.Media.TextHintingMode Light

None Field

No hinting, outlines are scaled only.

public Avalonia.Media.TextHintingMode None

Strong Field

Aggressive grid-fitting, maximum crispness at low DPI.

public Avalonia.Media.TextHintingMode Strong

Unspecified Field

Hinting mode is not explicitly specified. The default will be used.

public Avalonia.Media.TextHintingMode Unspecified