Lines Matching defs:coverage
17 // Determine coverage of font given its raw "cmap" OpenType table
40 static void addRange(vector<uint32_t> &coverage, uint32_t start, uint32_t end) {
44 if (coverage.empty() || coverage.back() < start) {
45 coverage.push_back(start);
46 coverage.push_back(end);
48 coverage.back() = end;
52 // Get the coverage information out of a Format 4 subtable, storing it in the coverage vector
53 static bool getCoverageFormat4(vector<uint32_t>& coverage, const uint8_t* data, size_t size) {
77 addRange(coverage, start, end + 1);
81 addRange(coverage, j, j + 1);
95 addRange(coverage, j, j + 1);
103 // Get the coverage information out of a Format 12 subtable, storing it in the coverage vector
104 static bool getCoverageFormat12(vector<uint32_t>& coverage, const uint8_t* data, size_t size) {
129 addRange(coverage, start, end + 1); // file is inclusive, vector is exclusive
134 bool CmapCoverage::getCoverage(SparseBitSet& coverage, const uint8_t* cmap_data, size_t cmap_size,
195 coverage.initFromRanges(&coverageVec.front(), coverageVec.size() >> 1);