ot_layout_get_ligature_carets


Description:


public uint ot_layout_get_ligature_carets (Font font, Direction direction, Codepoint glyph, uint start_offset, out Position[] caret_array)

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 Font to work on

direction

The Direction text direction to use

glyph

The Codepoint code point to query

start_offset

offset of the first caret position to retrieve

caret_array

The array of caret positions found for the query

caret_count

Input = the maximum number of caret positions to return; Output = the actual number of caret positions returned (may be zero)

Returns:

Total number of ligature caret positions for glyph.


Namespace: HarfBuzz