Lines Matching defs:txt

4348 	function Text($x, $y, $txt, $OTLdata = [], $textvar = 0, $aixextra = '', $coordsys = '', $return = false)
4380 $txt2 = str_replace(chr(160), chr(32), $txt);
4382 $txt2 = str_replace(chr(194) . chr(160), chr(32), $txt);
4423 if (($textvar & TextVars::FD_UNDERLINE) && $txt != '') { // mPDF 5.7.1
4441 $s .= ' ' . $this->_dounderline($x, $y + $adjusty, $txt, $OTLdata, $textvar);
4448 if (($textvar & TextVars::FD_LINETHROUGH) && $txt != '') { // mPDF 5.7.1
4467 $s .= ' ' . $this->_dounderline($x, $y + $adjusty, $txt, $OTLdata, $textvar);
4483 function WriteText($x, $y, $txt)
4486 $txt = $this->purify_utf8_text($txt);
4488 $txt = $this->all_entities_to_utf8($txt);
4491 $txt = mb_convert_encoding($txt, $this->mb_enc, 'UTF-8');
4495 if (preg_match("/([" . $this->pregRTLchars . "])/u", $txt)) {
4513 $txt = $this->otl->applyOTL($txt, $this->CurrentFont['useOTL']);
4519 $this->magic_reverse_dir($txt, $this->directionality, $OTLdata);
4521 $this->Text($x, $y, $txt, $OTLdata, $textvar);
4524 function WriteCell($w, $h = 0, $txt = '', $border = 0, $ln = 0, $align = '', $fill = 0, $link = '', $currentx = 0)
4527 $txt = $this->purify_utf8_text($txt);
4529 $txt = $this->all_entities_to_utf8($txt);
4532 $txt = mb_convert_encoding($txt, $this->mb_enc, 'UTF-8');
4535 if (preg_match("/([" . $this->pregRTLchars . "])/u", $txt)) {
4553 $txt = $this->otl->applyOTL($txt, $this->CurrentFont['useOTL']);
4559 $this->magic_reverse_dir($txt, $this->directionality, $OTLdata);
4561 $this->Cell($w, $h, $txt, $border, $ln, $align, $fill, $link, $currentx, 0, 0, 'M', 0, false, $OTLdata, $textvar);
4734 function Cell($w, $h = 0, $txt = '', $border = 0, $ln = 0, $align = '', $fill = 0, $link = '', $currentx = 0, $lcpaddingL = 0, $lcpaddingR = 0, $valign = 'M', $spanfill = 0, $exactWidth = false, $OTLdata = false, $textvar = 0, $lineBox = false)
4738 $txt = str_replace(chr(160), chr(32), $txt);
4740 $txt = str_replace(chr(194) . chr(160), chr(32), $txt);
4821 if ($lineBox && isset($lineBox['boxtop']) && $txt) { // i.e. always from WriteFlowingBlock/finishFlowingBlock (but not objects -
4851 if ($txt != '') {
5125 if ($txt != '') {
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 );
5174 $txt2 = $txt;
5222 $sub = $this->applyGPOSpdf($txt, $aix, $px, $py, $OTLdata, $textvar);
5267 $sub .= ' ' . $this->_dounderline($this->x + $dx, $this->y + $ubaseline + $adjusty, $txt, $OTLdata, $textvar);
5318 $sub .=' ' . $this->_dounderline($this->x + $dx, $this->y + $sbaseline + $adjusty, $txt, $OTLdata, $textvar);
5353 $sub .=' ' . $this->_dounderline($this->x + $dx, $this->y + $obaseline + $adjusty, $txt, $OTLdata, $textvar);
5399 if (strpos($txt, "\n") !== false) {
5418 function applyGPOSpdf($txt, $aix, $x, $y, $OTLdata, $textvar = 0)
5446 $unicode = $this->UTF8StringToArray($txt);
5458 // $txt= preg_replace('/'.preg_quote($this->aliasNbPg,'/').'/', chr(7), $txt); // ? Need to adjust OTL info
5459 // $txt= preg_replace('/'.preg_quote($this->aliasNbPgGp,'/').'/', chr(8), $txt); // ? Need to adjust OTL info
5634 // Output the code for the txt character
5725 // Output the code for the txt character(s)
5768 function _kern($txt, $mode, $aix, $x, $y)
5776 $t = explode(' ', $txt);
5803 $unicode = $this->UTF8StringToArray($txt);
5818 $l = strlen($txt);
5820 if ($i > 0 && isset($this->CurrentFont['kerninfo'][$txt[($i - 1)]][$txt[$i]])) {
5821 $kern = -$this->CurrentFont['kerninfo'][$txt[($i - 1)]][$txt[$i]];
5824 $tj .= $this->writer->escape($txt[$i]);
5836 $txt,
5851 $txt = $this->purify_utf8_text($txt);
5854 $txt = $this->all_entities_to_utf8($txt);
5858 $txt = mb_convert_encoding($txt, $this->mb_enc, 'UTF-8');
5861 if (preg_match("/([" . $this->pregRTLchars . "])/u", $txt)) {
5872 $txt = $this->otl->applyOTL($txt, $this->CurrentFont['useOTL']);
5878 $unicode = $this->UTF8StringToArray($txt, false);
5900 $s = str_replace("\r", '', $txt);
5906 $s = str_replace("\r", '', $txt);
6222 function Write($h, $txt, $currentx = 0, $link = '', $directionality = 'ltr', $align = '', $fill = 0)
6228 $this->directWrite->Write($h, $txt, $currentx, $link, $directionality, $align, $fill);
9912 $an = ['txt' => $text, 'x' => $x, 'y' => $y, 'opt' => ['Icon' => $icon, 'T' => $author, 'Subj' => $subject, 'C' => $colarray, 'CA' => $opacity, 'popup' => $popup, 'file' => $file]];
10467 function _dounderline($x, $y, $txt, $OTLdata = false, $textvar = 0)
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));
13005 function SetWatermarkText($txt = '', $alpha = -1)
13010 $this->watermarkText = $txt;
16132 if (strpos($vetor[1], ".") === false && strpos($vetor[1], "@") !== 0) { // assuming every external link has a dot indicating extension (e.g: .html .txt .zip www.somewhere.com etc.)
16798 $txt = $legend[0] = ltrim($legend[0]);
16808 $stringWidth = $this->GetStringWidth($txt, true, $legend[18], $legend[8]);
16821 $this->magic_reverse_dir($txt, $this->blk[$blvl]['direction'], $legend[18]);
16823 $this->Cell($stringWidth, $this->FontSize, $txt, '', 0, 'C', $fill, '', 0, 0, 0, 'M', $fill, false, $legend[18], $legend[8]);
23328 function Bookmark($txt, $level = 0, $y = 0)
23330 $txt = $this->purify_utf8_text($txt);
23332 $txt = $this->all_entities_to_utf8($txt);
23344 $bmo = ['t' => $txt, 'l' => $level, 'y' => $y, 'p' => $this->page];
23465 function TOC_Entry($txt, $level = 0, $toc_id = 0)
23494 $btoc = ['t' => $txt, 'l' => $level, 'p' => $this->page, 'link' => $linkn, 'toc_id' => $toc_id];
23940 function IndexEntry($txt, $xref = '')
23943 $this->IndexEntrySee($txt, $xref);
23954 if (isset($this->kwt_Reference[$i]['t']) && $this->kwt_Reference[$i]['t'] == $txt) {
23962 $this->kwt_Reference[] = ['t' => $txt, 'op' => $this->page];
23967 if (isset($this->Reference[$i]['t']) && $this->Reference[$i]['t'] == $txt) {
23975 $this->Reference[] = ['t' => $txt, 'p' => [$this->page]];
24045 $txt = $this->Reference[$i]['t'];
24046 $txt = strip_tags($txt); // mPDF 6
24047 $txt = $this->purify_utf8($txt);
24048 $this->Reference[$i]['uf'] = $txt; // Unformatted e.g. pure utf-8 encoded characters, no mark-up/tags
24105 $txt = $this->Reference[$i]['t'];
24109 $a = preg_split('/(<.*?>)/', $txt, -1, PREG_SPLIT_DELIM_CAPTURE);
24110 $txt = '';
24119 if (strip_tags($txt . $txtmain) != $mainentry) {
24120 $html .= '<div class="mpdf_index_entry">' . $txt . $txtmain . '</div>';
24121 $mainentry = strip_tags($txt . $txtmain);
24124 $txt = $subEntryInset;
24132 $txt .= $e;
24136 $mainentry = strip_tags($txt);
24140 $html .= $txt;
26068 function purify_utf8_text($txt)
26071 if (!$this->is_utf8($txt)) {
26075 $txt = preg_replace("/\r/", "", $txt);
26077 return ($txt);
26080 function all_entities_to_utf8($txt)
26084 $txt = $this->SubstituteHiEntities($txt);
26087 $txt = UtfString::strcode2utf($txt);
26089 $txt = $this->lesser_entity_decode($txt);
26090 return ($txt);