SKFont.GetGlyphPositions 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 |
|---|---|
| GetGlyphPositions(String, Span<SKPoint>, SKPoint) |
Gets the x,y positions for the glyphs. |
| GetGlyphPositions(IntPtr, Int32, SKTextEncoding, Span<SKPoint>, SKPoint) |
Gets the x,y positions for the glyphs. |
| GetGlyphPositions(ReadOnlySpan<Byte>, SKTextEncoding, Span<SKPoint>, SKPoint) |
Gets the x,y positions for the glyphs. |
| GetGlyphPositions(IntPtr, Int32, SKTextEncoding, SKPoint) |
Gets the x,y positions for the glyphs. |
| GetGlyphPositions(ReadOnlySpan<UInt16>, Span<SKPoint>, SKPoint) |
Gets the x,y positions for the glyphs. |
| GetGlyphPositions(ReadOnlySpan<UInt16>, SKPoint) |
Gets the x,y positions for the glyphs. |
| GetGlyphPositions(ReadOnlySpan<Byte>, SKTextEncoding, SKPoint) |
Gets the x,y positions for the glyphs. |
| GetGlyphPositions(String, SKPoint) |
Gets the x,y positions for the glyphs. |
| GetGlyphPositions(ReadOnlySpan<Char>, SKPoint) |
Gets the x,y positions for the glyphs. |
| GetGlyphPositions(ReadOnlySpan<Char>, Span<SKPoint>, SKPoint) |
Gets the x,y positions for the glyphs. |
GetGlyphPositions(String, Span<SKPoint>, SKPoint)
GetGlyphPositions(IntPtr, Int32, SKTextEncoding, Span<SKPoint>, SKPoint)
Gets the x,y positions for the glyphs.
public void GetGlyphPositions(IntPtr text, int length, SkiaSharp.SKTextEncoding encoding, Span<SkiaSharp.SKPoint> offsets, 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 offset.
Applies to
GetGlyphPositions(ReadOnlySpan<Byte>, SKTextEncoding, Span<SKPoint>, SKPoint)
Gets the x,y positions for the glyphs.
public void GetGlyphPositions(ReadOnlySpan<byte> text, SkiaSharp.SKTextEncoding encoding, Span<SkiaSharp.SKPoint> offsets, SkiaSharp.SKPoint origin = default);
Parameters
- text
- ReadOnlySpan<Byte>
The text to process.
- encoding
- SKTextEncoding
The SKTextEncoding of the text.
- origin
- SKPoint
The starting position offset.
Applies to
GetGlyphPositions(IntPtr, Int32, SKTextEncoding, SKPoint)
Gets the x,y positions for the glyphs.
public SkiaSharp.SKPoint[] GetGlyphPositions(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 offset.
Returns
An array of positions for each glyph.
Applies to
GetGlyphPositions(ReadOnlySpan<UInt16>, Span<SKPoint>, SKPoint)
Gets the x,y positions for the glyphs.
public void GetGlyphPositions(ReadOnlySpan<ushort> glyphs, Span<SkiaSharp.SKPoint> positions, SkiaSharp.SKPoint origin = default);
Parameters
- glyphs
- ReadOnlySpan<UInt16>
The array of glyph IDs.
- origin
- SKPoint
The starting position offset.
Applies to
GetGlyphPositions(ReadOnlySpan<UInt16>, SKPoint)
Gets the x,y positions for the glyphs.
public SkiaSharp.SKPoint[] GetGlyphPositions(ReadOnlySpan<ushort> glyphs, SkiaSharp.SKPoint origin = default);
Parameters
- glyphs
- ReadOnlySpan<UInt16>
The array of glyph IDs.
- origin
- SKPoint
The starting position offset.
Returns
An array of positions for each glyph.
Applies to
GetGlyphPositions(ReadOnlySpan<Byte>, SKTextEncoding, SKPoint)
Gets the x,y positions for the glyphs.
public SkiaSharp.SKPoint[] GetGlyphPositions(ReadOnlySpan<byte> text, SkiaSharp.SKTextEncoding encoding, SkiaSharp.SKPoint origin = default);
Parameters
- text
- ReadOnlySpan<Byte>
The text to process.
- encoding
- SKTextEncoding
The SKTextEncoding of the text.
- origin
- SKPoint
The starting position offset.
Returns
An array of positions for each glyph.
Applies to
GetGlyphPositions(String, SKPoint)
GetGlyphPositions(ReadOnlySpan<Char>, SKPoint)
Gets the x,y positions for the glyphs.
public SkiaSharp.SKPoint[] GetGlyphPositions(ReadOnlySpan<char> text, SkiaSharp.SKPoint origin = default);
Parameters
- text
- ReadOnlySpan<Char>
The text to process.
- origin
- SKPoint
The starting position offset.
Returns
An array of positions for each glyph.
Applies to
GetGlyphPositions(ReadOnlySpan<Char>, Span<SKPoint>, SKPoint)
Gets the x,y positions for the glyphs.
public void GetGlyphPositions(ReadOnlySpan<char> text, Span<SkiaSharp.SKPoint> offsets, SkiaSharp.SKPoint origin = default);
Parameters
- text
- ReadOnlySpan<Char>
The text to process.
- origin
- SKPoint
The starting position offset.