Lines Matching refs:length

311 			$record['length'] = $this->read_ulong();
324 if ($t['length'] > 0 && $t['length'] < $this->maxStrLenRead) { // 1.02
325 $table = $this->get_chunk($t['offset'], $t['length']);
390 $length = $this->tables[$tag]['length'];
392 return [$offset, $length];
514 function get_chunk($pos, $length)
517 if ($length < 1) {
521 $data = (fread($this->fh, $length));
525 // the $length parameter will be ignored - fread is limited in size (usually 8192 bytes)
526 // to fix this, the data length must be checked after reading. If the read was incomplete,
529 while ($dataLen < $length && !feof($this->fh)) {
530 $data .= fread($this->fh, $length - $dataLen);
538 list($pos, $length) = $this->get_table_pos($tag);
539 if ($length == 0) {
544 return (fread($this->fh, $length));
694 $length = $this->read_ushort();
705 if ($length % 2 != 0) {
706 throw new \Mpdf\Exception\FontException("Error loading font: PostScript name is UTF-16BE string of odd length for font $this->filename");
708 $length /= 2;
710 while ($length > 0) {
713 $length -= 1;
719 $N = $this->get_chunk($string_data_offset + $offset, $length);
860 $this->_pos += 10; //PANOSE = 10 byte length
1062 $length = $this->read_ulong();
1063 $limit = $unicode_cmap_offset + $length;
1366 $GSUB_length = $this->tables['GSUB']['length'];
1367 $s .= fread($this->fh, $this->tables['GSUB']['length']);
1372 $s .= fread($this->fh, $this->tables['GPOS']['length']);
3661 $length = 16 + (8 * $segCount) + ($numGlyphs + 1);
3670 4, $length, 0, // Format 4 Mapping subtable: format, length, language
4043 $length = $this->read_ulong();
4044 $limit = $unicode_cmap_offset + $length;
4275 $length = 16 + (8 * $segCount) + ($numGlyphs + 1);
4277 4, $length, 0, // Format 4 Mapping subtable: format, length, language
4326 $length = 10 + $entryCount * 2;
4328 $off = 20 + $length;
4338 6, $length, // Format 6 Mapping table: format, length
4653 $length = $this->read_ushort();
4654 $limit = $unicode_cmap_offset + $length;
4896 $length = 16 + (8 * $segCount) + ($numGlyphs + 1);
4904 4, $length, 0, // Format 4 Mapping subtable: format, length, language