Lines Matching refs:renderer
35 * @param HtmlRenderer $renderer
39 public function render($renderer): void argument
41 $renderer->setCurrentStyle('footnotenum');
43 $renderer->write($renderer->entityRTL . $this->num);
51 * @param HtmlRenderer $renderer
55 public function renderFootnote($renderer): void argument
57 if ($renderer->getCurrentStyle() !== $this->styleName) {
58 $renderer->setCurrentStyle($this->styleName);
61 $temptext = str_replace('#PAGENUM#', (string) $renderer->pageNo(), $this->text);
71 $renderer->write($this->num . '. ' . $temptext);
74 $renderer->setXy(0, $renderer->getY() + $this->getFootnoteHeight($renderer));
80 * @param HtmlRenderer $renderer
85 public function getFootnoteHeight(HtmlRenderer $renderer, float $cellWidth = 0): float argument
87 if ($renderer->getCurrentStyle() !== $this->styleName) {
88 $renderer->setCurrentStyle($this->styleName);
92 $this->text = $renderer->textWrap($this->text, $cellWidth);
97 $fsize = $renderer->getCurrentStyleHeight();
99 return $fsize * $ct * $renderer->cellHeightRatio;
106 * @param HtmlRenderer $renderer
110 public function getWidth($renderer): array argument
113 $renderer->setCurrentStyle('footnotenum');
116 $fsize = $renderer->getCurrentStyleHeight();
117 if ($fsize > $renderer->largestFontHeight) {
118 $renderer->largestFontHeight = $fsize;
123 $renderer->checkFootnote($this);
127 $lw = $renderer->getStringWidth($this->numText);
129 $lfct = $renderer->countLines($this->numText);
140 $lw = $renderer->getStringWidth($line);
148 $lw += $renderer->getStringWidth($word . ' ');
155 $lw = $renderer->getStringWidth($word . ' ');