otMathGetGlyphKernings

fnuint otMathGetGlyphKernings(harfbuzz.font.Font font, harfbuzz.types.Codepoint glyph, harfbuzz.types.OtMathKern kern, uint startOffset, ref harfbuzz.types.OtMathKernEntry[] kernEntries)

Fetches the raw MathKern (cut-in) data for the specified font, glyph index, and kern. The corresponding list of kern values and correction heights is returned as a list of #hb_ot_math_kern_entry_t structs.

See also #hb_ot_math_get_glyph_kerning, which handles selecting the appropriate kern value for a given correction height.

<note>For a glyph with n defined kern values (where n > 0), there are only

nāˆ’1 defined correction heights, as each correction height defines a boundary past which the next kern value should be selected. Therefore, only the #hb_ot_math_kern_entry_t.kern_value of the uppermost #hb_ot_math_kern_entry_t actually comes from the font; its corresponding #hb_ot_math_kern_entry_t.max_correction_height is always set to

INT32_MAX.</note>

Parameters

font#hb_font_t to work upon
glyphThe glyph index from which to retrieve the kernings
kernThe #hb_ot_math_kern_t from which to retrieve the kernings
startOffsetoffset of the first kern entry to retrieve
kernEntriesarray of kern entries returned

Returns

the total number of kern values available or zero