Edit

Share via


SKFont.GetTextPath Method

Definition

Overloads

GetTextPath(IntPtr, Int32, SKTextEncoding, SKPoint)

Gets the path for the text.

public SkiaSharp.SKPath GetTextPath(IntPtr text, int length, SkiaSharp.SKTextEncoding encoding, SkiaSharp.SKPoint origin = default);

Parameters

text
IntPtr

A pointer to the text buffer.

length
Int32

The number of bytes in the text buffer.

encoding
SKTextEncoding

The SKTextEncoding of the text.

origin
SKPoint

The starting position for the text.

Returns

The SKPath representing the text outline.

Applies to

GetTextPath(IntPtr, Int32, SKTextEncoding, ReadOnlySpan<SKPoint>)

Gets the path for the text.

public SkiaSharp.SKPath GetTextPath(IntPtr text, int length, SkiaSharp.SKTextEncoding encoding, ReadOnlySpan<SkiaSharp.SKPoint> positions);

Parameters

text
IntPtr

A pointer to the text buffer.

length
Int32

The number of bytes in the text buffer.

encoding
SKTextEncoding

The SKTextEncoding of the text.

positions
ReadOnlySpan<SKPoint>

The positions for each glyph.

Returns

The SKPath representing the text outline.

Applies to

GetTextPath(ReadOnlySpan<Byte>, SKTextEncoding, SKPoint)

Gets the path for the text.

public SkiaSharp.SKPath GetTextPath(ReadOnlySpan<byte> text, SkiaSharp.SKTextEncoding encoding, SkiaSharp.SKPoint origin = default);

Parameters

text
ReadOnlySpan<Byte>

The text to convert to a path.

encoding
SKTextEncoding

The SKTextEncoding of the text.

origin
SKPoint

The starting position for the text.

Returns

The SKPath representing the text outline.

Applies to

GetTextPath(ReadOnlySpan<Byte>, SKTextEncoding, ReadOnlySpan<SKPoint>)

Gets the path for the text.

public SkiaSharp.SKPath GetTextPath(ReadOnlySpan<byte> text, SkiaSharp.SKTextEncoding encoding, ReadOnlySpan<SkiaSharp.SKPoint> positions);

Parameters

text
ReadOnlySpan<Byte>

The text to convert to a path.

encoding
SKTextEncoding

The SKTextEncoding of the text.

positions
ReadOnlySpan<SKPoint>

The positions for each glyph.

Returns

The SKPath representing the text outline.

Applies to

GetTextPath(String, SKPoint)

Gets the path for the text.

public SkiaSharp.SKPath GetTextPath(string text, SkiaSharp.SKPoint origin = default);

Parameters

text
String

The text to convert to a path.

origin
SKPoint

The starting position for the text.

Returns

The SKPath representing the text outline.

Applies to

GetTextPath(String, ReadOnlySpan<SKPoint>)

Gets the path for the text.

public SkiaSharp.SKPath GetTextPath(string text, ReadOnlySpan<SkiaSharp.SKPoint> positions);

Parameters

text
String

The text to convert to a path.

positions
ReadOnlySpan<SKPoint>

The positions for each glyph.

Returns

The SKPath representing the text outline.

Applies to

GetTextPath(ReadOnlySpan<Char>, ReadOnlySpan<SKPoint>)

Gets the path for the text.

public SkiaSharp.SKPath GetTextPath(ReadOnlySpan<char> text, ReadOnlySpan<SkiaSharp.SKPoint> positions);

Parameters

text
ReadOnlySpan<Char>

The text to convert to a path.

positions
ReadOnlySpan<SKPoint>

The positions for each glyph.

Returns

The SKPath representing the text outline.

Applies to

GetTextPath(ReadOnlySpan<Char>, SKPoint)

Gets the path for the text.

public SkiaSharp.SKPath GetTextPath(ReadOnlySpan<char> text, SkiaSharp.SKPoint origin = default);

Parameters

text
ReadOnlySpan<Char>

The text to convert to a path.

origin
SKPoint

The starting position for the text.

Returns

The SKPath representing the text outline.

Applies to