D2D1_TEXT_ANTIALIAS_MODE Enumeration

Describes the antialiasing mode used for drawing text.

Syntax

typedef enum D2D1_TEXT_ANTIALIAS_MODE {
  D2D1_TEXT_ANTIALIAS_MODE_DEFAULT,
  D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE,
  D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE,
  D2D1_TEXT_ANTIALIAS_MODE_ALIASED,
  D2D1_TEXT_ANTIALIAS_MODE_FORCE_DWORD
} ;

Constants

D2D1_TEXT_ANTIALIAS_MODE_DEFAULT Use the system default. See Remarks.
D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE Use ClearType antialiasing.
D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE Use grayscale antialiasing.
D2D1_TEXT_ANTIALIAS_MODE_ALIASED Do not use antialiasing.
D2D1_TEXT_ANTIALIAS_MODE_FORCE_DWORD

Remarks

This enumeration is used with the SetTextAntialiasMode of an ID2D1RenderTarget to specify how text and glyphs are antialiased.

By default, Direct2D renders text in ClearType mode. Factors that

can downgrade the default quality to grayscale or aliased:

Requirements

   
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Header d2d1.h

See Also

ID2D1RenderTarget::SetTextAntialiasMode

ID2D1RenderTarget::SetTextRenderingParams