Table of Contents

Enum TextRenderingMode

Namespace
PaintDotNet.DirectWrite
Assembly
PaintDotNet.Windows.dll

Represents a method of rendering glyphs.

public enum TextRenderingMode

Fields

Default = 0

Specifies that the rendering mode is determined automatically, based on the font and size.

Aliased = 1

Specifies that no anti-aliasing is performed. Each pixel is either set to the foreground color of the text or retains the color of the background.

GdiClassic = 2

Specifies that antialiasing is performed in the horizontal direction and the appearance of glyphs is layout-compatible with GDI using CLEARTYPE_QUALITY. Use TextMeasuringMode.GdiClassic to get glyph advances. The antialiasing may be either ClearType or grayscale depending on the text antialiasing mode.

GdiNatural = 3

Specifies that antialiasing is performed in the horizontal direction and the appearance of glyphs is layout-compatible with GDI using CLEARTYPE_NATURAL_QUALITY. Glyph advances are close to the font design advances, but are still rounded to whole pixels. Use TextMeasuringMode.GdiNatural to get glyph advances. The antialiasing may be either ClearType or grayscale depending on the text antialiasing mode.

Natural = 4

Specifies that antialiasing is performed in the horizontal direction. This rendering mode allows glyphs to be positioned with subpixel precision and is therefore suitable for natural (i.e., resolution-independent) layout. The antialiasing may be either ClearType or grayscale depending on the text antialiasing mode.

NaturalSymmetric = 5

Similar to natural mode except that antialiasing is performed in both the horizontal and vertical directions. This is typically used at larger sizes to make curves and diagonal lines look smoother. The antialiasing may be either ClearType or grayscale depending on the text antialiasing mode.

Outline = 6

Specifies that rendering should bypass the rasterizer and use the outlines directly. This is typically used at very large sizes.

NaturalSymmetricDownsampled = 7

Similar to natural symmetric mode except that when possible, text should be rasterized in a downsampled form.