Modifica

SKTextBlobBuilder.AllocateRawHorizontalTextRun Method

Definition

Allocates a raw buffer for a horizontally-positioned run with text storage.

public SkiaSharp.SKRawRunBuffer<float> AllocateRawHorizontalTextRun(SkiaSharp.SKFont font, int count, float y, int textByteCount, SkiaSharp.SKRect? bounds = default);

Parameters

font
SKFont

The font used for this run.

count
Int32

The number of glyphs to allocate in the buffer.

y
Single

The vertical Y position for the text baseline.

textByteCount
Int32

The number of bytes to allocate for text storage.

bounds
Nullable<SKRect>

Optional bounds for the run.

Returns

A raw buffer containing glyph IDs, horizontal positions, and text data.

Applies to