Lines Matching refs:fontfile
8 function ReadTTF($fontfile, $map) { argument
9 if (!is_readable($fontfile)) { return null; };
15 $font->open($fontfile);
386 function MakeFont($fontfile, $afmfile, $destdir, $destfile, $enc) { argument
399 $fontfile));
401 $fm = ReadTTF($fontfile, $manager->get_encoding_vector($enc));
404 die(sprintf("Cannot get font metrics for '%s'", $fontfile));
413 if ($fontfile) {
414 $ext=strtolower(substr($fontfile,-3));
449 if ($fontfile) {
451 if (!file_exists($fontfile)) {
452 die('<B>Error:</B> font file not found: '.$fontfile);
456 CheckTTF($fontfile);
459 $f=fopen($fontfile,'rb');
461 die('<B>Error:</B> Can\'t open '.$fontfile);
464 $file=fread($f,filesize($fontfile));
501 $s.='$file=\''.basename($fontfile)."';\n";
509 $s.='$originalsize='.filesize($fontfile).";\n";