From ef538ebafa3b82c656f2821a02da44d03d557c22 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 4 Jun 2026 01:07:56 +0200 Subject: [PATCH] [graph] Clarify 24-bit layout splitter policy Update graph splitter comments to document that 24-bit layout formats are intentionally left unsplit because their relevant offsets are already widened. Testing: not run; comment-only change. Assisted-by: OpenAI Codex --- src/graph/ligature-graph.hh | 2 +- src/graph/markbasepos-graph.hh | 2 +- src/graph/pairpos-graph.hh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graph/ligature-graph.hh b/src/graph/ligature-graph.hh index cfcd11f27..ab6b34c42 100644 --- a/src/graph/ligature-graph.hh +++ b/src/graph/ligature-graph.hh @@ -508,7 +508,7 @@ struct LigatureSubst : public OT::Layout::GSUB_impl::LigatureSubst return ((LigatureSubstFormat1*)(&u.format1))->split_subtables (c, this_index); #ifndef HB_NO_BEYOND_64K case 2: HB_FALLTHROUGH; - // Don't split 24bit Ligature Subs + // 24-bit LigatureSubst already has widened offsets; leave it unsplit. #endif default: return hb_vector_t (); diff --git a/src/graph/markbasepos-graph.hh b/src/graph/markbasepos-graph.hh index a653f402a..a17269d37 100644 --- a/src/graph/markbasepos-graph.hh +++ b/src/graph/markbasepos-graph.hh @@ -483,7 +483,7 @@ struct MarkBasePos : public OT::Layout::GPOS_impl::MarkBasePos return ((MarkBasePosFormat1*)(&u.format1))->split_subtables (c, this_index); #ifndef HB_NO_BEYOND_64K case 2: HB_FALLTHROUGH; - // Don't split 24bit MarkBasePos's. + // 24-bit MarkBasePos already has widened offsets; leave it unsplit. #endif default: return hb_vector_t (); diff --git a/src/graph/pairpos-graph.hh b/src/graph/pairpos-graph.hh index 7c3b04819..58110584e 100644 --- a/src/graph/pairpos-graph.hh +++ b/src/graph/pairpos-graph.hh @@ -614,7 +614,7 @@ struct PairPos : public OT::Layout::GPOS_impl::PairPos #ifndef HB_NO_BEYOND_64K case 3: HB_FALLTHROUGH; case 4: HB_FALLTHROUGH; - // Don't split 24bit PairPos's. + // 24-bit PairPos formats already have widened offsets; leave them unsplit. #endif default: return hb_vector_t ();