Lines Matching refs:renderer
37 * @param PdfRenderer $renderer
41 public function render($renderer): void argument
44 if ($renderer->getCurrentStyle() !== $this->styleName) {
45 $renderer->setCurrentStyle($this->styleName);
47 $temptext = str_replace('#PAGENUM#', (string) $renderer->tcpdf->PageNo(), $this->text);
63 $renderer->tcpdf->setTextColor($r, $g, $b);
65 $renderer->tcpdf->setTextColor(0, 0, 0);
83 $renderer->tcpdf->writeHTML(
92 $renderer->tcpdf->setTextColor(0, 0, 0);
99 * @param PdfRenderer $renderer
103 public function getHeight($renderer): float argument
111 * @param PdfRenderer $renderer
115 public function getWidth($renderer): array argument
118 if ($renderer->getCurrentStyle() !== $this->styleName) {
119 $renderer->setCurrentStyle($this->styleName);
123 $fsize = $renderer->getCurrentStyleHeight();
124 if ($fsize > $renderer->largestFontHeight) {
125 $renderer->largestFontHeight = $fsize;
129 $lw = $renderer->tcpdf->GetStringWidth($this->text);
142 $lw = $renderer->tcpdf->GetStringWidth($line);
150 $lw += $renderer->tcpdf->GetStringWidth($word . ' ');
157 $lw = $renderer->tcpdf->GetStringWidth($word . ' ');