hb-subset-table-other.cc (1663B)
1 #include "hb-subset-table.hh" 2 3 #include "hb-ot-cmap-table.hh" 4 #include "hb-ot-glyf-table.hh" 5 #include "hb-ot-hdmx-table.hh" 6 #include "hb-ot-hhea-table.hh" 7 #include "hb-ot-hmtx-table.hh" 8 #include "hb-ot-maxp-table.hh" 9 #include "hb-ot-os2-table.hh" 10 #include "hb-ot-name-table.hh" 11 #include "hb-ot-post-table.hh" 12 13 bool _hb_subset_table_other (hb_subset_plan_t *plan, hb_vector_t<char> &buf, hb_tag_t tag, bool *success) 14 { 15 switch (tag) 16 { 17 case HB_TAG('g','l','y','f'): *success = _hb_subset_table<const OT::glyf> (plan, buf); return true; 18 case HB_TAG('h','d','m','x'): *success = _hb_subset_table<const OT::hdmx> (plan, buf); return true; 19 case HB_TAG('n','a','m','e'): *success = _hb_subset_table<const OT::name> (plan, buf); return true; 20 case HB_TAG('h','h','e','a'): *success = true; return true; /* skip hhea, handled by hmtx */ 21 case HB_TAG('h','m','t','x'): *success = _hb_subset_table<const OT::hmtx> (plan, buf); return true; 22 case HB_TAG('v','h','e','a'): *success = true; return true; /* skip vhea, handled by vmtx */ 23 case HB_TAG('v','m','t','x'): *success = _hb_subset_table<const OT::vmtx> (plan, buf); return true; 24 case HB_TAG('m','a','x','p'): *success = _hb_subset_table<const OT::maxp> (plan, buf); return true; 25 case HB_TAG('l','o','c','a'): *success = true; return true; /* skip loca, handled by glyf */ 26 case HB_TAG('c','m','a','p'): *success = _hb_subset_table<const OT::cmap> (plan, buf); return true; 27 case HB_TAG('O','S','/','2'): *success = _hb_subset_table<const OT::OS2 > (plan, buf); return true; 28 case HB_TAG('p','o','s','t'): *success = _hb_subset_table<const OT::post> (plan, buf); return true; 29 } 30 return false; 31 }