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 GlyphPositionFields
| Name | Description |
|---|---|
| AttachmentChain | The glyph this one is attached to, as a distance in the buffer; 0 when it is not attached. |
| AttachmentType | How the glyph is attached: GlyphPosition.NoAttachment, GlyphPosition.MarkAttachment or GlyphPosition.CursiveAttachment. |
| XAdvance | How far the pen moves horizontally after the glyph. |
| XOffset | How far right of the pen the glyph is drawn. |
| YAdvance | How far the pen moves vertically after the glyph. |
| YOffset | How 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 AttachmentChainAttachmentType
How the glyph is attached: GlyphPosition.NoAttachment, GlyphPosition.MarkAttachment or GlyphPosition.CursiveAttachment.
public byte AttachmentTypeXAdvance
How far the pen moves horizontally after the glyph.
public int XAdvanceXOffset
How far right of the pen the glyph is drawn.
public int XOffsetYAdvance
How far the pen moves vertically after the glyph.
public int YAdvanceYOffset
How far above the pen the glyph is drawn.
public int YOffsetConstants
| Name | Description |
|---|---|
| CursiveAttachment | The glyph is connected to another glyph by a cursive attachment. |
| MarkAttachment | The glyph is a mark attached to an anchor of another glyph. |
| NoAttachment | The glyph is not attached. |
CursiveAttachment
The glyph is connected to another glyph by a cursive attachment.
public const byte CursiveAttachment = 2MarkAttachment
The glyph is a mark attached to an anchor of another glyph.
public const byte MarkAttachment = 1NoAttachment
The glyph is not attached.
public const byte NoAttachment = 0