提交 7f6fca4e 编写于 作者: B Behdad Esfahbod

Force-disable CFF code under disabling conditions

Subsetter size goes down from 190kb to 119kb.  Main library about 7kb.

Part of https://github.com/harfbuzz/harfbuzz/issues/1652
上级 5249eee4
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
#include "hb-ot-cff1-table.hh" #include "hb-ot-cff1-table.hh"
#include "hb-cff1-interp-cs.hh" #include "hb-cff1-interp-cs.hh"
#ifndef HB_NO_CFF
using namespace CFF; using namespace CFF;
/* SID to code */ /* SID to code */
...@@ -388,3 +390,5 @@ bool OT::cff1::accelerator_t::get_seac_components (hb_codepoint_t glyph, hb_code ...@@ -388,3 +390,5 @@ bool OT::cff1::accelerator_t::get_seac_components (hb_codepoint_t glyph, hb_code
} }
return false; return false;
} }
#endif
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
#include "hb-ot-cff2-table.hh" #include "hb-ot-cff2-table.hh"
#include "hb-cff2-interp-cs.hh" #include "hb-cff2-interp-cs.hh"
#ifndef HB_NO_OT_FONT_CFF
using namespace CFF; using namespace CFF;
struct extents_param_t struct extents_param_t
...@@ -139,3 +141,5 @@ bool OT::cff2::accelerator_t::get_extents (hb_font_t *font, ...@@ -139,3 +141,5 @@ bool OT::cff2::accelerator_t::get_extents (hb_font_t *font,
return true; return true;
} }
#endif
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
#include "hb-subset-cff-common.hh" #include "hb-subset-cff-common.hh"
#include "hb-cff1-interp-cs.hh" #include "hb-cff1-interp-cs.hh"
#ifndef HB_NO_SUBSET_CFF
using namespace CFF; using namespace CFF;
struct remap_sid_t : remap_t struct remap_sid_t : remap_t
...@@ -1118,3 +1120,5 @@ hb_subset_cff1 (hb_subset_plan_t *plan, ...@@ -1118,3 +1120,5 @@ hb_subset_cff1 (hb_subset_plan_t *plan,
return result; return result;
} }
#endif
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
#include "hb-subset-cff-common.hh" #include "hb-subset-cff-common.hh"
#include "hb-cff2-interp-cs.hh" #include "hb-cff2-interp-cs.hh"
#ifndef HB_NO_SUBSET_CFF
using namespace CFF; using namespace CFF;
struct cff2_sub_table_offsets_t : cff_sub_table_offsets_t struct cff2_sub_table_offsets_t : cff_sub_table_offsets_t
...@@ -626,3 +628,5 @@ hb_subset_cff2 (hb_subset_plan_t *plan, ...@@ -626,3 +628,5 @@ hb_subset_cff2 (hb_subset_plan_t *plan,
return result; return result;
} }
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册