Closed (duplicate)
Project:
CAPTCHA
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2006 at 14:49 UTC
Updated:
14 May 2006 at 11:40 UTC
Without TTF support currently installed, I use the Captcha module with the default font. I noticed that sometimes the text drifts out of sight above the top edge of the image. In reviewing the module code, I noticed that in the _captcha_image function, for true type font implementation, $y is set to 30, but in the "write text using a built-in font" else-block $y is set to 0. Changing $y's initial value in the else-block to 30 seemed to solve the problem: text now start close to the center of the image and drifts slightly up and down from there. See "EDIT:" comment in attached patched module.
| Comment | File | Size | Author |
|---|---|---|---|
| captcha_3.module | 12.58 KB | white-raven |
Comments
Comment #1
lappie commentedEssentially duplicate with 62677.