Lines Matching defs:CurrentFont

795 	var $CurrentFont; // current font info
3514 $charw = $this->CurrentFont['cw'][chr($this->upperCase[ord($c)])];
3519 } elseif (isset($this->CurrentFont['cw'][$c])) {
3520 $w += $this->CurrentFont['cw'][$c];
3521 } elseif (isset($this->CurrentFont['cw'][ord($c)])) {
3522 $w += $this->CurrentFont['cw'][ord($c)];
3544 if ($this->CurrentFont['type'] == 'Type0') { // CJK Adobe fonts
3548 elseif (isset($this->CurrentFont['cw'][$char])) {
3549 $w+=$this->CurrentFont['cw'][$char];
3550 } elseif (isset($this->CurrentFont['MissingWidth'])) {
3551 $w += $this->CurrentFont['MissingWidth'];
3561 $charw = $this->_getCharWidth($this->CurrentFont['cw'], $this->upperCase[$char]);
3565 } elseif (isset($this->CurrentFont['desc']['MissingWidth'])) {
3566 $w += $this->CurrentFont['desc']['MissingWidth'];
3567 } elseif (isset($this->CurrentFont['MissingWidth'])) {
3568 $w += $this->CurrentFont['MissingWidth'];
3573 $charw = $this->_getCharWidth($this->CurrentFont['cw'], $char);
3576 } elseif (isset($this->CurrentFont['desc']['MissingWidth'])) {
3577 $w += $this->CurrentFont['desc']['MissingWidth'];
3578 } elseif (isset($this->CurrentFont['MissingWidth'])) {
3579 $w += $this->CurrentFont['MissingWidth'];
3611 $cw = &$this->CurrentFont['cw'];
3630 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) {
3637 if ($this->CurrentFont['type'] == 'Type0') { // CJK Adobe fonts
3644 } elseif (isset($this->CurrentFont['MissingWidth'])) {
3645 $w += $this->CurrentFont['MissingWidth'];
3661 } elseif (isset($this->CurrentFont['desc']['MissingWidth'])) {
3662 $w += $this->CurrentFont['desc']['MissingWidth'];
3663 } elseif (isset($this->CurrentFont['MissingWidth'])) {
3664 $w += $this->CurrentFont['MissingWidth'];
3672 } elseif (isset($this->CurrentFont['desc']['MissingWidth'])) {
3673 $w += $this->CurrentFont['desc']['MissingWidth'];
3674 } elseif (isset($this->CurrentFont['MissingWidth'])) {
3675 $w += $this->CurrentFont['MissingWidth'];
3682 if (isset($this->CurrentFont['useOTL']) && ($this->CurrentFont['useOTL'] & 0xFF) && !empty($OTLdata)) {
3685 $w += $OTLdata['GPOSinfo'][$i]['XAdvanceR'] * 1000 / $this->CurrentFont['unitsPerEm'];
3689 $w += $OTLdata['GPOSinfo'][$i]['XAdvanceL'] * 1000 / $this->CurrentFont['unitsPerEm'];
3699 if (isset($this->CurrentFont['kerninfo'][$lastchar][$char])) {
3700 $kerning += $this->CurrentFont['kerninfo'][$lastchar][$char];
3728 if (isset($this->CurrentFont['kerninfo'][$s[($i - 1)]][$s[$i]])) {
3729 $kerning += $this->CurrentFont['kerninfo'][$s[($i - 1)]][$s[$i]];
4199 $this->CurrentFont = &$this->fonts[$fontkey];
4201 $fontout = (sprintf('BT /F%d %.3F Tf ET', $this->CurrentFont['i'], $this->FontSizePt));
4267 $this->CurrentFont = &$this->fonts[$fontkey];
4269 $fontout = (sprintf('BT /F%d %.3F Tf ET', $this->CurrentFont['i'], $this->FontSizePt));
4294 $fontout = (sprintf('BT /F%d %.3F Tf ET', $this->CurrentFont['i'], $this->FontSizePt));
4377 $this->CurrentFont['used'] = true;
4402 elseif (!$this->usingCoreFont && !($textvar & TextVars::FC_SMALLCAPS) && !($textvar & TextVars::FC_KERNING) && !(isset($this->CurrentFont['useOTL']) && ($this->CurrentFont['useOTL'] & 0xFF) && !empty($OTLdata['GPOSinfo']))) {
4404 if ($this->CurrentFont['sip'] || $this->CurrentFont['smp']) {
4428 if (isset($this->CurrentFont['up']) && $this->CurrentFont['up']) {
4429 $up = $this->CurrentFont['up'];
4434 if (isset($this->CurrentFont['ut']) && $this->CurrentFont['ut']) {
4435 $ut = $this->CurrentFont['ut'] / 1000 * $this->FontSize;
4454 if (isset($this->CurrentFont['desc']['CapHeight']) && $this->CurrentFont['desc']['CapHeight']) {
4455 $ch = $this->CurrentFont['desc']['CapHeight'];
4460 if (isset($this->CurrentFont['ut']) && $this->CurrentFont['ut']) {
4461 $ut = $this->CurrentFont['ut'] / 1000 * $this->FontSize;
4503 if ($this->CurrentFont['haskernGPOS']) {
4512 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) {
4513 $txt = $this->otl->applyOTL($txt, $this->CurrentFont['useOTL']);
4543 if ($this->CurrentFont['haskernGPOS']) {
4552 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) {
4553 $txt = $this->otl->applyOTL($txt, $this->CurrentFont['useOTL']);
4605 if ($w > 0 && $inclCursive && isset($this->CurrentFont['useKashida']) && $this->CurrentFont['useKashida'] && !empty($cOTLdata)) {
4659 // $useKashida is a % value from CurrentFont/config_fonts.php
4661 $kashida_space_ratio = intval($this->CurrentFont['useKashida']) / 100;
4666 $tatw = $this->_getCharWidth($this->CurrentFont['cw'], 0x0640);
5176 $this->CurrentFont['used'] = true;
5187 elseif (!$this->usingCoreFont && !$this->ws && !($textvar & TextVars::FC_SMALLCAPS) && !($textvar & TextVars::FC_KERNING) && !(isset($this->CurrentFont['useOTL']) && ($this->CurrentFont['useOTL'] & 0xFF) && !empty($OTLdata['GPOSinfo']))) {
5189 if ((isset($this->CurrentFont['sip']) && $this->CurrentFont['sip']) || (isset($this->CurrentFont['smp']) && $this->CurrentFont['smp'])) {
5201 elseif (!$this->usingCoreFont && $this->ws && !((isset($this->CurrentFont['sip']) && $this->CurrentFont['sip']) || (isset($this->CurrentFont['smp']) && $this->CurrentFont['smp'])) && !($textvar & TextVars::FC_SMALLCAPS) && !($textvar & TextVars::FC_KERNING) && !(isset($this->CurrentFont['useOTL']) && ($this->CurrentFont['useOTL'] & 0xFF) && (!empty($OTLdata['GPOSinfo']) || (strpos($OTLdata['group'], 'M') !== false && $this->charspacing)) )) {
5422 if ((isset($this->CurrentFont['sip']) && $this->CurrentFont['sip']) || (isset($this->CurrentFont['smp']) && $this->CurrentFont['smp'])) {
5436 $fontid = $last_fontid = $original_fontid = $this->CurrentFont['subsetfontids'][0];
5438 $fontid = $last_fontid = $original_fontid = $this->CurrentFont['i'];
5476 $YPlacement = $GPOSinfo[$i]['YPlacement'] * $this->FontSizePt / $this->CurrentFont['unitsPerEm'];
5488 $XshiftBefore += $GPOSinfo[$i]['XPlacement'] * 1000 / $this->CurrentFont['unitsPerEm'];
5489 $XshiftAfter += -$GPOSinfo[$i]['XPlacement'] * 1000 / $this->CurrentFont['unitsPerEm'];
5510 $XshiftAfter += $GPOSinfo[$i]['XAdvanceL'] * 1000 / $this->CurrentFont['unitsPerEm'];
5512 $XshiftAfter += $GPOSinfo[$i]['XAdvanceR'] * 1000 / $this->CurrentFont['unitsPerEm'];
5524 if ($i > 0 && isset($this->CurrentFont['kerninfo'][$unicode[($i - 1)]][$unicode[$i]])) {
5525 $XshiftBefore += $this->CurrentFont['kerninfo'][$unicode[($i - 1)]][$unicode[$i]];
5547 // $this->CurrentFont['subset'][$this->upperCase[$c]] = $this->upperCase[$c]; // add the CAP to subset
5578 $init = array_search($c, $this->CurrentFont['subsets'][$j]);
5580 if ($this->CurrentFont['subsetfontids'][$j] != $last_fontid) {
5582 $fontid = $this->CurrentFont['subsetfontids'][$j];
5586 } elseif (count($this->CurrentFont['subsets'][$j]) < 255) {
5587 $n = count($this->CurrentFont['subsets'][$j]);
5588 $this->CurrentFont['subsets'][$j][$n] = $c;
5589 if ($this->CurrentFont['subsetfontids'][$j] != $last_fontid) {
5591 $fontid = $this->CurrentFont['subsetfontids'][$j];
5595 } elseif (!isset($this->CurrentFont['subsets'][($j + 1)])) {
5596 $this->CurrentFont['subsets'][($j + 1)] = [0 => 0];
5597 $this->CurrentFont['subsetfontids'][($j + 1)] = count($this->fonts) + $this->extraFontSubsets + 1;
5644 if (isset($this->CurrentFont['subset'])) {
5645 $this->CurrentFont['subset'][$c] = $c;
5648 $tatw = $this->_getCharWidth($this->CurrentFont['cw'], 0x0640);
5656 $YPlacement = $GPOSinfo[$nextbase]['YPlacement'] * $this->FontSizePt / $this->CurrentFont['unitsPerEm'];
5662 $init = array_search($c, $this->CurrentFont['subsets'][$j]);
5664 if ($this->CurrentFont['subsetfontids'][$j] != $last_fontid) {
5665 $fontid = $this->CurrentFont['subsetfontids'][$j];
5669 } elseif (count($this->CurrentFont['subsets'][$j]) < 255) {
5670 $n = count($this->CurrentFont['subsets'][$j]);
5671 $this->CurrentFont['subsets'][$j][$n] = $c;
5672 if ($this->CurrentFont['subsetfontids'][$j] != $last_fontid) {
5673 $fontid = $this->CurrentFont['subsetfontids'][$j];
5677 } elseif (!isset($this->CurrentFont['subsets'][($j + 1)])) {
5678 $this->CurrentFont['subsets'][($j + 1)] = [0 => 0];
5679 $this->CurrentFont['subsetfontids'][($j + 1)] = count($this->fonts) + $this->extraFontSubsets + 1;
5783 if ($ti > 0 && isset($this->CurrentFont['kerninfo'][$unicode[($ti - 1)]][$unicode[$ti]])) {
5784 $kern = -$this->CurrentFont['kerninfo'][$unicode[($ti - 1)]][$unicode[$ti]];
5805 if ($i > 0 && isset($this->CurrentFont['kerninfo'][$unicode[($i - 1)]][$unicode[$i]])) {
5806 $kern = -$this->CurrentFont['kerninfo'][$unicode[($i - 1)]][$unicode[$i]];
5820 if ($i > 0 && isset($this->CurrentFont['kerninfo'][$txt[($i - 1)]][$txt[$i]])) {
5821 $kern = -$this->CurrentFont['kerninfo'][$txt[($i - 1)]][$txt[$i]];
5871 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) {
5872 $txt = $this->otl->applyOTL($txt, $this->CurrentFont['useOTL']);
5891 $cw = &$this->CurrentFont['cw'];
6049 if (isset($this->CurrentFont['useOTL']) && ($this->CurrentFont['useOTL'])) {
6346 $saved['curr'] = &$this->CurrentFont;
6375 $this->CurrentFont = &$saved['curr'];
6393 $fontout = (sprintf('BT /F%d %.3F Tf ET', $this->CurrentFont['i'], $this->FontSizePt));
6472 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) {
6561 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) {
6753 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) {
6792 $w = $cOTLdata[$aord]['GPOSinfo'][$nGPOS]['XAdvanceL'] * 1000 / $this->CurrentFont['unitsPerEm'];
6794 $w = $cOTLdata[$aord]['GPOSinfo'][$nGPOS]['XAdvanceR'] * 1000 / $this->CurrentFont['unitsPerEm'];
6804 $w = -$cOTLdata[$aord]['GPOSinfo'][$nGPOS]['XPlacement'] * 1000 / $this->CurrentFont['unitsPerEm'];
6961 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) {
7562 if (isset($this->CurrentFont['desc']['XHeight']) && $this->CurrentFont['desc']['XHeight']) {
7563 $xh = $this->CurrentFont['desc']['XHeight'];
7887 if (isset($this->CurrentFont['kerninfo'][$s[($i - 1)]][$c])) {
7888 $cw += ($this->CurrentFont['kerninfo'][$s[($i - 1)]][$c] * $this->FontSizePt / 1000 );
7896 if (isset($this->CurrentFont['useOTL']) && ($this->CurrentFont['useOTL'] & 0xFF)) {
7901 $cw += $sOTLdata['GPOSinfo'][$i]['XAdvanceL'] * (1000 / $this->CurrentFont['unitsPerEm']) * ($this->FontSize / 1000) * Mpdf::SCALE;
7908 if (isset($this->CurrentFont['kerninfo'][$ulastc[0]][$uc[0]])) {
7909 $cw += ($this->CurrentFont['kerninfo'][$ulastc[0]][$uc[0]] * $this->FontSizePt / 1000 );
8255 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) {
8305 if ((isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) || !empty($sOTLdata)) {
8366 $w = $cOTLdata[$aord]['GPOSinfo'][$nGPOS]['XAdvanceL'] * 1000 / $this->CurrentFont['unitsPerEm'];
8368 $w = $cOTLdata[$aord]['GPOSinfo'][$nGPOS]['XAdvanceR'] * 1000 / $this->CurrentFont['unitsPerEm'];
8378 $w = -$cOTLdata[$aord]['GPOSinfo'][$nGPOS]['XPlacement'] * 1000 / $this->CurrentFont['unitsPerEm'];
8405 if (isset($this->CurrentFont['useOTL']) && ($this->CurrentFont['useOTL'] & 0xFF)) {
8589 if (isset($this->CurrentFont['useOTL']) && ($this->CurrentFont['useOTL'] & 0xFF)) {
8726 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) {
10511 if ($this->CurrentFont['haskernGPOS']) {
10520 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) {
10521 $texte = $this->otl->applyOTL($texte, $this->CurrentFont['useOTL']);
10698 if ($addSubset && isset($this->CurrentFont['subset'])) {
10699 $this->CurrentFont['subset'][$uni] = $uni;
10713 $orig_fid = $this->CurrentFont['subsetfontids'][0];
10714 $last_fid = $this->CurrentFont['subsetfontids'][0];
10727 if (!$this->_charDefined($this->CurrentFont['cw'], $c)) {
10732 $init = array_search($c, $this->CurrentFont['subsets'][$i]);
10734 if ($this->CurrentFont['subsetfontids'][$i] != $last_fid) {
10735 $ret .= '> Tj /F' . $this->CurrentFont['subsetfontids'][$i] . ' ' . $this->FontSizePt . ' Tf <';
10736 $last_fid = $this->CurrentFont['subsetfontids'][$i];
10741 elseif (count($this->CurrentFont['subsets'][$i]) < 255) {
10742 $n = count($this->CurrentFont['subsets'][$i]);
10743 $this->CurrentFont['subsets'][$i][$n] = $c;
10744 if ($this->CurrentFont['subsetfontids'][$i] != $last_fid) {
10745 $ret .= '> Tj /F' . $this->CurrentFont['subsetfontids'][$i] . ' ' . $this->FontSizePt . ' Tf <';
10746 $last_fid = $this->CurrentFont['subsetfontids'][$i];
10750 } elseif (!isset($this->CurrentFont['subsets'][($i + 1)])) {
10752 $this->CurrentFont['subsets'][($i + 1)] = [0 => 0];
10754 $this->CurrentFont['subsetfontids'][($i + 1)] = $new_fid;
10995 $desc = $this->CurrentFont['desc'];
13464 if ($this->checkSIP && $this->CurrentFont['sipext'] && $this->subPos < $i && (!$this->specialcontent || !$this->useActiveForms)) {
13468 if ($this->useSubstitutions && !$this->onlyCoreFonts && $this->CurrentFont['type'] != 'Type0' && $this->subPos < $i && (!$this->specialcontent || !$this->useActiveForms)) {
13482 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL'] && (!$this->specialcontent || !$this->useActiveForms)) {
13486 $e = $this->otl->applyOTL($e, $this->CurrentFont['useOTL']);
15494 if ($this->_charDefined($this->CurrentFont['cw'], hexdec($m[1]))) {
18606 if ($this->CurrentFont['haskernGPOS']) {
18663 if (isset($this->CurrentFont['hassmallcapsGSUB']) && $this->CurrentFont['hassmallcapsGSUB']) {
19212 $wordwidth += ($wordXAdvance[$k] * 1000 / $this->CurrentFont['unitsPerEm']) * ($this->FontSize / 1000);
25386 if ($this->CurrentFont['haskernGPOS']) {
25395 if (isset($this->CurrentFont['useOTL']) && $this->CurrentFont['useOTL']) {
25396 $text = $this->otl->applyOTL($text, $this->CurrentFont['useOTL']);
25445 if (isset($this->CurrentFont['rtlPUAstr']) && $this->CurrentFont['rtlPUAstr']) {
25446 $pregRTLchars .= $this->CurrentFont['rtlPUAstr'];
25460 $useGPOS = isset($this->CurrentFont['useOTL']) && ($this->CurrentFont['useOTL'] & 0x80);
25574 if (isset($this->CurrentFont['sipext']) && $this->CurrentFont['sipext']) {
25575 $font = $this->CurrentFont['sipext'];
25603 $cw = &$this->CurrentFont['cw'];
25715 $cw = &$this->CurrentFont['cw'];
25768 if (isset($this->CurrentFont['sipext']) && $this->CurrentFont['sipext']) {
25769 $font = $this->CurrentFont['sipext'];
26359 $cw = $this->_getCharWidth($this->CurrentFont['cw'], 32) * 3 * $fh * $size / 1000;