Lines Matching defs:pos

2367 	function _updateLigatureMarks($pos, $n)
2372 // Any position lpos or mpos > $pos + count($substitute)
2373 // $this->assocMarks = array(); // assocMarks[$pos mpos] => array(compID, ligPos)
2374 // $this->assocLigs = array(); // Ligatures[$pos lpos] => nc
2375 for ($p = count($this->OTLdata) - 1; $p >= ($pos + $n); $p--) {
2384 if ($this->assocMarks[$p]['ligPos'] >= ($pos + $n)) {
2387 if ($p >= ($pos + $n)) {
2397 for ($p = ($pos + 1); $p < count($this->OTLdata); $p++) {
2406 if ($this->assocMarks[$p]['ligPos'] >= ($pos)) {
2409 if ($p > $pos) {
2419 function GSUBsubstitute($pos, $substitute, $Type, $GlyphPos = null)
2425 $this->OTLdata[$pos]['uni'] = $substitute;
2426 $this->OTLdata[$pos]['hex'] = $this->unicode_hex($substitute);
2440 $bt = $this->OTLdata[$pos]['bidi_type'];
2457 $newOTLdata[$i]['general_category'] = $this->OTLdata[$pos]['general_category'];
2460 $newOTLdata[$i]['indic_category'] = $this->OTLdata[$pos]['indic_category'];
2461 $newOTLdata[$i]['indic_position'] = $this->OTLdata[$pos]['indic_position'];
2463 $newOTLdata[$i]['myanmar_category'] = $this->OTLdata[$pos]['myanmar_category'];
2464 $newOTLdata[$i]['myanmar_position'] = $this->OTLdata[$pos]['myanmar_position'];
2466 if (isset($this->OTLdata[$pos]['mask'])) {
2467 $newOTLdata[$i]['mask'] = $this->OTLdata[$pos]['mask'];
2469 if (isset($this->OTLdata[$pos]['syllable'])) {
2470 $newOTLdata[$i]['syllable'] = $this->OTLdata[$pos]['syllable'];
2474 if ($this->OTLdata[$pos]['wordend']) {
2479 array_splice($this->OTLdata, $pos, 1, $newOTLdata); // Replace 1 with n
2483 $this->_updateLigatureMarks($pos, $nadd);
2488 $firstGlyph = $this->OTLdata[$pos]['hex'];
2493 if (isset($this->OTLdata[$pos]['syllable'])) {
2494 $current_syllable = $this->OTLdata[$pos]['syllable'];
2513 if (isset($this->assocMarks[$pos])) {
2514 $firstMarkAssoc = $this->assocMarks[$pos];
2533 // if (!is_array($nextMarkAssoc) || $nextMarkAssoc['ligPos']!= $pos) { return; }
2539 if (!is_array($nextMarkAssoc) || $nextMarkAssoc['ligPos'] != $pos) {
2605 $this->assocMarks[($GlyphPos[$i] + $ic)] = ['compID' => $newComp, 'ligPos' => $pos];
2611 $this->assocLigs[$pos] = $currComp; // Number of components in new Ligature
2620 $bt = $this->OTLdata[$pos]['bidi_type'];
2632 $newOTLdata[0]['general_category'] = $this->OTLdata[$pos]['general_category'];
2644 if ($ka == 1 && isset($this->OTLdata[$pos]['form']) && $this->OTLdata[$pos]['form'] == 3) {
2652 $newOTLdata[0]['indic_category'] = $this->OTLdata[$pos]['indic_category'];
2653 $newOTLdata[0]['indic_position'] = $this->OTLdata[$pos]['indic_position'];
2655 $newOTLdata[0]['myanmar_category'] = $this->OTLdata[$pos]['myanmar_category'];
2656 $newOTLdata[0]['myanmar_position'] = $this->OTLdata[$pos]['myanmar_position'];
2658 if (isset($this->OTLdata[$pos]['mask'])) {
2659 $newOTLdata[0]['mask'] = $this->OTLdata[$pos]['mask'];
2661 if (isset($this->OTLdata[$pos]['syllable'])) {
2662 $newOTLdata[0]['syllable'] = $this->OTLdata[$pos]['syllable'];
2668 array_splice($this->OTLdata, $pos, 1, $newOTLdata);
3268 private function _getXAdvancePos($pos)
3272 if (strpos($this->GlyphClassMarks, $this->OTLdata[$pos]['hex']) !== false) {
3273 return $pos;
3276 while (isset($this->OTLdata[$pos + 1]['hex']) && strpos($this->GlyphClassMarks, $this->OTLdata[$pos + 1]['hex']) !== false) {
3277 $pos++;
3279 return $pos;
5725 public function sliceOTLdata($OTLdata, $pos, $len)
5728 $newOTLdata['group'] = substr($OTLdata['group'], $pos, $len);
5732 if ($k >= $pos && $k < ($pos + $len)) {
5733 $newOTLdata['GPOSinfo'][($k - $pos)] = $val;
5739 $newOTLdata['char_data'] = array_slice($OTLdata['char_data'], $pos, $len);
5756 $pos = mb_strpos($txt, $char, 0, $this->mpdf->mb_enc);
5758 $cOTLdata['group'] = substr_replace($cOTLdata['group'], '', $pos, 1);
5761 if ($k > $pos) {
5763 } elseif ($k != $pos) {
5770 array_splice($cOTLdata['char_data'], $pos, 1);
5784 $pos = mb_strpos($txt, $char, 0, $this->mpdf->mb_enc);
5785 if ($cOTLdata['char_data'][$pos]['uni'] == 160) {
5786 $cOTLdata['char_data'][$pos]['uni'] = 32;
5864 private function seek($pos)
5866 $this->_pos = $pos;