diff --git a/src/hb-ot-cff1-table.cc b/src/hb-ot-cff1-table.cc index 2844f3ca4e75c3eedd5970bc68f2a0e1c31d968a..e6dd6a7b8c2d387b7a6b7b029167066b1fe2c524 100644 --- a/src/hb-ot-cff1-table.cc +++ b/src/hb-ot-cff1-table.cc @@ -27,6 +27,8 @@ #include "hb-ot-cff1-table.hh" #include "hb-cff1-interp-cs.hh" +#ifndef HB_NO_CFF + using namespace CFF; /* SID to code */ @@ -388,3 +390,5 @@ bool OT::cff1::accelerator_t::get_seac_components (hb_codepoint_t glyph, hb_code } return false; } + +#endif diff --git a/src/hb-ot-cff2-table.cc b/src/hb-ot-cff2-table.cc index a1aaef6369c66c5ac7609b129bc881b3c66294e5..f1fa6ec30b86ea29b7cf90954d83bec1417adf2b 100644 --- a/src/hb-ot-cff2-table.cc +++ b/src/hb-ot-cff2-table.cc @@ -27,6 +27,8 @@ #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 @@ -139,3 +141,5 @@ bool OT::cff2::accelerator_t::get_extents (hb_font_t *font, return true; } + +#endif diff --git a/src/hb-subset-cff1.cc b/src/hb-subset-cff1.cc index ab3ad0936fa35b76dfe28e2df558fb97e0bc451c..64b8b151bef1552406f186935d45f17d2f21e9b5 100644 --- a/src/hb-subset-cff1.cc +++ b/src/hb-subset-cff1.cc @@ -32,6 +32,8 @@ #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 @@ -1118,3 +1120,5 @@ hb_subset_cff1 (hb_subset_plan_t *plan, return result; } + +#endif diff --git a/src/hb-subset-cff2.cc b/src/hb-subset-cff2.cc index 9a03c3ed96796123b181f3eea2ba754d42ddcc73..729457889c406eec7359fb931ce060e05b0b38d6 100644 --- a/src/hb-subset-cff2.cc +++ b/src/hb-subset-cff2.cc @@ -32,6 +32,8 @@ #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 @@ -626,3 +628,5 @@ hb_subset_cff2 (hb_subset_plan_t *plan, return result; } + +#endif