Modifica

SKTextBlobBuilder.AllocateRun Method

Definition

Overloads

Name Description
AllocateRun(SKPaint, Int32, Single, Single)
Obsolete.

Allocates a buffer for a horizontally-positioned run.

AllocateRun(SKFont, Int32, Single, Single, Nullable<SKRect>)

Allocates a buffer for a run at a fixed origin.

AllocateRun(SKPaint, Int32, Single, Single, Int32)
Obsolete.

Allocates a buffer for a run with text storage at the specified position.

AllocateRun(SKPaint, Int32, Single, Single, Nullable<SKRect>)
Obsolete.

Allocates a buffer for a run at a fixed origin.

AllocateRun(SKPaint, Int32, Single, Single, Int32, Nullable<SKRect>)
Obsolete.

Allocates a buffer for a text run at a fixed origin with cluster data.

AllocateRun(SKPaint, Int32, Single, Single)

Caution

Use AllocateRun (SKFont, int, float, float, SKRect?) instead.

Allocates a buffer for a horizontally-positioned run.

[System.Obsolete("Use AllocateRun (SKFont, int, float, float, SKRect?) instead.")]
public SkiaSharp.SKRunBuffer AllocateRun(SkiaSharp.SKPaint font, int count, float x, float y);

Parameters

font
SKPaint

The font used for this run.

count
Int32

The number of glyphs to allocate in the buffer.

x
Single

The horizontal X position for the origin.

y
Single

The vertical Y position for the text baseline.

Returns

A run buffer for writing glyph and position data.

Attributes

Applies to

AllocateRun(SKFont, Int32, Single, Single, Nullable<SKRect>)

Allocates a buffer for a run at a fixed origin.

public SkiaSharp.SKRunBuffer AllocateRun(SkiaSharp.SKFont font, int count, float x, float y, SkiaSharp.SKRect? bounds = default);

Parameters

font
SKFont

The font used for this run.

count
Int32

The number of glyphs to allocate in the buffer.

x
Single

The horizontal X position for the origin.

y
Single

The vertical Y position for the text baseline.

bounds
Nullable<SKRect>

Optional bounds for the run.

Returns

A run buffer for writing glyph data.

Applies to

AllocateRun(SKPaint, Int32, Single, Single, Int32)

Caution

Use AllocateRun (SKFont, int, float, float, SKRect?) instead.

Allocates a buffer for a run with text storage at the specified position.

[System.Obsolete("Use AllocateRun (SKFont, int, float, float, SKRect?) instead.")]
public SkiaSharp.SKRunBuffer AllocateRun(SkiaSharp.SKPaint font, int count, float x, float y, int textByteCount);

Parameters

font
SKPaint

The font used for this run.

count
Int32

The number of glyphs to allocate in the buffer.

x
Single

The horizontal X position for the origin.

y
Single

The vertical Y position for the text baseline.

textByteCount
Int32

The number of bytes to allocate for text storage.

Returns

A run buffer for writing glyph data.

Attributes

Applies to

AllocateRun(SKPaint, Int32, Single, Single, Nullable<SKRect>)

Caution

Use AllocateRun (SKFont, int, float, float, SKRect?) instead.

Allocates a buffer for a run at a fixed origin.

[System.Obsolete("Use AllocateRun (SKFont, int, float, float, SKRect?) instead.")]
public SkiaSharp.SKRunBuffer AllocateRun(SkiaSharp.SKPaint font, int count, float x, float y, SkiaSharp.SKRect? bounds);

Parameters

font
SKPaint

The font used for this run.

count
Int32

The number of glyphs to allocate in the buffer.

x
Single

The horizontal X position for the origin.

y
Single

The vertical Y position for the text baseline.

bounds
Nullable<SKRect>

Optional bounds for the run.

Returns

A run buffer for writing glyph data.

Attributes

Applies to

AllocateRun(SKPaint, Int32, Single, Single, Int32, Nullable<SKRect>)

Caution

Use AllocateRun (SKFont, int, float, float, SKRect?) instead.

Allocates a buffer for a text run at a fixed origin with cluster data.

[System.Obsolete("Use AllocateRun (SKFont, int, float, float, SKRect?) instead.")]
public SkiaSharp.SKRunBuffer AllocateRun(SkiaSharp.SKPaint font, int count, float x, float y, int textByteCount, SkiaSharp.SKRect? bounds);

Parameters

font
SKPaint

The font used for this run.

count
Int32

The number of glyphs to allocate in the buffer.

x
Single

The horizontal X position for the origin.

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 text run buffer for writing glyph, cluster, and text data.

Attributes

Applies to