diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index 2633e7662..e6e985c38 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -435,7 +435,9 @@ glyf::_create_font_for_instancing (const hb_subset_plan_t *plan) const vars.push (var); } +#ifndef HB_NO_VAR hb_font_set_variations (font, vars.arrayZ, plan->user_axes_location->get_population ()); +#endif return font; } diff --git a/src/harfbuzz-subset.cc b/src/harfbuzz-subset.cc index a43485e6f..1676da02a 100644 --- a/src/harfbuzz-subset.cc +++ b/src/harfbuzz-subset.cc @@ -1,51 +1,13 @@ -#include "graph/gsubgpos-context.cc" -#include "hb-aat-layout.cc" -#include "hb-aat-map.cc" #include "hb-blob.cc" -#include "hb-buffer-serialize.cc" -#include "hb-buffer-verify.cc" -#include "hb-buffer.cc" -#include "hb-common.cc" -#include "hb-draw.cc" #include "hb-face.cc" -#include "hb-fallback-shape.cc" #include "hb-font.cc" #include "hb-map.cc" #include "hb-number.cc" #include "hb-ot-cff1-table.cc" #include "hb-ot-cff2-table.cc" -#include "hb-ot-color.cc" -#include "hb-ot-face.cc" #include "hb-ot-font.cc" -#include "hb-ot-layout.cc" -#include "hb-ot-map.cc" -#include "hb-ot-math.cc" -#include "hb-ot-meta.cc" -#include "hb-ot-metrics.cc" -#include "hb-ot-name.cc" -#include "hb-ot-shape-fallback.cc" -#include "hb-ot-shape-normalize.cc" -#include "hb-ot-shape.cc" -#include "hb-ot-shaper-arabic.cc" -#include "hb-ot-shaper-default.cc" -#include "hb-ot-shaper-hangul.cc" -#include "hb-ot-shaper-hebrew.cc" -#include "hb-ot-shaper-indic-table.cc" -#include "hb-ot-shaper-indic.cc" -#include "hb-ot-shaper-khmer.cc" -#include "hb-ot-shaper-myanmar.cc" -#include "hb-ot-shaper-syllabic.cc" -#include "hb-ot-shaper-thai.cc" -#include "hb-ot-shaper-use.cc" -#include "hb-ot-shaper-vowel-constraints.cc" -#include "hb-ot-tag.cc" -#include "hb-ot-var.cc" #include "hb-set.cc" -#include "hb-shape-plan.cc" -#include "hb-shape.cc" -#include "hb-shaper.cc" #include "hb-static.cc" -#include "hb-style.cc" #include "hb-subset-cff-common.cc" #include "hb-subset-cff1.cc" #include "hb-subset-cff2.cc" @@ -53,5 +15,3 @@ #include "hb-subset-plan.cc" #include "hb-subset-repacker.cc" #include "hb-subset.cc" -#include "hb-ucd.cc" -#include "hb-unicode.cc" diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index ca8a542e2..71bc908ff 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -345,7 +345,9 @@ _get_hb_font_with_variations (const hb_subset_plan_t *plan) vars.push (var); } +#ifndef HB_NO_VAR hb_font_set_variations (font, vars.arrayZ, plan->user_axes_location->get_population ()); +#endif return font; }