Lines Matching refs:ttf

22 		$ttf = new TTFontFile($this->fontCache, $this->fontDescriptor);
23 $ttf->getMetrics($ttffile, $fontkey, $TTCfontID, $debugfonts, $BMPonly, $useOTL); // mPDF 5.7.1
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),
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,
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,
71 $this->fontCache->binaryWrite($fontkey . '.cw.dat', $ttf->charWidths);
72 $this->fontCache->binaryWrite($fontkey . '.gid.dat', $ttf->glyphIDtoUni);
90 unset($ttf);
98 protected function getPanose($ttf)
101 if (count($ttf->panose)) {
102 $panoseArray = array_merge([$ttf->sFamilyClass, $ttf->sFamilySubClass], $ttf->panose);