ot_layout_lookup_get_glyph_alternates


Description:


[ Version ( since = "2.6.8" ) ]
public uint ot_layout_lookup_get_glyph_alternates (Face face, uint lookup_index, Codepoint glyph, uint start_offset, out unowned Codepoint[] alternate_glyphs)

Fetches alternates of a glyph from a given GSUB lookup index.

Note that for one-to-one GSUB glyph substitutions, this function fetches the substituted glyph.

Parameters:

face

a face.

lookup_index

index of the feature lookup to query.

glyph

a glyph id.

start_offset

starting offset.

alternate_glyphs

A glyphs buffer. Alternate glyphs associated with the glyph id.

alternate_count

Input = the maximum number of alternate glyphs to return; Output = the actual number of alternate glyphs returned (may be zero).

Returns:

Total number of alternates found in the specific lookup index for the given glyph id.


Namespace: HarfBuzz