Searched refs:offSize (Results 1 – 5 of 5) sorted by relevance
/external/harfbuzz_ng/src/ |
D | hb-ot-cff-common.hh | 89 (c->check_struct (this) && offSize >= 1 && offSize <= 4 && in sanitize() 90 c->check_array (offsets, offSize, count + 1) && in sanitize() 94 static unsigned int calculate_offset_array_size (unsigned int offSize, unsigned int count) in calculate_offset_array_size() 95 { return offSize * (count + 1); } in calculate_offset_array_size() 98 { return calculate_offset_array_size (offSize, count); } in offset_array_size() 100 …static unsigned int calculate_serialized_size (unsigned int offSize, unsigned int count, unsigned … in calculate_serialized_size() 105 return min_size + calculate_offset_array_size (offSize, count) + dataSize; in calculate_serialized_size() 134 this->offSize.set (offSize_); in serialize() 178 HBUINT8 *p = offsets + offSize * index + offSize; in set_offset_at() 179 unsigned int size = offSize; in set_offset_at() [all …]
|
D | hb-subset-cff1.cc | 638 offsets.topDictInfo.offSize = calcOffSize(topDictSize); in create() 639 if (unlikely (offsets.topDictInfo.offSize > 4)) in create() 642 (offsets.topDictInfo.offSize, in create() 678 …exInfo.size = acc.stringIndex->calculate_serialized_size (offsets.stringIndexInfo.offSize, sidmap); in create() 708 offsets.globalSubrsInfo.offSize = calcOffSize (dataSize); in create() 709 if (unlikely (offsets.globalSubrsInfo.offSize > 4)) in create() 711 …nfo.size = CFF1Subrs::calculate_serialized_size (offsets.globalSubrsInfo.offSize, subset_globalsub… in create() 731 offsets.localSubrsInfos[fd].offSize = calcOffSize (dataSize); in create() 732 if (unlikely (offsets.localSubrsInfos[fd].offSize > 4)) in create() 734 …size = CFF1Subrs::calculate_serialized_size (offsets.localSubrsInfos[fd].offSize, subset_localsubr… in create() [all …]
|
D | hb-subset-cff2.cc | 312 offsets.globalSubrsInfo.offSize = calcOffSize (dataSize); in create() 313 …nfo.size = CFF2Subrs::calculate_serialized_size (offsets.globalSubrsInfo.offSize, subset_globalsub… in create() 333 offsets.localSubrsInfos[fd].offSize = calcOffSize (dataSize); in create() 334 …size = CFF2Subrs::calculate_serialized_size (offsets.localSubrsInfos[fd].offSize, subset_localsubr… in create() 379 offsets.FDArrayInfo.offSize = calcOffSize (dictsSize); in create() 380 …final_size += CFF2Index::calculate_serialized_size (offsets.FDArrayInfo.offSize, subset_fdcount, d… in create() 387 offsets.charStringsInfo.offSize = calcOffSize (dataSize); in create() 388 …final_size += CFF2CharStrings::calculate_serialized_size (offsets.charStringsInfo.offSize, plan->g… in create() 472 …if (unlikely (!dest->serialize (&c, plan.offsets.globalSubrsInfo.offSize, plan.subset_globalsubrs)… in _write_cff2() 511 if (unlikely (!fda->serialize (&c, plan.offsets.FDArrayInfo.offSize, in _write_cff2() [all …]
|
D | hb-ot-cff1-table.hh | 604 unsigned int calculate_serialized_size (unsigned int &offSize /*OUT*/, const Remap &sidmap) const in calculate_serialized_size() 606 offSize = 0; in calculate_serialized_size() 615 offSize = calcOffSize(dataSize); in calculate_serialized_size() 616 return CFF1Index::calculate_serialized_size (offSize, sidmap.get_count (), dataSize); in calculate_serialized_size() 1291 HBUINT8 offSize; /* offset size (unused?) */ member
|
/external/fonttools/Lib/fontTools/cffLib/ |
D | __init__.py | 49 self.offSize = struct.unpack("B", file.read(1))[0] 124 self.offSize = 4 # will most likely change in CFFWriter.toFile(). 126 writer.add(struct.pack("B", self.offSize)) 180 self.offSize = 4 339 self.offSize = calcOffSize(lastPosList[-1]) 340 self.data[1] = struct.pack("B", self.offSize) 353 offSize = 1 355 offSize = 2 357 offSize = 3 359 offSize = 4 [all …]
|