# HG changeset patch # User boulanni # Date 1266649598 18000 # Node ID 25b7c1f20949e0ab3a5acb1457b803d8902e3919 # Parent 5c79a2557f2f45ad9c2150b9ff30f5c2d2b555aa Adapted pycaptcha to get fonts in /Tmp/allfonts local folder diff -r 5c79a2557f2f -r 25b7c1f20949 pycaptcha/Captcha/Visual/Text.py --- 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): diff -r 5c79a2557f2f -r 25b7c1f20949 pycaptcha/Captcha/data/fonts/allfonts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pycaptcha/Captcha/data/fonts/allfonts Sat Feb 20 02:06:38 2010 -0500 @@ -0,0 +1,1 @@ +/Tmp/allfonts \ No newline at end of file