Subversion Repositories SmartDukaan

Rev

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

Rev 10655 Rev 10780
Line 191... Line 191...
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
		{
195
		{
196
			$font_size = 16;
196
			$font_size = 12;
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	= 16;
202
			$font_size	= 12;
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++)