Font.GetGlyphAdvanceForDirection(UInt32, Direction, Int32, Int32) 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.
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.