Table of Contents

Constructor GlyphClusterMap

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

GlyphClusterMap(int, int, string, IReadOnlyList<ushort>)

Initializes one cluster mapping entry.

public GlyphClusterMap(int clusterStart, int clusterLength, string unicodeText, IReadOnlyList<ushort> glyphIds)

Parameters

clusterStart int

The UTF-16 start index in the run text.

clusterLength int

The UTF-16 length of the source segment.

unicodeText string

The Unicode text represented by the cluster.

glyphIds IReadOnlyList<ushort>

The shaped glyph IDs that realize this cluster.

GlyphClusterMap(int, int, string, IReadOnlyList<ushort>, IReadOnlyList<GlyphPlacement>?)

Initializes a cluster whose glyphs carry their own placements: the advance and the offsets the shaper gave each glyph, one entry per glyph id, or null when every glyph sits at its nominal advance. A combining mark is a glyph with a zero advance and an offset back over its base; a pair adjustment is an advance that is not the width.

public GlyphClusterMap(int clusterStart, int clusterLength, string unicodeText, IReadOnlyList<ushort> glyphIds, IReadOnlyList<GlyphPlacement>? glyphPlacements)

Parameters

clusterStart int

The cluster's first UTF-16 index in the run's text.

clusterLength int

The number of UTF-16 code units the cluster covers.

unicodeText string

The cluster's text.

glyphIds IReadOnlyList<ushort>

The glyphs, in drawing order.

glyphPlacements IReadOnlyList<GlyphPlacement>

One placement per glyph, or null for nominal placement.