SKFont.GetTextPath Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetTextPath(IntPtr, Int32, SKTextEncoding, SKPoint) |
Gets the path for the text. |
| GetTextPath(IntPtr, Int32, SKTextEncoding, ReadOnlySpan<SKPoint>) |
Gets the path for the text. |
| GetTextPath(ReadOnlySpan<Byte>, SKTextEncoding, SKPoint) |
Gets the path for the text. |
| GetTextPath(ReadOnlySpan<Byte>, SKTextEncoding, ReadOnlySpan<SKPoint>) |
Gets the path for the text. |
| GetTextPath(String, SKPoint) |
Gets the path for the text. |
| GetTextPath(String, ReadOnlySpan<SKPoint>) |
Gets the path for the text. |
| GetTextPath(ReadOnlySpan<Char>, ReadOnlySpan<SKPoint>) |
Gets the path for the text. |
| GetTextPath(ReadOnlySpan<Char>, SKPoint) |
Gets the path for the text. |
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)
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.