Lines Matching defs:tag

308 			$record['tag'] = $this->read_tag();
312 $this->tables[$record['tag']] = $record;
327 if ($t['tag'] === 'head') {
335 throw new \Mpdf\Exception\FontException(sprintf('TTF file "%s": invalid checksum %s table: %s (expected %s)', $this->filename, dechex($checksum[0]) . dechex($checksum[1]), $t['tag'], dechex($xchecksum[0]) . dechex($xchecksum[1])));
384 function get_table_pos($tag)
386 if (!isset($this->tables[$tag])) {
389 $offset = $this->tables[$tag]['offset'];
390 $length = $this->tables[$tag]['length'];
407 function seek_table($tag, $offset_in_table = 0)
409 $tpos = $this->get_table_pos($tag);
536 function get_table($tag)
538 list($pos, $length) = $this->get_table_pos($tag);
547 function add($tag, $data)
549 if ($tag === 'head') {
552 $this->otables[$tag] = $data;
1502 $tag = $this->read_tag();
1503 if ($tag == 'smcp') {
1506 $Feature[$i] = ['tag' => $tag];
1540 $gsub[$st][$t][$ft['tag']] = $ft['LookupListIndex'];
2147 foreach ($langsys as $tag => $ft) {
2149 $lul[$ll] = $tag;
2168 if (strpos('isol fina init medi fin2 fin3 med2', $v['tag']) !== false) {
2173 if ($v['tag'] === 'isol') {
2175 } elseif ($v['tag'] === 'fina') {
2177 } elseif ($v['tag'] === 'init') {
2179 } elseif ($v['tag'] === 'medi') {
2181 } elseif ($v['tag'] === 'med2') {
2183 } elseif ($v['tag'] === 'fin2') {
2185 } elseif ($v['tag'] === 'fin3') {
2261 if (strpos('locl', $v['tag']) !== false) {
2290 if (strpos('rphf half pref blwf pstf', $v['tag']) !== false) {
2296 if (strpos('0094D 009CD 00A4D 00ACD 00B4D 00BCD 00C4D 00CCD 00D4D', $vs['match'][0]) !== false && strpos('pref blwf pstf', $v['tag']) !== false && !$is_old_spec) {
2298 $tag = $v['tag'];
2300 ${$tag[$loclsubs[$key]]} = $sub;
2302 $tmp = &$$tag;
2306 elseif (strpos('0094D 009CD 00A4D 00ACD 00B4D 00BCD 00C4D 00CCD 00D4D', $vs['match'][1]) !== false && (strpos('rphf half', $v['tag']) !== false || (strpos('pref blwf pstf', $v['tag']) !== false && ($is_old_spec || _OTL_OLD_SPEC_COMPAT_2)))) {
2308 $tag = $v['tag'];
2310 ${$tag[$loclsubs[$key]]} = $sub;
2312 $tmp = &$$tag;
2325 if (strpos('0094D 009CD 00A4D 00ACD 00B4D 00BCD 00C4D 00CCD 00D4D', substr($key, 0, 5)) !== false && strpos('pref blwf pstf', $v['tag']) !== false && !$is_old_spec) {
2327 $tag = $v['tag'];
2329 ${$tag[$loclsubs[$key]]} = $sub;
2331 $tmp = &$$tag;
2333 } elseif (strpos('0094D 009CD 00A4D 00ACD 00B4D 00BCD 00C4D 00CCD 00D4D', substr($key, 6, 5)) !== false && (strpos('rphf half', $v['tag']) !== false || (strpos('pref blwf pstf', $v['tag']) !== false && ($is_old_spec || _OTL_OLD_SPEC_COMPAT_2)))) {
2335 $tag = $v['tag'];
2337 ${$tag[$loclsubs[$key]]} = $sub;
2339 $tmp = &$$tag;
2427 foreach ($lul as $i => $tag) {
2440 $volt[] = ['match' => $repl, 'replace' => $subs, 'tag' => $tag, 'key' => $inputGlyphs[0], 'type' => 1];
2450 $volt[] = ['match' => $repl, 'replace' => $subs, 'tag' => $tag, 'key' => $inputGlyphs[0], 'type' => 2];
2460 $volt[] = ['match' => $repl, 'replace' => $subs, 'tag' => $tag, 'key' => $inputGlyphs[0], 'type' => 3];
2471 $volt[] = ['match' => $repl, 'replace' => $subs, 'tag' => $tag, 'key' => $inputGlyphs[0], 'type' => 4, 'CompCount' => $Lookup[$i]['Subtable'][$c]['subs'][$s]['CompCount'], 'Lig' => $substitute];
2492 $subRule = ['context' => 1, 'tag' => $tag, 'matchback' => '', 'match' => $contextInputMatch, 'nBacktrack' => 0, 'nInput' => $nInput, 'nLookahead' => 0, 'rules' => [],];
2512 if (strpos("isol fina fin2 fin3 medi med2 init ", $tag) !== false && $scripttag == 'arab') {
2513 $volt[] = ['match' => $lookupGlyphs[0], 'replace' => $REPL, 'tag' => $tag, 'prel' => $backtrackGlyphs, 'postl' => $lookaheadGlyphs, 'ignore' => $ignore];
2555 $subRule = ['context' => 1, 'tag' => $tag, 'matchback' => '', 'match' => $contextInputMatch, 'nBacktrack' => 0, 'nInput' => $nInput, 'nLookahead' => 0, 'rules' => [],];
2580 if (strpos("isol fina fin2 fin3 medi med2 init ", $tag) !== false && $scripttag == 'arab') {
2581 $volt[] = ['match' => $lookupGlyphs[0], 'replace' => $REPL, 'tag' => $tag, 'prel' => $backtrackGlyphs, 'postl' => $lookaheadGlyphs, 'ignore' => $ignore];
2625 $subRule = ['context' => 1, 'tag' => $tag, 'matchback' => $backtrackMatch, 'match' => ($contextInputMatch . $lookaheadMatch), 'nBacktrack' => count($backtrackGlyphs), 'nInput' => $nInput, 'nLookahead' => count($lookaheadGlyphs), 'rules' => [],];
2647 if (strpos("isol fina fin2 fin3 medi med2 init ", $tag) !== false && $scripttag == 'arab') {
2648 $volt[] = ['match' => $lookupGlyphs[0], 'replace' => $REPL, 'tag' => $tag, 'prel' => $backtrackGlyphs, 'postl' => $lookaheadGlyphs, 'ignore' => $ignore];
2702 $subRule = ['context' => 1, 'tag' => $tag, 'matchback' => $backtrackMatch, 'match' => ($contextInputMatch . $lookaheadMatch), 'nBacktrack' => count($backtrackGlyphs), 'nInput' => $nInput, 'nLookahead' => count($lookaheadGlyphs), 'rules' => [],];
2727 if (strpos("isol fina fin2 fin3 medi med2 init ", $tag) !== false && $scripttag == 'arab') {
2728 $volt[] = ['match' => $lookupGlyphs[0], 'replace' => $REPL, 'tag' => $tag, 'prel' => $backtrackGlyphs, 'postl' => $lookaheadGlyphs, 'ignore' => $ignore];
2818 $subRule = ['context' => 1, 'tag' => $tag, 'matchback' => $backtrackMatch, 'match' => ($contextInputMatch . $lookaheadMatch), 'nBacktrack' => count($backtrackGlyphs), 'nInput' => $nInput, 'nLookahead' => count($lookaheadGlyphs), 'rules' => [],];
2843 if (strpos("isol fina fin2 fin3 medi med2 init ", $tag) !== false && $scripttag == 'arab') {
2844 $volt[] = ['match' => $lookupGlyphs[0], 'replace' => $REPL, 'tag' => $tag, 'prel' => $backtrackGlyphs, 'postl' => $lookaheadGlyphs, 'ignore' => $ignore];
2885 $subRule = ['context' => 1, 'tag' => $tag, 'matchback' => $backtrackMatch, 'match' => ($contextInputMatch . $lookaheadMatch), 'nBacktrack' => count($backtrackGlyphs), 'nInput' => $nInput, 'nLookahead' => count($lookaheadGlyphs), 'rules' => [],];
2907 if (strpos("isol fina fin2 fin3 medi med2 init ", $tag) !== false && $scripttag == 'arab') {
2908 $volt[] = ['match' => $lookupGlyphs[0], 'replace' => $REPL, 'tag' => $tag, 'prel' => $backtrackGlyphs, 'postl' => $lookaheadGlyphs, 'ignore' => $ignore];
3341 $tag = $this->read_tag();
3342 if ($tag === 'kern') {
3345 $Feature[$i] = ['tag' => $tag];
3382 $gpos[$st][$t][$ft['tag']] = $ft['LookupListIndex'];
3613 foreach ($tags as $tag) {
3614 if (isset($this->tables[$tag])) {
3615 $this->add($tag, $this->get_table($tag));
4218 foreach ($tags as $tag) { // 1.02
4219 if (isset($this->tables[$tag])) {
4220 $this->add($tag, $this->get_table($tag));
4735 foreach ($tables as $tag => $data) {
4736 if ($tag === 'head') {
4739 $stm .= $tag;
4748 foreach ($tables as $tag => $data) {
4802 foreach ($tags as $tag) {
4803 if (isset($this->tables[$tag])) {
4804 $this->add($tag, $this->get_table($tag));