Edit

SKTextBlob.CreatePathPositioned Method

Definition

Overloads

Name Description
CreatePathPositioned(IntPtr, Int32, SKTextEncoding, SKFont, SKPath, SKTextAlign, SKPoint)

Creates a new text blob positioned along a path from encoded text pointer.

CreatePathPositioned(ReadOnlySpan<Byte>, SKTextEncoding, SKFont, SKPath, SKTextAlign, SKPoint)

Creates a new text blob positioned along a path from encoded text.

CreatePathPositioned(ReadOnlySpan<Char>, SKFont, SKPath, SKTextAlign, SKPoint)

Creates a new text blob positioned along a path.

CreatePathPositioned(String, SKFont, SKPath, SKTextAlign, SKPoint)

Creates a new text blob positioned along a path.

CreatePathPositioned(IntPtr, Int32, SKTextEncoding, SKFont, SKPath, SKTextAlign, SKPoint)

Creates a new text blob positioned along a path from encoded text pointer.

public static SkiaSharp.SKTextBlob? CreatePathPositioned(IntPtr text, int length, SkiaSharp.SKTextEncoding encoding, SkiaSharp.SKFont font, SkiaSharp.SKPath path, SkiaSharp.SKTextAlign textAlign = SkiaSharp.SKTextAlign.Left, SkiaSharp.SKPoint origin = default);

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.

path
SKPath

The path along which the text is positioned.

textAlign
SKTextAlign

The alignment of the text along the path.

origin
SKPoint

The starting point along the path.

Returns

A new text blob, or null if creation fails.

Applies to

CreatePathPositioned(ReadOnlySpan<Byte>, SKTextEncoding, SKFont, SKPath, SKTextAlign, SKPoint)

Creates a new text blob positioned along a path from encoded text.

public static SkiaSharp.SKTextBlob? CreatePathPositioned(ReadOnlySpan<byte> text, SkiaSharp.SKTextEncoding encoding, SkiaSharp.SKFont font, SkiaSharp.SKPath path, SkiaSharp.SKTextAlign textAlign = SkiaSharp.SKTextAlign.Left, SkiaSharp.SKPoint origin = default);

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.

path
SKPath

The path along which the text is positioned.

textAlign
SKTextAlign

The alignment of the text along the path.

origin
SKPoint

The starting point along the path.

Returns

A new text blob, or null if creation fails.

Applies to

CreatePathPositioned(ReadOnlySpan<Char>, SKFont, SKPath, SKTextAlign, SKPoint)

Creates a new text blob positioned along a path.

public static SkiaSharp.SKTextBlob? CreatePathPositioned(ReadOnlySpan<char> text, SkiaSharp.SKFont font, SkiaSharp.SKPath path, SkiaSharp.SKTextAlign textAlign = SkiaSharp.SKTextAlign.Left, SkiaSharp.SKPoint origin = default);

Parameters

text
ReadOnlySpan<Char>

The text to shape and render.

font
SKFont

The font used to shape the text.

path
SKPath

The path along which the text is positioned.

textAlign
SKTextAlign

The alignment of the text along the path.

origin
SKPoint

The starting point along the path.

Returns

A new text blob, or null if creation fails.

Applies to

CreatePathPositioned(String, SKFont, SKPath, SKTextAlign, SKPoint)

Creates a new text blob positioned along a path.

public static SkiaSharp.SKTextBlob? CreatePathPositioned(string text, SkiaSharp.SKFont font, SkiaSharp.SKPath path, SkiaSharp.SKTextAlign textAlign = SkiaSharp.SKTextAlign.Left, SkiaSharp.SKPoint origin = default);

Parameters

text
String

The text to shape and render.

font
SKFont

The font used to shape the text.

path
SKPath

The path along which the text is positioned.

textAlign
SKTextAlign

The alignment of the text along the path.

origin
SKPoint

The starting point along the path.

Returns

A new text blob, or null if creation fails.

Applies to