|
From: Axel H. <ax...@3d...> - 2007-11-06 21:26:35
|
Hi,
this is my code:
$fontPath ="/home/axel/.gimp-2.2/fonts/african.ttf";
if(!file_exists($fontPath)) exit("Font $fontPath not found");
ming_useswfversion(8);
$m = new SWFMovie();
$font=new SWFFont($fontPath);
$char = $m->addFont($font);
$char->addChars('ABC');
$m->addExport($char, 'african');
$m->writeExports();
#$m->nextFrame();
header('Pragma: no-cache');
header('Cache-control: no-cache, must revalidate');
header('Content-type: application/x-shockwave-flash');
$m->output(9);
|