Subsetter size goes down from 190kb to 119kb. Main library about 7kb.
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
#include "hb-ot-cff1-table.hh"
#include "hb-cff1-interp-cs.hh"
+#ifndef HB_NO_CFF
+
using namespace CFF;
/* SID to code */
}
return false;
}
+
+#endif
#include "hb-ot-cff2-table.hh"
#include "hb-cff2-interp-cs.hh"
+#ifndef HB_NO_OT_FONT_CFF
+
using namespace CFF;
struct extents_param_t
return true;
}
+
+#endif
#include "hb-subset-cff-common.hh"
#include "hb-cff1-interp-cs.hh"
+#ifndef HB_NO_SUBSET_CFF
+
using namespace CFF;
struct remap_sid_t : remap_t
return result;
}
+
+#endif
#include "hb-subset-cff-common.hh"
#include "hb-cff2-interp-cs.hh"
+#ifndef HB_NO_SUBSET_CFF
+
using namespace CFF;
struct cff2_sub_table_offsets_t : cff_sub_table_offsets_t
return result;
}
+
+#endif