Lines Matching defs:file

14 // Define the value used in the "head" table of a created TTF file
17 // Either seems to work for a font embedded in a PDF file
44 * modification of the file.
219 // Maximum size of glyf table to read in as string (otherwise reads each glyph from file)
223 public function getMetrics($file, $fontkey, $TTCfontID = 0, $debug = false, $BMPonly = false, $useOTL = 0)
227 $this->filename = $file;
228 $this->fh = fopen($file, 'rb');
231 throw new \Mpdf\Exception\FontException(sprintf('Unable to open font file "%s"', $file));
268 throw new \Mpdf\Exception\FontException(sprintf('Fonts with postscript outlines are not supported (%s)', $file));
272 throw new \Mpdf\Exception\FontException(sprintf('TTCfontID for a TrueType Collection is not defined in mPDF "fontdata" configuration (%s)', $file));
282 throw new \Mpdf\Exception\FontException(sprintf('Error parsing TrueType Collection: version=%s - (%s)', $version, $file));
335 throw new \Mpdf\Exception\FontException(sprintf('TTF file "%s": invalid checksum %s table: %s (expected %s)', $this->filename, dechex($checksum[0]) . dechex($checksum[1]), $t['tag'], dechex($xchecksum[0]) . dechex($xchecksum[1])));
555 function getCTG($file, $TTCfontID = 0, $debug = false, $useOTL = false)
559 $this->filename = $file;
560 $this->fh = fopen($file, 'rb');
563 throw new \Mpdf\Exception\FontException(sprintf('Unable to open file "%s"', $file));
578 throw new \Mpdf\Exception\FontException(sprintf("Error parsing TrueType Collection: version=%s (%s)", $version, $file));
631 throw new \Mpdf\Exception\FontException(sprintf('Font "%s" cannot map all included glyphs into Private Use Area U+E000-U+F8FF; cannot use useOTL on this font', $file));
645 function getTTCFonts($file)
647 $this->filename = $file;
649 $this->fh = fopen($file, 'rb');
651 throw new \Mpdf\Exception\FontException(sprintf('Unable to open file "%s"', $file));
660 throw new \Mpdf\Exception\FontException(sprintf("Error parsing TrueType Collection: version=%s (%s)", $version, $file));
663 throw new \Mpdf\Exception\FontException(sprintf("Not a TrueType Collection: version=%s (%s)", $version, $file));
3006 // When writing e.g. arabictypesetting.GSUB.arab.DFLT.php to file, included as $ignore[8]
3007 // Would need to also write the $ignore array to that file
3014 // But never finished coding it to add the $ignore array to the file, and it doesn't seem to occur often enough to be worth
3457 function makeSubset($file, &$subset, $TTCfontID = 0, $debug = false, $useOTL = false)
3460 $this->filename = $file;
3461 $this->fh = fopen($file, 'rb');
3464 throw new \Mpdf\Exception\FontException(sprintf('Unable to open file %s', $file));
3485 throw new \Mpdf\Exception\FontException(sprintf('Error parsing TrueType Collection: version=%s - %s', $version, $file));
3550 throw new \Mpdf\Exception\FontException($file . " : WARNING - Font cannot map all included glyphs into Private Use Area U+E000 - U+F8FF; cannot use useOTL on this font");
3943 // Put the TTF file together
3950 function makeSubsetSIP($file, &$subset, $TTCfontID = 0, $debug = false, $useOTL = 0)
3952 $this->fh = fopen($file, 'rb');
3955 throw new \Mpdf\Exception\FontException(sprintf('Unable to open file "%s"', $file));
3958 $this->filename = $file;
3977 throw new \Mpdf\Exception\FontException("ERROR - Error parsing TrueType Collection: version=" . $version . " - " . $file);
4036 throw new \Mpdf\Exception\FontException(sprintf('Font "%s" does not have cmap for Unicode (platform 3, encoding 1, format 4, or platform 0, any encoding, format 4)', $file));
4761 function repackageTTF($file, $TTCfontID = 0, $debug = false, $useOTL = false)
4764 $this->filename = $file;
4765 $this->fh = fopen($file, 'rb');
4768 throw new \Mpdf\Exception\FontException(sprintf('Unable to open file "%s"', $file));
4789 throw new \Mpdf\Exception\FontException(sprintf('Error parsing TrueType Collection: version=%s - %s', $version, $file));
4851 throw new \Mpdf\Exception\FontException("Problem. Trying to repackage TF file; not enough space for unmapped glyphs");