NODWRITE_OPTICAL_ALIGNMENT enumeration

The optical margin alignment mode.

By default, glyphs are aligned to the margin by the default origin and side-bearings of the glyph. If you specify DWRITE_OPTICAL_ALIGNMENT_NO_SIDE_BEARINGS, then the alignment uses the side bearings to offset the glyph from the aligned edge to ensure the ink of the glyphs are aligned.

Syntax


typedef enum _DWRITE_OPTICAL_ALIGNMENT { 
      DWRITE_OPTICAL_ALIGNMENT_NONE,
      DWRITE_OPTICAL_ALIGNMENT_NO_SIDE_BEARINGS
} DWRITE_OPTICAL_ALIGNMENT;

Constants

DWRITE_OPTICAL_ALIGNMENT_NONE

Align to the default origin and side-bearings of the glyph.

DWRITE_OPTICAL_ALIGNMENT_NO_SIDE_BEARINGS

Align to the ink of the glyphs, such that the black box abuts the margins.

Requirements

Header

Dwrite_2.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft