otMathGetGlyphAssembly

fnuint otMathGetGlyphAssembly(harfbuzz.font.Font font, harfbuzz.types.Codepoint glyph, harfbuzz.types.Direction direction, uint startOffset, ref harfbuzz.types.OtMathGlyphPart[] parts, out harfbuzz.types.Position italicsCorrection)

Fetches the GlyphAssembly for the specified font, glyph index, and direction. Returned are a list of #hb_ot_math_glyph_part_t glyph parts that can be used to draw the glyph and an italics-correction value (if one is defined in the font).

<note>The direction parameter is only used to select between horizontal

or vertical directions for the construction. Even though all #hb_direction_t values are accepted, only the result of #HB_DIRECTION_IS_HORIZONTAL is considered.</note>

Parameters

font#hb_font_t to work upon
glyphThe index of the glyph to stretch
directiondirection of the stretching (horizontal or vertical)
startOffsetoffset of the first glyph part to retrieve
partsthe glyph parts returned
italicsCorrectionitalics correction of the glyph assembly

Returns

the total number of parts in the glyph assembly