Skip to main content

TextRenderingMode Enum

Definition

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

Specifies how text glyphs are rendered in Avalonia. Controls the smoothing and antialiasing applied during text rasterization.

public enum TextRenderingMode

Inheritance: Enum -> TextRenderingMode

Fields

NameDescription
AliasGlyphs are rendered without antialiasing. This produces sharp, aliased edges and may be useful for pixel-art aesthetics or low-DPI environments.
AntialiasGlyphs are rendered with standard grayscale antialiasing. This smooths edges without using subpixel information, preserving shape fidelity across different display types.
SubpixelAntialiasGlyphs are rendered with subpixel antialiasing. This provides higher apparent resolution on LCD screens by using the individual red, green, and blue subpixels.
UnspecifiedRendering mode is not explicitly specified. The system or platform default will be used.

Alias Field

Glyphs are rendered without antialiasing. This produces sharp, aliased edges and may be useful for pixel-art aesthetics or low-DPI environments.

public Avalonia.Media.TextRenderingMode Alias

Antialias Field

Glyphs are rendered with standard grayscale antialiasing. This smooths edges without using subpixel information, preserving shape fidelity across different display types.

public Avalonia.Media.TextRenderingMode Antialias

SubpixelAntialias Field

Glyphs are rendered with subpixel antialiasing. This provides higher apparent resolution on LCD screens by using the individual red, green, and blue subpixels.

public Avalonia.Media.TextRenderingMode SubpixelAntialias

Unspecified Field

Rendering mode is not explicitly specified. The system or platform default will be used.

public Avalonia.Media.TextRenderingMode Unspecified