Edit

Share via


SKTextRunBuffer Class

Definition

A buffer for storing a text run with glyph IDs, positions, clusters, and text data.

public class SKTextRunBuffer : SkiaSharp.SKRunBuffer
Inheritance
SKTextRunBuffer
Derived

Properties

Name Description
Clusters

Gets the span of cluster indices that map glyphs to their source text positions.

Glyphs

Gets the span of glyph IDs for the run.

(Inherited from SKRunBuffer)
Size

Gets the number of glyphs in the run.

(Inherited from SKRunBuffer)
Text

Gets the span of UTF-8 encoded source text bytes for the run.

TextSize

Gets the size of the text buffer in bytes.

Methods

Name Description
GetGlyphSpan()
Obsolete.

Gets the span of glyph IDs for the run.

(Inherited from SKRunBuffer)
SetClusters(ReadOnlySpan<UInt32>)

Sets the cluster indices that map glyphs to their source text positions.

SetGlyphs(ReadOnlySpan<UInt16>)

Sets the glyph IDs for the run.

(Inherited from SKRunBuffer)
SetText(ReadOnlySpan<Byte>)

Sets the source text bytes for the run.

Applies to