SKPositionedTextRunBuffer 类

定义

用于完全定位的文本的缓冲区使用群集和文本数据运行。

public sealed class SKPositionedTextRunBuffer : SkiaSharp.SKTextRunBuffer
继承
SKPositionedTextRunBuffer

属性

名称 说明
Clusters

获取将字形映射到其源文本位置的群集索引范围。

(继承自 SKTextRunBuffer)
Glyphs

获取运行的字形 ID 范围。

(继承自 SKRunBuffer)
Positions

获取每个字形的位置范围。

Size

获取运行中的字形数。

(继承自 SKRunBuffer)
Text

获取运行的 UTF-8 编码源文本字节的范围。

(继承自 SKTextRunBuffer)
TextSize

获取文本缓冲区的大小(以字节为单位)。

(继承自 SKTextRunBuffer)

方法

名称 说明
SetClusters(ReadOnlySpan<UInt32>)

设置将标志符号映射到其源文本位置的群集索引。

(继承自 SKTextRunBuffer)
SetGlyphs(ReadOnlySpan<UInt16>)

设置运行的字形 ID。

(继承自 SKRunBuffer)
SetPositions(ReadOnlySpan<SKPoint>)

设置运行中每个字形的位置。

SetText(ReadOnlySpan<Byte>)

设置运行的源文本字节。

(继承自 SKTextRunBuffer)

适用于