otLayoutGetLigatureCarets

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

font harfbuzz.font.Font

The #hb_font_t to work on

direction harfbuzz.types.Direction

The #hb_direction_t text direction to use

glyph harfbuzz.types.Codepoint

The #hb_codepoint_t code point to query

startOffset uint

offset of the first caret position to retrieve

caretArray harfbuzz.types.Position[]

The array of caret positions found for the query

Return Value

Type: uint

Total number of ligature caret positions for glyph.