Lines Matching +full:font +full:- +full:size +(+path:plugin +path:dw2pdf) -(+path:plugin +path:dw2pdf +path:lang)

16 		$this->fontCache = $fontCache;
17 $this->fontDescriptor = $fontDescriptor;
22 $ttf = new TTFontFile($this->fontCache, $this->fontDescriptor);
23 $ttf->getMetrics($ttffile, $fontkey, $TTCfontID, $debugfonts, $BMPonly, $useOTL); // mPDF 5.7.1
25 $font = [
26 'name' => $this->getFontName($ttf->fullName),
29 'CapHeight' => round($ttf->capHeight),
30 'XHeight' => round($ttf->xHeight),
31 'FontBBox' => '[' . round($ttf->bbox[0]) . " " . round($ttf->bbox[1]) . " " . round($ttf->bbox[2]) . " " . round($ttf->bbox[3]) . ']',
33 /* 'MaxWidth' => round($ttf->advanceWidthMax), // AdvanceWidthMax from hhea table NB ArialUnicode MS = 31990 ! */
34 'Flags' => $ttf->flags,
35 'Ascent' => round($ttf->ascent),
36 'Descent' => round($ttf->descent),
37 'Leading' => round($ttf->lineGap),
38 'ItalicAngle' => $ttf->italicAngle,
39 'StemV' => round($ttf->stemV),
40 'MissingWidth' => round($ttf->defaultWidth)
42 'unitsPerEm' => round($ttf->unitsPerEm),
43 'up' => round($ttf->underlinePosition),
44 'ut' => round($ttf->underlineThickness),
45 'strp' => round($ttf->strikeoutPosition),
46 'strs' => round($ttf->strikeoutSize),
49 'originalsize' => $ttfstat['size'] + 0, /* cast ? */
50 'sip' => ($ttf->sipset) ? true : false,
51 'smp' => ($ttf->smpset) ? true : false,
54 'panose' => $this->getPanose($ttf),
55 'haskerninfo' => ($ttf->kerninfo) ? true : false,
56 'haskernGPOS' => ($ttf->haskernGPOS) ? true : false,
57 'hassmallcapsGSUB' => ($ttf->hassmallcapsGSUB) ? true : false,
58 'fontmetrics' => $this->fontDescriptor,
60 'rtlPUAstr' => $ttf->rtlPUAstr,
61 'GSUBScriptLang' => $ttf->GSUBScriptLang,
62 'GSUBFeatures' => $ttf->GSUBFeatures,
63 'GSUBLookups' => $ttf->GSUBLookups,
64 'GPOSScriptLang' => $ttf->GPOSScriptLang,
65 'GPOSFeatures' => $ttf->GPOSFeatures,
66 'GPOSLookups' => $ttf->GPOSLookups,
67 'kerninfo' => $ttf->kerninfo,
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');
101 if (count($ttf->panose)) {
102 $panoseArray = array_merge([$ttf->sFamilyClass, $ttf->sFamilySubClass], $ttf->panose);