diff options
author | Thomas Petillon <tpetillon@gmail.com> | 2023-09-20 20:17:48 +0200 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2023-09-20 14:36:50 -0600 |
commit | 284889b0317c317ae00fe1a6e32db1f9213cb5e2 (patch) | |
tree | cb142db4474a01e1e66f3d7c28b4fd533bd668cf | |
parent | 5ec21d4af4bc620cb58ff715e2a66288128c8d6f (diff) | |
download | harfbuzz_ng-284889b0317c317ae00fe1a6e32db1f9213cb5e2.tar.gz |
[subset] Drop fvar, avar, cvar, MVAR tables when in HB_NO_VAR mode
-rw-r--r-- | src/hb-subset.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hb-subset.cc b/src/hb-subset.cc index de3e876f7..2c0752170 100644 --- a/src/hb-subset.cc +++ b/src/hb-subset.cc @@ -515,6 +515,8 @@ _subset_table (hb_subset_plan_t *plan, case HB_OT_TAG_HVAR: return _subset<const OT::HVAR> (plan, buf); case HB_OT_TAG_VVAR: return _subset<const OT::VVAR> (plan, buf); #endif + +#ifndef HB_NO_VAR case HB_OT_TAG_fvar: if (plan->user_axes_location.is_empty ()) return _passthrough (plan, tag); return _subset<const OT::fvar> (plan, buf); @@ -527,6 +529,8 @@ _subset_table (hb_subset_plan_t *plan, case HB_OT_TAG_MVAR: if (plan->user_axes_location.is_empty ()) return _passthrough (plan, tag); return _subset<const OT::MVAR> (plan, buf); +#endif + case HB_OT_TAG_STAT: if (!plan->user_axes_location.is_empty ()) return _subset<const OT::STAT> (plan, buf); else return _passthrough (plan, tag); |