mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 00:41:09 +01:00
[doc] Reference CFF2 partial-instancing work for the avar2 suppression
The self-contained-pin suppression for CFF2 faces can be lifted once partial CFF2 instancing lands (harfbuzz/harfbuzz#4710); fontTools implements the design to port in fonttools/fonttools#3506 (instantiateCFF2). Point both the code comment and AVAR2-INSTANCING.md at them, and note that the underlying CFF2 limitation also silently flattens non-avar2 partial instancing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
bbca76d21b
commit
0bb11e99d7
2 files changed
+14
-4
No files matched your search
+7
-1
@@ -341,7 +341,13 @@ Detection is suppressed (such pins stay in fvar as ordinary hidden axes)
|
||||
when the face has a CFF2 table -- CFF2 has no partial-pin instancing path;
|
||||
its `pinned` path flattens ALL blends and drops the CFF2 VariationStore --
|
||||
or a VARC table, which passes through verbatim with explicit fvar axis
|
||||
indices that axis removal would desynchronize.
|
||||
indices that axis removal would desynchronize. The CFF2 limitation (which
|
||||
also silently flattens non-avar2 partial instancing of CFF2 fonts) is
|
||||
harfbuzz/harfbuzz#4710; fontTools implements proper partial CFF2
|
||||
instancing in fonttools/fonttools#3506 (`instantiateCFF2`: lift blend
|
||||
deltas into the CFF2 VarStore, instantiate it, read back the rewritten
|
||||
deltas), which is the design to port. Lifting the suppression then just
|
||||
means deleting the CFF2 check here.
|
||||
|
||||
|
||||
### Chunk 8: Variation Culling
|
||||
|
||||
@@ -453,9 +453,13 @@ normalize_axes_location (hb_face_t *face, hb_subset_plan_t *plan)
|
||||
* axes: pinned axes whose final coordinate is constant. Those are
|
||||
* removed from fvar, so suppress the detection when the face has
|
||||
* tables that cannot follow: CFF2 has no partial-pin instancing path
|
||||
* (its 'pinned' path flattens ALL blends), and VARC passes through
|
||||
* verbatim with explicit fvar axis indices that renumbering would
|
||||
* desynchronize. Such axes stay in fvar as ordinary hidden pins. */
|
||||
* (its 'pinned' path flattens ALL blends; lift this once
|
||||
* https://github.com/harfbuzz/harfbuzz/pull/4710 lands, porting
|
||||
* fontTools' instantiateCFF2 from
|
||||
* https://github.com/fonttools/fonttools/pull/3506), and VARC passes
|
||||
* through verbatim with explicit fvar axis indices that renumbering
|
||||
* would desynchronize. Such axes stay in fvar as ordinary hidden
|
||||
* pins. */
|
||||
bool detect_self_contained = true;
|
||||
for (hb_tag_t table_tag : { HB_TAG ('C','F','F','2'), HB_TAG ('V','A','R','C') })
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user