Uredi

Font.GetGlyphAdvanceForDirection(UInt32, Direction, Int32, Int32) Method

Definition

Gets the advance of a glyph for the specified direction.

public void GetGlyphAdvanceForDirection(uint glyph, HarfBuzzSharp.Direction direction, out int x, out int y);

Parameters

glyph
UInt32

The glyph ID.

direction
Direction

The text direction.

x
Int32

Returns the horizontal advance.

y
Int32

Returns the vertical advance.

Remarks

For horizontal text, x contains the advance; for vertical text, y contains the advance.

Applies to