Edit

Font.GetHorizontalGlyphAdvances Method

Definition

Overloads

Name Description
GetHorizontalGlyphAdvances(ReadOnlySpan<UInt32>)

Gets the horizontal advance widths of multiple glyphs.

GetHorizontalGlyphAdvances(IntPtr, Int32)

Gets the horizontal advance widths of multiple glyphs.

GetHorizontalGlyphAdvances(ReadOnlySpan<UInt32>)

Gets the horizontal advance widths of multiple glyphs.

public int[] GetHorizontalGlyphAdvances(ReadOnlySpan<uint> glyphs);

Parameters

glyphs
ReadOnlySpan<UInt32>

The span of glyph IDs.

Returns

Int32[]

An array of horizontal advances in font units.

Applies to

GetHorizontalGlyphAdvances(IntPtr, Int32)

Gets the horizontal advance widths of multiple glyphs.

public int[] GetHorizontalGlyphAdvances(IntPtr firstGlyph, int count);

Parameters

firstGlyph
IntPtr

A pointer to the first glyph ID.

count
Int32

The number of glyphs.

Returns

Int32[]

An array of horizontal advances in font units.

Applies to