From b4fd777c23f6bc9762d1917dc25250f9b00843f2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 27 Mar 2025 15:37:01 -0600 Subject: [PATCH] [aat] Remove hb_aat_layout_get_tracking() again https://github.com/harfbuzz/harfbuzz/pull/5223 --- docs/harfbuzz-sections.txt | 1 - src/hb-aat-layout.cc | 24 ------------------------ src/hb-aat-layout.h | 4 ---- 3 files changed, 29 deletions(-) diff --git a/docs/harfbuzz-sections.txt b/docs/harfbuzz-sections.txt index bd79c106b..650c07a98 100644 --- a/docs/harfbuzz-sections.txt +++ b/docs/harfbuzz-sections.txt @@ -10,7 +10,6 @@ hb_aat_layout_get_feature_types hb_aat_layout_has_positioning hb_aat_layout_has_substitution hb_aat_layout_has_tracking -hb_aat_layout_get_tracking
diff --git a/src/hb-aat-layout.cc b/src/hb-aat-layout.cc index f65f117b8..a48c4e0bc 100644 --- a/src/hb-aat-layout.cc +++ b/src/hb-aat-layout.cc @@ -394,30 +394,6 @@ hb_aat_layout_has_tracking (hb_face_t *face) return face->table.trak->has_data (); } -/** - * hb_aat_layout_get_tracking: - * @font: #hb_font_t to work upon - * @direction: The direction of the text - * @tracking: The tracking value to apply - * - * Fetches the tracking value for the specified font and direction. - * The tracking value is a floating-point number that specifies the - * amount of tracking value to add between characters in the text. - * Most clients want to use 0. here. - * - * Return value: The tracking value for the specified font and direction - * XSince: REPLACEME - */ -hb_position_t -hb_aat_layout_get_tracking (hb_font_t *font, - hb_direction_t direction, - float tracking) -{ - const AAT::trak& trak = *font->face->table.trak; - - return trak.get_tracking (font, direction, tracking); -} - void hb_aat_layout_track (const hb_ot_shape_plan_t *plan, hb_font_t *font, diff --git a/src/hb-aat-layout.h b/src/hb-aat-layout.h index 6fc66d7c8..c682a2f6d 100644 --- a/src/hb-aat-layout.h +++ b/src/hb-aat-layout.h @@ -789,10 +789,6 @@ hb_aat_layout_has_positioning (hb_face_t *face); HB_EXTERN hb_bool_t hb_aat_layout_has_tracking (hb_face_t *face); -HB_EXTERN hb_position_t -hb_aat_layout_get_tracking (hb_font_t *font, - hb_direction_t direction, - float tracking); HB_END_DECLS