Lines Matching refs:ws

531 	var $ws; // Word spacing
4165 $ws = $fas[1] . $style;
4166 if (in_array($ws, $this->available_unifonts)) {
4568 if ($this->ws != 0) {
4571 $this->ws = 0;
4578 function SetSpacing($cs, $ws)
4589 if (intval($ws * 1000) == 0) {
4590 $ws = 0;
4592 if ($ws) {
4593 $this->writer->write(sprintf('BT %.3F Tw ET', $ws));
4594 } elseif ($this->ws != 0) {
4597 $this->ws = $ws;
4685 $ws = 0;
4694 $ws = $w / $ns;
4713 $ws = ($w * ($ww) ) / $ns;
4721 $ws = (($w * ($ww) ) / $ns) - $charspacing;
4724 return [$charspacing, $ws, $kashida_space];
4769 $ws = $this->ws; // Word Spacing
4782 $this->SetSpacing($charspacing, $ws);
5130 $stringWidth = $this->GetStringWidth($txt, true, $OTLdata, $textvar) + ( $this->charspacing * mb_strlen($txt, $this->mb_enc) / Mpdf::SCALE ) + ( $this->ws * mb_substr_count($txt, ' ', $this->mb_enc) / Mpdf::SCALE );
5181 // Just output text; charspacing and wordspacing already set by charspacing (Tc) and ws (Tw)
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']))) {
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)) )) {
5214 $adj = -($this->ws) * 1000 / $this->FontSizePt;
5395 if ($this->ws && !$this->usingCoreFont) {
5450 $wordspacing = ($this->ws * 1000 / $this->FontSizePt);
5796 $s .= sprintf(' %.3F Tc (%s) Tj', $this->ws + $this->charspacing, $space);
6055 list($charspacing, $ws, $kashida) = $this->GetJspacing($nb_carac, $nb_spaces, ((($wmax) - $len_ligne) * Mpdf::SCALE), $inclCursive, $tmpOTLdata);
6056 $this->SetSpacing($charspacing, $ws);
6161 list($charspacing, $ws, $kashida) = $this->GetJspacing($nb_carac, $nb_spaces, ((($wmax) - $len_ligne) * Mpdf::SCALE), false, $tmpOTLdata);
6162 $this->SetSpacing($charspacing, $ws);
6636 $ws = $this->ws; // Word Spacing
6648 $this->SetSpacing($charspacing, $ws);
6841 if ($this->ws > $this->jSmaxWordLast) {
6968 $stringWidth += ( $this->ws * mb_substr_count($chunk, ' ', $this->mb_enc) / Mpdf::SCALE );
8442 $ws = $this->ws; // Word Spacing
8454 $this->SetSpacing($charspacing, $ws);
8596 $stringWidth += ( $this->ws * mb_substr_count($chunk, ' ', $this->mb_enc) / Mpdf::SCALE );
10471 $w = ($this->GetStringWidth($txt, false, $OTLdata, $textvar) * Mpdf::SCALE) + ($this->charspacing * mb_strlen($txt, $this->mb_enc)) + ( $this->ws * mb_substr_count($txt, ' ', $this->mb_enc));