Table of Contents

Struct GlyphPlacement

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

Where a shaped glyph sits relative to the pen: the advance the pen moves after it and the offsets it is drawn at, all in twips at the run's size. A combining mark has a zero advance and an offset back over its base; a kerned pair has an advance that is not the glyph's width. Renderers draw the glyph at pen + offset and then move the pen by the advance, along the run's baseline for X and its up direction for Y.

public readonly struct GlyphPlacement : IEquatable<GlyphPlacement>
Implements
Inherited Members

Constructors

GlyphPlacement(Twips, Twips, Twips)

Initializes a placement.

Properties

Advance

Gets the advance the pen moves after the glyph.

HasOffset

Whether the glyph is drawn at the pen with no offset.

OffsetX

Gets the glyph's offset along the baseline.

OffsetY

Gets the glyph's offset upwards from the baseline.

Methods

Equals(GlyphPlacement)
Equals(object?)
GetHashCode()

Operators

operator ==(GlyphPlacement, GlyphPlacement)

Determines equality.

operator !=(GlyphPlacement, GlyphPlacement)

Determines inequality.