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