GlyphPosition Struct

The position of a glyph, in font units: how far the pen moves after it, and where it is drawn from the pen.

public struct GlyphPosition

Fields

NameDescription
AttachmentChainThe glyph this one is attached to, as a distance in the buffer; 0 when it is not attached.
AttachmentTypeHow the glyph is attached: GlyphPosition.NoAttachment, GlyphPosition.MarkAttachment or GlyphPosition.CursiveAttachment.
XAdvanceHow far the pen moves horizontally after the glyph.
XOffsetHow far right of the pen the glyph is drawn.
YAdvanceHow far the pen moves vertically after the glyph.
YOffsetHow far above the pen the glyph is drawn.

AttachmentChain

The glyph this one is attached to, as a distance in the buffer; 0 when it is not attached.

public int AttachmentChain

AttachmentType

XAdvance

How far the pen moves horizontally after the glyph.

public int XAdvance

XOffset

How far right of the pen the glyph is drawn.

public int XOffset

YAdvance

How far the pen moves vertically after the glyph.

public int YAdvance

YOffset

How far above the pen the glyph is drawn.

public int YOffset

Constants

NameDescription
CursiveAttachmentThe glyph is connected to another glyph by a cursive attachment.
MarkAttachmentThe glyph is a mark attached to an anchor of another glyph.
NoAttachmentThe glyph is not attached.

CursiveAttachment

The glyph is connected to another glyph by a cursive attachment.

public const byte CursiveAttachment = 2

MarkAttachment

The glyph is a mark attached to an anchor of another glyph.

public const byte MarkAttachment = 1

NoAttachment

The glyph is not attached.

public const byte NoAttachment = 0