From 752060a49c533c84249707d5a2f026a5b5a4ea33 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 1 Sep 2022 13:47:12 -0600 Subject: [PATCH] [layout] Document hb_ot_layout_lookup_get_optical_bound() --- src/hb-ot-layout.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 90f2080f0..aa53054bb 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -2396,6 +2396,20 @@ struct hb_position_single_dispatch_t : ( _dispatch (obj, hb_prioritize, std::forward (ds)...) ) }; +/** + * hb_ot_layout_lookup_get_optical_bound: + * @face: a font. + * @lookup_index: index of the feature lookup to query. + * @direction: edge of the glyph to query. + * @glyph: a glyph id. + * + * Fetches the optical bound of a glyph positioned at the margin of text. + * The direction identifies which edge of the glyph to query. + * + * Return value: Adjustment value. Negative values mean the glyph will stick out of the margin. + * + * Since: REPLACEME + **/ hb_position_t hb_ot_layout_lookup_get_optical_bound (hb_font_t *font, unsigned lookup_index,