Edit

SKTextBlob.CreatePositioned Method

Definition

Overloads

Name Description
CreatePositioned(ReadOnlySpan<Char>, SKFont, ReadOnlySpan<SKPoint>)

Creates a new fully-positioned text blob.

CreatePositioned(String, SKFont, ReadOnlySpan<SKPoint>)

Creates a new fully-positioned text blob.

CreatePositioned(ReadOnlySpan<Byte>, SKTextEncoding, SKFont, ReadOnlySpan<SKPoint>)

Creates a new fully-positioned text blob from encoded text.

CreatePositioned(IntPtr, Int32, SKTextEncoding, SKFont, ReadOnlySpan<SKPoint>)

Creates a new fully-positioned text blob from encoded text pointer.

CreatePositioned(ReadOnlySpan<Char>, SKFont, ReadOnlySpan<SKPoint>)

Creates a new fully-positioned text blob.

public static SkiaSharp.SKTextBlob? CreatePositioned(ReadOnlySpan<char> text, SkiaSharp.SKFont font, ReadOnlySpan<SkiaSharp.SKPoint> positions);

Parameters

text
ReadOnlySpan<Char>

The text to shape and render.

font
SKFont

The font used to shape the text.

positions
ReadOnlySpan<SKPoint>

The positions for each glyph.

Returns

A new text blob, or null if creation fails.

Applies to

CreatePositioned(String, SKFont, ReadOnlySpan<SKPoint>)

Creates a new fully-positioned text blob.

public static SkiaSharp.SKTextBlob? CreatePositioned(string text, SkiaSharp.SKFont font, ReadOnlySpan<SkiaSharp.SKPoint> positions);

Parameters

text
String

The text to shape and render.

font
SKFont

The font used to shape the text.

positions
ReadOnlySpan<SKPoint>

The positions for each glyph.

Returns

A new text blob, or null if creation fails.

Applies to

CreatePositioned(ReadOnlySpan<Byte>, SKTextEncoding, SKFont, ReadOnlySpan<SKPoint>)

Creates a new fully-positioned text blob from encoded text.

public static SkiaSharp.SKTextBlob? CreatePositioned(ReadOnlySpan<byte> text, SkiaSharp.SKTextEncoding encoding, SkiaSharp.SKFont font, ReadOnlySpan<SkiaSharp.SKPoint> positions);

Parameters

text
ReadOnlySpan<Byte>

The encoded text bytes to shape and render.

encoding
SKTextEncoding

The text encoding of the input text.

font
SKFont

The font used to shape the text.

positions
ReadOnlySpan<SKPoint>

The positions for each glyph.

Returns

A new text blob, or null if creation fails.

Applies to

CreatePositioned(IntPtr, Int32, SKTextEncoding, SKFont, ReadOnlySpan<SKPoint>)

Creates a new fully-positioned text blob from encoded text pointer.

public static SkiaSharp.SKTextBlob? CreatePositioned(IntPtr text, int length, SkiaSharp.SKTextEncoding encoding, SkiaSharp.SKFont font, ReadOnlySpan<SkiaSharp.SKPoint> positions);

Parameters

text
IntPtr

A pointer to the encoded text data.

length
Int32

The length of the text data in bytes.

encoding
SKTextEncoding

The text encoding of the input text.

font
SKFont

The font used to shape the text.

positions
ReadOnlySpan<SKPoint>

The positions for each glyph.

Returns

A new text blob, or null if creation fails.

Applies to