Lines Matching refs:mpdf

18 	private $mpdf;
35 public function __construct(Mpdf $mpdf, BaseWriter $writer, FontCache $fontCache, $fontDescriptor)
37 $this->mpdf = $mpdf;
45 foreach ($this->mpdf->FontFiles as $fontkey => $info) {
50 foreach ($this->mpdf->fonts as $k => $f) {
58 if ($fsize > ($this->mpdf->maxTTFFilesize * 1024)) {
60 } elseif ($usage < $this->mpdf->percentSubset) {
64 if ($this->mpdf->PDFA || $this->mpdf->PDFX) {
67 $this->mpdf->fonts[$k]['asSubset'] = $asSubset;
74 $this->mpdf->FontFiles[$fontkey]['n'] = $this->mpdf->n;
76 if ($this->mpdf->repackageTTF || $this->mpdf->fonts[$fontkey]['TTCfontID'] > 0 || $this->mpdf->fonts[$fontkey]['useOTL'] > 0) { // mPDF 5.7.1
83 $font = $ttf->repackageTTF($this->mpdf->FontFiles[$fontkey]['ttffile'], $this->mpdf->fonts[$fontkey]['TTCfontID'], $this->mpdf->debugfonts, $this->mpdf->fonts[$fontkey]['useOTL']); // mPDF 5.7.1
95 $font = file_get_contents($this->mpdf->FontFiles[$fontkey]['ttffile']);
110 foreach ($this->mpdf->fonts as $k => $font) {
130 $this->mpdf->fonts[$k]['n'] = $this->mpdf->n + 1;
138 $this->mpdf->fonts[$k]['n'] = $this->mpdf->n + 1;
140 if ($this->mpdf->PDFA || $this->mpdf->PDFX) {
169 $this->mpdf->fonts[$k]['n'][$sfid] = $this->mpdf->n + 1; // NB an array for subset
181 $ttfontstream = $ttf->makeSubsetSIP($font['ttffile'], $subset, $font['TTCfontID'], $this->mpdf->debugfonts, $font['useOTL']); // mPDF 5.7.1
188 $w = $this->mpdf->_getCharWidth($font['cw'], $u);
213 $this->writer->write('/Widths ' . ($this->mpdf->n + 1) . ' 0 R');
214 $this->writer->write('/FontDescriptor ' . ($this->mpdf->n + 2) . ' 0 R');
215 $this->writer->write('/ToUnicode ' . ($this->mpdf->n + 3) . ' 0 R');
234 $s .= '/FontFile2 ' . ($this->mpdf->n + 2) . ' 0 R';
278 $this->mpdf->fonts[$k]['n'] = $this->mpdf->n + 1;
286 $ttfontstream = $ttf->makeSubset($font['ttffile'], $subset, $font['TTCfontID'], $this->mpdf->debugfonts, $font['useOTL']);
302 $this->writer->write('/DescendantFonts [' . ($this->mpdf->n + 1) . ' 0 R]');
303 $this->writer->write('/ToUnicode ' . ($this->mpdf->n + 2) . ' 0 R');
313 $this->writer->write('/CIDSystemInfo ' . ($this->mpdf->n + 2) . ' 0 R');
314 $this->writer->write('/FontDescriptor ' . ($this->mpdf->n + 3) . ' 0 R');
327 $this->writer->write('/CIDToGIDMap ' . ($this->mpdf->n + 4) . ' 0 R');
384 $this->writer->write('/FontFile2 ' . ($this->mpdf->n + 2) . ' 0 R');
387 $this->writer->write('/FontFile2 ' . $this->mpdf->FontFiles[$font['fontkey']]['n'] . ' 0 R');
408 $charToGlyph = $ttf->getCTG($font['ttffile'], $font['TTCfontID'], $this->mpdf->debugfonts, $font['useOTL']);
645 $this->writer->write('/DescendantFonts [' . ($this->mpdf->n + 1) . ' 0 R]');
659 $this->writer->write('/FontDescriptor ' . ($this->mpdf->n + 1) . ' 0 R');