tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

hb-subset-table-layout.cc (927B)


      1 #include "hb-subset-table.hh"
      2 
      3 #include "hb-ot-layout-gdef-table.hh"
      4 #include "hb-ot-layout-gsub-table.hh"
      5 #include "hb-ot-layout-gpos-table.hh"
      6 #include "hb-ot-layout-base-table.hh"
      7 #include "hb-ot-math-table.hh"
      8 
      9 bool _hb_subset_table_layout		(hb_subset_plan_t *plan, hb_vector_t<char> &buf, hb_tag_t tag, bool *success)
     10 {
     11 #ifndef HB_NO_SUBSET_LAYOUT
     12  switch (tag)
     13  {
     14  case HB_TAG('G','D','E','F'): *success = _hb_subset_table<const OT::GDEF> (plan, buf); return true;
     15  case HB_TAG('G','S','U','B'): *success = _hb_subset_table<const OT::Layout::GSUB> (plan, buf); return true;
     16  case HB_TAG('G','P','O','S'): *success = _hb_subset_table<const OT::Layout::GPOS> (plan, buf); return true;
     17  case HB_TAG('B','A','S','E'): *success = _hb_subset_table<const OT::BASE> (plan, buf); return true;
     18  case HB_TAG('M','A','T','H'): *success = _hb_subset_table<const OT::MATH> (plan, buf); return true;
     19  }
     20 #endif
     21  return false;
     22 }