The image CAPTCHA provides a rather crappy default font, which is some built-in PHP bitmap font. Admin has to upload an ttf him/herself to make the image CAPTCHA acceptable. The reason to not include some ttf fonts with the image CAPTCHA package are licensing issues.
But now there is the recently launched http://fontstruct.fontshop.com where you can easily create ttf fonts.
That site contains now a lot of fonts, made by its users, which are licensed under a creative commons license.
So we could now reconsider to provide some default font(s) with the image CAPTCHA package
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | tesox-sample.png | 31.95 KB | soxofaan |
Comments
Comment #1
soxofaan commentedfrom http://drupal.org/node/312970#comment-1028572:
Comment #2
cwatt commentedOr an alternative might be to use the Liberation fonts available from https://fedorahosted.org/liberation-fonts/ which includes open source alternatives for popular fonts.
Comment #3
soxofaan commentedI' would really like to provide a better default font, but I'm still not sure if it's compatible with Drupal code hosting policies
some pointers:
http://drupal.org/node/124978
http://lists.drupal.org/pipermail/development/2006-May/016589.html
http://drupal.org/node/66113
Comment #4
soxofaan commentedI was searching for public domain fonts and just found Tuffy, which can be used totally unrestricted:
I think I'm going to include this one (probably the regular and bold weight versions): it's a pretty normal font, nothing fancy, recognizable characters, it covers [a-zA-Z0-9], there is clear difference between upper and lower case
Comment #5
soxofaan commentedI just tried to add Tuffy, but the drupal cvs server complained about the included LICENCE.txt file:
I'm not a license expert, but I guess relicensing public domain work as GPL is also not permitted.
Comment #6
rodenp commentedComment #7
soxofaan commentedI've started the thread #497822: Drupal.org CVS policy regarding fonts in the drupal.org infrastructure issue queue.
Hopefully some license expert picks it up and can figure out what's possible
Comment #8
soxofaan commentedI also started to play with the FontStruct tool to create a font myself, so I can license it the way I want:
http://fontstruct.fontshop.com/fontstructions/show/dropacha
The font is rather grunge, free hand, low quality, and everything but professional of course,
but in way that is ok for an Image CAPTCHA ;)
Comment #9
soxofaan commentedhere is another possible solution to create a font ourselves: http://www.fontcapture.com/
Comment #10
soxofaan commentedI played a bit with http://www.fontcapture.com/ and came up with this font
much better than the crap in #8
Comment #11
soxofaan commentedYay,
I finally pushed the button and now image captcha includes a TrueType (Tesox) font by default:
http://drupal.org/cvs?commit=264260