otMathGetGlyphVariants

fnuint otMathGetGlyphVariants(harfbuzz.font.Font font, harfbuzz.types.Codepoint glyph, harfbuzz.types.Direction direction, uint startOffset, ref harfbuzz.types.OtMathGlyphVariant[] variants)

Fetches the MathGlyphConstruction for the specified font, glyph index, and direction. The corresponding list of size variants is returned as a list of #hb_ot_math_glyph_variant_t structs.

<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
directionThe direction of the stretching (horizontal or vertical)
startOffsetoffset of the first variant to retrieve
variantsarray of variants returned

Returns

the total number of size variants available or zero