Function

HarfBuzz-0.0HarfBuzzot_layout_lookup_get_optical_boundSince 5.3.0

  • 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: font_t

      a font.

    • lookup_index: number

      index of the feature lookup to query.

    • direction: direction_t

      edge of the glyph to query.

    • glyph: number

      a glyph id.

    Returns number

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

    5.3.0