D2D1_DRAW_TEXT_OPTIONS enumeration

Specifies whether text snapping is suppressed or clipping to the layout rectangle is enabled. This enumeration allows a bitwise combination of its member values.

Syntax


typedef enum  { 
  D2D1_DRAW_TEXT_OPTIONS_NO_SNAP                        = 0x00000001,
  D2D1_DRAW_TEXT_OPTIONS_CLIP                           = 0x00000002,
  D2D1_DRAW_TEXT_OPTIONS_NONE                           = 0x00000000,
  D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT              = 0x00000004,
  D2D1_DRAW_TEXT_OPTIONS_DISABLE_COLOR_BITMAP_SNAPPING  = 0x00000008
} D2D1_DRAW_TEXT_OPTIONS;

Constants

D2D1_DRAW_TEXT_OPTIONS_NO_SNAP

Text is not vertically snapped to pixel boundaries. This setting is recommended for text that is being animated.

D2D1_DRAW_TEXT_OPTIONS_CLIP

Text is clipped to the layout rectangle.

D2D1_DRAW_TEXT_OPTIONS_NONE

Text is vertically snapped to pixel boundaries and is not clipped to the layout rectangle.

D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT

In Windows 8.1 and later, text is rendered using color versions of glyphs, if defined by the font.

D2D1_DRAW_TEXT_OPTIONS_DISABLE_COLOR_BITMAP_SNAPPING

Bitmap origins of color glyph bitmaps are not snapped.

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

DrawText

 

 

Show: