Coverage Report

Created: 2026-03-31 11:00

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/work/workdir/UnpackedTarball/harfbuzz/src/hb-subset-table-other.cc
Line
Count
Source
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
72.2k
{
15
72.2k
  switch (tag)
16
72.2k
  {
17
6.57k
  case HB_TAG('g','l','y','f'): *success = _hb_subset_table<const OT::glyf> (plan, buf); return true;
18
0
  case HB_TAG('h','d','m','x'): *success = _hb_subset_table<const OT::hdmx> (plan, buf); return true;
19
6.57k
  case HB_TAG('n','a','m','e'): *success = _hb_subset_table<const OT::name> (plan, buf); return true;
20
6.57k
  case HB_TAG('h','h','e','a'): *success = true; return true; /* skip hhea, handled by hmtx */
21
6.57k
  case HB_TAG('h','m','t','x'): *success = _hb_subset_table<const OT::hmtx> (plan, buf); return true;
22
0
  case HB_TAG('v','h','e','a'): *success = true; return true; /* skip vhea, handled by vmtx */
23
0
  case HB_TAG('v','m','t','x'): *success = _hb_subset_table<const OT::vmtx> (plan, buf); return true;
24
6.57k
  case HB_TAG('m','a','x','p'): *success = _hb_subset_table<const OT::maxp> (plan, buf); return true;
25
6.57k
  case HB_TAG('l','o','c','a'): *success = true; return true; /* skip loca, handled by glyf */
26
0
  case HB_TAG('c','m','a','p'): *success = _hb_subset_table<const OT::cmap> (plan, buf); return true;
27
6.57k
  case HB_TAG('O','S','/','2'): *success = _hb_subset_table<const OT::OS2 > (plan, buf); return true;
28
6.57k
  case HB_TAG('p','o','s','t'): *success = _hb_subset_table<const OT::post> (plan, buf); return true;
29
72.2k
  }
30
19.7k
  return false;
31
72.2k
}