From 691cc939768940f8de1ac2dbfcd6078a2e249e1e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 6 Feb 2025 20:08:16 +0000 Subject: [PATCH] [trak] Fix build without STAT --- src/hb-ot-shape.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index e507d2f3e..15f6c6abf 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -211,7 +211,12 @@ hb_ot_shape_planner_t::compile (hb_ot_shape_plan_t &plan, plan.adjust_mark_positioning_when_zeroing = false; /* According to Ned, trak is applied by default for "modern fonts", as detected by presence of STAT table. */ +#ifndef HB_NO_STYLE plan.apply_trak = plan.requested_tracking && hb_aat_layout_has_tracking (face) && face->table.STAT->has_data (); +#else + plan.apply_trak = false; +#endif + #endif }