otLayoutLookupGetOpticalBound

fnharfbuzz.types.Position otLayoutLookupGetOpticalBound(harfbuzz.font.Font font, uint lookupIndex, harfbuzz.types.Direction direction, harfbuzz.types.Codepoint glyph)

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

Parameters

fonta font.
lookupIndexindex of the feature lookup to query.
directionedge of the glyph to query.
glypha glyph id.

Returns

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