Index: image_captcha.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/captcha/image_captcha/Attic/image_captcha.module,v
retrieving revision 1.1.4.20
diff -u -r1.1.4.20 image_captcha.module
--- image_captcha.module	9 Oct 2007 15:17:25 -0000	1.1.4.20
+++ image_captcha.module	9 Oct 2007 15:30:38 -0000
@@ -192,6 +192,12 @@
     ),
     '#default_value' => (int) variable_get('image_captcha_noise_level', 5),
   );
+  $form['image_captcha_distortion_and_noise']['image_captcha_character_spacing'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Character spacing'),
+    '#description' => t('The spacing delimiter between characters when rendering the challenge.'),
+    '#default_value' => variable_get('image_captcha_character_spacing', 1.2),
+  );
   return system_settings_form($form);
 }
 
@@ -226,6 +232,10 @@
     elseif ($font != 'BUILTIN' && (!is_file($font) || !is_readable($font))) {
       form_set_error('image_captcha_font', t('Font does not exist or is not readable.'));
     }
+    // check character spacing
+    if(!is_numeric($form_values['image_captcha_character_spacing'])) {
+      form_set_error('image_captcha_character_spacing', t('The character spacing must be a number.'));
+    }
   }
 }
 
@@ -366,9 +376,10 @@
   }
   // get other settings
   $font_size = (int) variable_get('image_captcha_font_size', 30);
+  $character_spacing = (float) variable_get('image_captcha_character_spacing', 1.2);
   $characters = _image_captcha_utf8_split($code);
   $character_quantity = count($characters);
-  $width = 1.2 * $font_size * $character_quantity;
+  $width = $character_spacing * $font_size * $character_quantity;
   $height = 2 * $font_size;
 
   // create image resource
