hb-subset-table-color.cc (844B)
1 #include "hb-subset-table.hh" 2 3 #include "OT/Color/sbix/sbix.hh" 4 #include "OT/Color/CPAL/CPAL.hh" 5 #include "OT/Color/COLR/COLR.hh" 6 #include "OT/Color/CBDT/CBDT.hh" 7 8 bool _hb_subset_table_color (hb_subset_plan_t *plan, hb_vector_t<char> &buf, hb_tag_t tag, bool *success) 9 { 10 #ifndef HB_NO_COLOR 11 switch (tag) 12 { 13 case HB_TAG('s','b','i','x'): *success = _hb_subset_table<const OT::sbix> (plan, buf); return true; 14 case HB_TAG('C','O','L','R'): *success = _hb_subset_table<const OT::COLR> (plan, buf); return true; 15 case HB_TAG('C','P','A','L'): *success = _hb_subset_table<const OT::CPAL> (plan, buf); return true; 16 case HB_TAG('C','B','L','C'): *success = _hb_subset_table<const OT::CBLC> (plan, buf); return true; 17 case HB_TAG('C','B','D','T'): *success = true; return true; /* skip CBDT, handled by CBLC */ 18 } 19 #endif 20 return false; 21 }