I know this subjekt was up several times but Icant get it work
use gd2 on win32
[code=html]<?
putenv('GDFONTP ATH=f:\swd\font ');
$font = "f:/swd/font/arial.ttf";
$im = imagecreate (250, 28);
$black = ImageColorAlloc ate ($im, 0, 0, 0);
$yellow = ImageColorAlloc ate ($im, 235, 235, 51);
ImageTTFText ($im, 20, 0, 10, 20, $yellow, $font,
"comming text or not?");
ImagePNG($im,te st.png);
?>
<img src="test.png" alt="image">[/code]
but I allway get error about not finding font ..
what should I do?
use gd2 on win32
[code=html]<?
putenv('GDFONTP ATH=f:\swd\font ');
$font = "f:/swd/font/arial.ttf";
$im = imagecreate (250, 28);
$black = ImageColorAlloc ate ($im, 0, 0, 0);
$yellow = ImageColorAlloc ate ($im, 235, 235, 51);
ImageTTFText ($im, 20, 0, 10, 20, $yellow, $font,
"comming text or not?");
ImagePNG($im,te st.png);
?>
<img src="test.png" alt="image">[/code]
but I allway get error about not finding font ..
what should I do?
Comment