D2D1_DRAW_TEXT_OPTIONS enumeration (d2d1.h)
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 = 0x00000001,
D2D1_DRAW_TEXT_OPTIONS_CLIP = 0x00000002,
D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT = 0x00000004,
D2D1_DRAW_TEXT_OPTIONS_DISABLE_COLOR_BITMAP_SNAPPING = 0x00000008,
D2D1_DRAW_TEXT_OPTIONS_NONE = 0x00000000,
D2D1_DRAW_TEXT_OPTIONS_FORCE_DWORD = 0xffffffff
} ;
Constants
D2D1_DRAW_TEXT_OPTIONS_NO_SNAP Value: 0x00000001 Text is not vertically snapped to pixel boundaries. This setting is recommended for text that is being animated. |
D2D1_DRAW_TEXT_OPTIONS_CLIP Value: 0x00000002 Text is clipped to the layout rectangle. |
D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT Value: 0x00000004 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 Value: 0x00000008 Bitmap origins of color glyph bitmaps are not snapped. |
D2D1_DRAW_TEXT_OPTIONS_NONE Value: 0x00000000 Text is vertically snapped to pixel boundaries and is not clipped to the layout rectangle. |
D2D1_DRAW_TEXT_OPTIONS_FORCE_DWORD Value: 0xffffffff |
Requirements
Requirement | Value |
---|---|
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 |