diff pycaptcha/Captcha/Visual/Text.py @ 132:25b7c1f20949

Adapted pycaptcha to get fonts in /Tmp/allfonts local folder
author boulanni <nicolas_boulanger@hotmail.com>
date Sat, 20 Feb 2010 02:06:38 -0500
parents 4775b4195b4b
children
line wrap: on
line diff
--- a/pycaptcha/Captcha/Visual/Text.py	Fri Feb 19 08:43:10 2010 -0500
+++ b/pycaptcha/Captcha/Visual/Text.py	Sat Feb 20 02:06:38 2010 -0500
@@ -18,7 +18,7 @@
        If any of the given files are directories, all *.ttf found
        in that directory will be added.
        """
-    extensions = [".ttf"]
+    extensions = [".ttf", ".TTF"]
     basePath = "fonts"
 
 # arguments variables a modifier pour mettre le chemin vers les fontes.
@@ -39,7 +39,7 @@
         return (fileName, size)
 
 # Predefined font factories
-defaultFontFactory = FontFactory(25, "vera", "others")
+defaultFontFactory = FontFactory(25, "allfonts")
 #defaultFontFactory = FontFactory((30, 40), "vera")
 
 class TextLayer(Visual.Layer):