Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D2D1_TEXT_ANTIALIAS_MODE enumeration

Describes the antialiasing mode used for drawing text.

Syntax


typedef enum  { 
  D2D1_TEXT_ANTIALIAS_MODE_DEFAULT    = 0,
  D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE  = 1,
  D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE  = 2,
  D2D1_TEXT_ANTIALIAS_MODE_ALIASED    = 3
} D2D1_TEXT_ANTIALIAS_MODE;

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.

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 | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1.h

See also

ID2D1RenderTarget::SetTextAntialiasMode
ID2D1RenderTarget::SetTextRenderingParams

 

 

Community Additions

Show:
© 2014 Microsoft