Edit

SKFont.GetGlyphOffsets Method

Definition

Overloads

Name Description
GetGlyphOffsets(ReadOnlySpan<Char>, Single)

Gets the horizontal offsets for the glyphs.

GetGlyphOffsets(IntPtr, Int32, SKTextEncoding, Span<Single>, Single)

Gets the horizontal offsets for the glyphs.

GetGlyphOffsets(IntPtr, Int32, SKTextEncoding, Single)

Gets the horizontal offsets for the glyphs.

GetGlyphOffsets(String, Span<Single>, Single)

Gets the horizontal offsets for the glyphs.

GetGlyphOffsets(ReadOnlySpan<UInt16>, Span<Single>, Single)

Gets the horizontal offsets for the glyphs.

GetGlyphOffsets(ReadOnlySpan<Byte>, SKTextEncoding, Span<Single>, Single)

Gets the horizontal offsets for the glyphs.

GetGlyphOffsets(ReadOnlySpan<Byte>, SKTextEncoding, Single)

Gets the horizontal offsets for the glyphs.

GetGlyphOffsets(String, Single)

Gets the horizontal offsets for the glyphs.

GetGlyphOffsets(ReadOnlySpan<UInt16>, Single)

Gets the horizontal offsets for the glyphs.

GetGlyphOffsets(ReadOnlySpan<Char>, Span<Single>, Single)

Gets the horizontal offsets for the glyphs.

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

Single[]

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.

offsets
Span<Single>

The span to receive the horizontal offsets.

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

Single[]

An array of horizontal offsets for each glyph.

Applies to

GetGlyphOffsets(String, Span<Single>, Single)

Gets the horizontal offsets for the glyphs.

public void GetGlyphOffsets(string text, Span<float> offsets, float origin = 0);

Parameters

text
String

The text to process.

offsets
Span<Single>

The span to receive the horizontal offsets.

origin
Single

The starting horizontal offset.

Applies to

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.

offsets
Span<Single>

The span to receive the horizontal offsets.

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.

offsets
Span<Single>

The span to receive the horizontal offsets.

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

Single[]

An array of horizontal offsets for each glyph.

Applies to

GetGlyphOffsets(String, Single)

Gets the horizontal offsets for the glyphs.

public float[] GetGlyphOffsets(string text, float origin = 0);

Parameters

text
String

The text to process.

origin
Single

The starting horizontal offset.

Returns

Single[]

An array of horizontal offsets for each glyph.

Applies to

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

Single[]

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.

offsets
Span<Single>

The span to receive the horizontal offsets.

origin
Single

The starting horizontal offset.

Applies to