otLayoutGetLigatureCarets

fnuint otLayoutGetLigatureCarets(harfbuzz.font.Font font, harfbuzz.types.Direction direction, harfbuzz.types.Codepoint glyph, uint startOffset, ref harfbuzz.types.Position[] caretArray)

Fetches a list of the caret positions defined for a ligature glyph in the GDEF table of the font. The list returned will begin at the offset provided.

Note that a ligature that is formed from n characters will have n-1 caret positions. The first character is not represented in the array, since its caret position is the glyph position.

The positions returned by this function are 'unshaped', and will have to be fixed up for kerning that may be applied to the ligature glyph.

Parameters

fontThe #hb_font_t to work on
directionThe #hb_direction_t text direction to use
glyphThe #hb_codepoint_t code point to query
startOffsetoffset of the first caret position to retrieve
caretArrayThe array of caret positions found for the query

Returns

Total number of ligature caret positions for glyph.