Subversion Repositories SmartDukaan

Rev

Rev 10621 | Rev 10655 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10621 Rev 10631
Line 190... Line 190...
190
		// -----------------------------------
190
		// -----------------------------------
191
 
191
 
192
		$use_font = ($font_path != '' AND file_exists($font_path) AND function_exists('imagettftext')) ? TRUE : FALSE;
192
		$use_font = ($font_path != '' AND file_exists($font_path) AND function_exists('imagettftext')) ? TRUE : FALSE;
193
 
193
 
194
		if ($use_font == FALSE)
194
		if ($use_font == FALSE)
195
		{	echo 'inside font';
195
		{
196
			$font_size = 26;
196
			$font_size = 16;
197
			$x = rand(0, $img_width/($length/3));
197
			$x = rand(0, $img_width/($length/3));
198
			$y = 0;
198
			$y = 0;
199
		}
199
		}
200
		else
200
		else
201
		{
201
		{
202
			$font_size	= 26;
202
			$font_size	= 16;
203
			$x = rand(0, $img_width/($length/1.5));
203
			$x = rand(0, $img_width/($length/1.5));
204
			$y = $font_size+2;
204
			$y = $font_size+2;
205
		}
205
		}
206
 
206
 
207
		for ($i = 0; $i < strlen($word); $i++)
207
		for ($i = 0; $i < strlen($word); $i++)