otLayoutLookupGetOpticalBound
fn
harfbuzz.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
font | a font. |
lookupIndex | index of the feature lookup to query. |
direction | edge of the glyph to query. |
glyph | a glyph id. |
Returns
Adjustment value. Negative values mean the glyph will stick out of the margin.