otLayoutGetLigatureCarets
fn
uint 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
font | The #hb_font_t to work on |
direction | The #hb_direction_t text direction to use |
glyph | The #hb_codepoint_t code point to query |
startOffset | offset of the first caret position to retrieve |
caretArray | The array of caret positions found for the query |
Returns
Total number of ligature caret positions for glyph.