ot_math_get_glyph_variants


Description:


[ Version ( since = "1.3.3" ) ]
public uint ot_math_get_glyph_variants (Font font, Codepoint glyph, Direction direction, uint start_offset, out unowned OtMathGlypthVariant[] variants)

Fetches the MathGlyphConstruction for the specified font, glyph index, and direction.

The corresponding list of size variants is returned as a list of OtMathGlypthVariant structs.

<note>The direction parameter is only used to select between horizontal or vertical directions for the construction. Even though all Direction values are accepted, only the result of HB_DIRECTION_IS_HORIZONTAL is considered.</note>

Parameters:

font

Font to work upon

glyph

The index of the glyph to stretch

direction

The direction of the stretching (horizontal or vertical)

start_offset

offset of the first variant to retrieve

variants

array of variants returned

variants_count

Input = the maximum number of variants to return; Output = the actual number of variants returned

Returns:

the total number of size variants available or zero


Namespace: HarfBuzz