Export (0) Print
Expand All

DWRITE_GLYPH_OFFSET structure

The optional adjustment to a glyph's position.

Syntax


struct DWRITE_GLYPH_OFFSET {
  FLOAT advanceOffset;
  FLOAT ascenderOffset;
};

Members

advanceOffset

Type: FLOAT

The offset in the advance direction of the run. A positive advance offset moves the glyph to the right (in pre-transform coordinates) if the run is left-to-right or to the left if the run is right-to-left.

ascenderOffset

Type: FLOAT

The offset in the ascent direction, that is, the direction ascenders point. A positive ascender offset moves the glyph up (in pre-transform coordinates). A negative ascender offset moves the glyph down.

Remarks

An glyph offset changes the position of a glyph without affecting the pen position. Offsets are in logical, pre-transform units.

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

Dwrite.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft