ot_math_get_glyph_kernings
Description:
[ Version ( since = "3.4.0" ) ]
public uint ot_math_get_glyph_kernings (Font font, Codepoint glyph, OtMathKern kern, uint start_offset, out unowned ot_math_kern_entry_t[] kern_entries)
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 ot_math_kern_entry_t structs.
See also 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
kern_value of the uppermost
ot_math_kern_entry_t actually comes from the font; its
corresponding max_correction_height is
always set to <code>INT32_MAX</code>.</note>
Parameters:
| font |
Font to work upon |
| glyph |
The glyph index from which to retrieve the kernings |
| kern |
The OtMathKern from which to retrieve the kernings |
| start_offset |
offset of the first kern entry to retrieve |
| kern_entries |
array of kern entries returned |
| entries_count |
Input = the maximum number of kern entries to return; Output = the actual number of kern entries returned |
Returns:
|
the total number of kern values available or zero |