otLayoutLookupGetOpticalBound

Fetches the optical bound of a glyph positioned at the margin of text. The direction identifies which edge of the glyph to query.

Parameters

font harfbuzz.font.Font

a font.

lookupIndex uint

index of the feature lookup to query.

direction harfbuzz.types.Direction

edge of the glyph to query.

glyph harfbuzz.types.Codepoint

a glyph id.

Return Value

Type: harfbuzz.types.Position

Adjustment value. Negative values mean the glyph will stick out of the margin.