. // // Additionally, you can't remove the original TCExam logo, copyrights statements // and links to Tecnick.com and TCExam websites. // // See LICENSE.TXT file for more information. //============================================================+ /** * Process all TTF files on current directory to build TCPDF compatible font files. * @package com.tecnick.tcpdf * @author Nicola Asuni * @copyright Copyright © 2004-2009, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License * @link www.tecnick.com * @since 2008-12-07 */ /** */ // read directory for files (only graphics files). $handle = opendir('.'); while($file = readdir($handle)) { $path_parts = pathinfo($file); $file_ext = strtolower($path_parts['extension']); if ($file_ext == 'ttf') { exec('./ttf2ufm -a -F '.$path_parts['basename'].''); exec('php -q makefont.php '.$path_parts['basename'].' '.$path_parts['filename'].'.ufm'); } } closedir($handle); //============================================================+ // END OF FILE //============================================================+ ?>