mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 09:09:13 +01:00
[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
This commit is contained in:
1 parent
8a7a5e9baa
commit
ef538ebafa
3 files changed
+3
-3
No files matched your search
@@ -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<unsigned> ();
|
||||
|
||||
@@ -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<unsigned> ();
|
||||
|
||||
@@ -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<unsigned> ();
|
||||
|
||||
Reference in new issue
Block a user