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 {
  D2D1_DRAW_TEXT_OPTIONS_NO_SNAP                        ,
  D2D1_DRAW_TEXT_OPTIONS_CLIP                           ,
  D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT              ,
  D2D1_DRAW_TEXT_OPTIONS_DISABLE_COLOR_BITMAP_SNAPPING  ,
  D2D1_DRAW_TEXT_OPTIONS_NONE                           ,
  D2D1_DRAW_TEXT_OPTIONS_FORCE_DWORD
} ;

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_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.
D2D1_DRAW_TEXT_OPTIONS_NONE Text is vertically snapped to pixel boundaries and is not clipped to the layout rectangle.
D2D1_DRAW_TEXT_OPTIONS_FORCE_DWORD

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

DrawText