otMathGetGlyphKerning
fn
harfbuzz.types.Position otMathGetGlyphKerning(harfbuzz.font.Font font, harfbuzz.types.Codepoint glyph, harfbuzz.types.OtMathKern kern, harfbuzz.types.Position correctionHeight)Fetches the math kerning (cut-ins) value for the specified font, glyph index, and kern.
If the MathKern table is found, the function examines it to find a height value that is greater or equal to correction_height. If such a height value is found, corresponding kerning value from the table is returned. If no such height value is found, the last kerning value is returned.
Parameters
font | #hb_font_t to work upon |
glyph | The glyph index from which to retrieve the value |
kern | The #hb_ot_math_kern_t from which to retrieve the value |
correctionHeight | the correction height to use to determine the kerning. |
Returns
requested kerning value or zero