Lines Matching refs:fontCache
10 private $fontCache;
14 public function __construct(FontCache $fontCache, $fontDescriptor)
16 $this->fontCache = $fontCache;
22 $ttf = new TTFontFile($this->fontCache, $this->fontDescriptor);
70 $this->fontCache->jsonWrite($fontkey . '.mtx.json', $font);
71 $this->fontCache->binaryWrite($fontkey . '.cw.dat', $ttf->charWidths);
72 $this->fontCache->binaryWrite($fontkey . '.gid.dat', $ttf->glyphIDtoUni);
74 if ($this->fontCache->has($fontkey . '.cgm')) {
75 $this->fontCache->remove($fontkey . '.cgm');
78 if ($this->fontCache->has($fontkey . '.z')) {
79 $this->fontCache->remove($fontkey . '.z');
82 if ($this->fontCache->jsonHas($fontkey . '.cw127.json')) {
83 $this->fontCache->jsonRemove($fontkey . '.cw127.json');
86 if ($this->fontCache->has($fontkey . '.cw')) {
87 $this->fontCache->remove($fontkey . '.cw');