i want to make an arc text but its not working. these are the coding that i use. the font also does not appear as i aspect.
Code: Select all
<?php
if (isset($_POST['btnSubmit']))
{
$im = imagecreate(180, 180); //container
$bg = imagecolorallocate($im, 255, 255, 255); //background
$txtcolor = imagecolorallocate($im, 0, 0, 0); //txt color
$font = 'fonts/AVIAN_0.TTF'; //font
$txt = trim($_POST['image_text']);
imagestring($im, 5, 0, 0, $txt, $txtcolor, $font);
imagearc($im, 90, 90, 180, 180, 0, 360, $txtcolor, $txt);
//imagettftext($im, $text);
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
}
?>Code: Select all
<html>
<head>
</head>
<body>
<form action="" method="post" name="frm">
<input name="image_text" type="text" id="image_text" />
<input name="btnSubmit" type="submit" />
</form>
</body>
</html>