Good day everybody
I'm using imagettftext to generate a png image with text onto it, everything is fine except I need to have the first word in red and the second one in grey. If I just add another
Code:
imagettftext($im, 14, 0, 0, 29, $grey, $font, $text2);the second word will start at the end of the first png box (which is 400 pixels wide). Instead I'd like it to start right at the end of the first word ($text1), preferrably in the same png box. Here's what I use:
PHP Code:
ini_set('session.save_handler', 'files');
session_start();
// Set the content-type
header("Content-type: image/png");
// Create the image
$im = imagecreate(400, 34);
// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);
$red = imagecol
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --