SKFont.GetTextPathOnPath 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 |
|---|---|
| GetTextPathOnPath(IntPtr, Int32, SKTextEncoding, SKPath, SKTextAlign, SKPoint) |
Gets the path for text laid out along another path. |
| GetTextPathOnPath(ReadOnlySpan<Byte>, SKTextEncoding, SKPath, SKTextAlign, SKPoint) |
Gets the path for text laid out along another path. |
| GetTextPathOnPath(ReadOnlySpan<UInt16>, ReadOnlySpan<Single>, ReadOnlySpan<SKPoint>, SKPath, SKTextAlign) |
Gets the path for text laid out along another path. |
| GetTextPathOnPath(ReadOnlySpan<UInt16>, SKPath, SKTextAlign, SKPoint) |
Gets the path for text laid out along another path. |
| GetTextPathOnPath(ReadOnlySpan<Char>, SKPath, SKTextAlign, SKPoint) |
Gets the path for text laid out along another path. |
| GetTextPathOnPath(String, SKPath, SKTextAlign, SKPoint) |
Gets the path for text laid out along another path. |
GetTextPathOnPath(IntPtr, Int32, SKTextEncoding, SKPath, SKTextAlign, SKPoint)
Gets the path for text laid out along another path.
public SkiaSharp.SKPath GetTextPathOnPath(IntPtr text, int length, SkiaSharp.SKTextEncoding encoding, SkiaSharp.SKPath path, SkiaSharp.SKTextAlign textAlign = SkiaSharp.SKTextAlign.Left, 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.
- textAlign
- SKTextAlign
The text alignment relative to the path.
- origin
- SKPoint
The starting position for the text.
Returns
The SKPath representing the text outline along the path.
Applies to
GetTextPathOnPath(ReadOnlySpan<Byte>, SKTextEncoding, SKPath, SKTextAlign, SKPoint)
Gets the path for text laid out along another path.
public SkiaSharp.SKPath GetTextPathOnPath(ReadOnlySpan<byte> text, SkiaSharp.SKTextEncoding encoding, SkiaSharp.SKPath path, SkiaSharp.SKTextAlign textAlign = SkiaSharp.SKTextAlign.Left, SkiaSharp.SKPoint origin = default);
Parameters
- text
- ReadOnlySpan<Byte>
The text to convert to a path.
- encoding
- SKTextEncoding
The SKTextEncoding of the text.
- textAlign
- SKTextAlign
The text alignment relative to the path.
- origin
- SKPoint
The starting position for the text.
Returns
The SKPath representing the text outline along the path.
Applies to
GetTextPathOnPath(ReadOnlySpan<UInt16>, ReadOnlySpan<Single>, ReadOnlySpan<SKPoint>, SKPath, SKTextAlign)
Gets the path for text laid out along another path.
public SkiaSharp.SKPath GetTextPathOnPath(ReadOnlySpan<ushort> glyphs, ReadOnlySpan<float> glyphWidths, ReadOnlySpan<SkiaSharp.SKPoint> glyphPositions, SkiaSharp.SKPath path, SkiaSharp.SKTextAlign textAlign = SkiaSharp.SKTextAlign.Left);
Parameters
- glyphs
- ReadOnlySpan<UInt16>
The array of glyph IDs.
- glyphWidths
- ReadOnlySpan<Single>
The advance widths for each glyph.
- glyphPositions
- ReadOnlySpan<SKPoint>
The positions for each glyph.
- textAlign
- SKTextAlign
The text alignment relative to the path.
Returns
The SKPath representing the text outline along the path.
Applies to
GetTextPathOnPath(ReadOnlySpan<UInt16>, SKPath, SKTextAlign, SKPoint)
Gets the path for text laid out along another path.
public SkiaSharp.SKPath GetTextPathOnPath(ReadOnlySpan<ushort> glyphs, SkiaSharp.SKPath path, SkiaSharp.SKTextAlign textAlign = SkiaSharp.SKTextAlign.Left, SkiaSharp.SKPoint origin = default);
Parameters
- glyphs
- ReadOnlySpan<UInt16>
The array of glyph IDs.
- textAlign
- SKTextAlign
The text alignment relative to the path.
- origin
- SKPoint
The starting position for the text.
Returns
The SKPath representing the text outline along the path.
Applies to
GetTextPathOnPath(ReadOnlySpan<Char>, SKPath, SKTextAlign, SKPoint)
Gets the path for text laid out along another path.
public SkiaSharp.SKPath GetTextPathOnPath(ReadOnlySpan<char> text, SkiaSharp.SKPath path, SkiaSharp.SKTextAlign textAlign = SkiaSharp.SKTextAlign.Left, SkiaSharp.SKPoint origin = default);
Parameters
- text
- ReadOnlySpan<Char>
The text to convert to a path.
- textAlign
- SKTextAlign
The text alignment relative to the path.
- origin
- SKPoint
The starting position for the text.
Returns
The SKPath representing the text outline along the path.
Applies to
GetTextPathOnPath(String, SKPath, SKTextAlign, SKPoint)
Gets the path for text laid out along another path.
public SkiaSharp.SKPath GetTextPathOnPath(string text, SkiaSharp.SKPath path, SkiaSharp.SKTextAlign textAlign = SkiaSharp.SKTextAlign.Left, SkiaSharp.SKPoint origin = default);
Parameters
- text
- String
The text to convert to a path.
- textAlign
- SKTextAlign
The text alignment relative to the path.
- origin
- SKPoint
The starting position for the text.
Returns
The SKPath representing the text outline along the path.