mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-15 01:18:13 +00:00
[subset] Drop fvar, avar, cvar, MVAR tables when in HB_NO_VAR mode
This commit is contained in:
parent
5ec21d4af4
commit
284889b031
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue