Lines Matching refs:fontCache

28 	private $fontCache;
35 public function __construct(Mpdf $mpdf, BaseWriter $writer, FontCache $fontCache, $fontDescriptor)
39 $this->fontCache = $fontCache;
78 if ($this->fontCache->has($fontkey . '.ps.z') && $this->fontCache->jsonHas($fontkey . '.ps.json')) {
79 $font = $this->fontCache->load($fontkey . '.ps.z');
80 $originalsize = $this->fontCache->jsonLoad($fontkey . '.ps.json'); // sets $originalsize (of repackaged font)
82 $ttf = new TTFontFile($this->fontCache, $this->fontDescriptor);
89 $this->fontCache->binaryWrite($fontkey . '.ps.z', $font);
90 $this->fontCache->jsonWrite($fontkey . '.ps.json', $originalsize);
92 } elseif ($this->fontCache->has($fontkey . '.z')) {
93 $font = $this->fontCache->load($fontkey . '.z');
97 $this->fontCache->binaryWrite($fontkey . '.z', $font);
166 $ttf = new TTFontFile($this->fontCache, $this->fontDescriptor);
282 $ttf = new TTFontFile($this->fontCache, $this->fontDescriptor);
320 if (!$asSubset && $this->fontCache->has($font['fontkey'] . '.cw')) {
321 $w = $this->fontCache->load($font['fontkey'] . '.cw');
404 if ($this->fontCache->has($font['fontkey'] . '.cgm')) {
405 $cidtogidmap = $this->fontCache->load($font['fontkey'] . '.cgm');
407 $ttf = new TTFontFile($this->fontCache, $this->fontDescriptor);
416 $this->fontCache->binaryWrite($font['fontkey'] . '.cgm', $cidtogidmap);
455 if ($asSubset && $this->fontCache->jsonHas($fontCacheFilename)) {
456 $character = $this->fontCache->jsonLoad($fontCacheFilename);
463 if ($cid == 128 && $asSubset && (!$this->fontCache->has($fontCacheFilename))) {
472 $this->fontCache->jsonWrite($fontCacheFilename, $character);
537 $this->fontCache->binaryWrite($font['fontkey'] . '.cw', $w);