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.

CommentFileSizeAuthor
captcha_3.module12.58 KBwhite-raven

Comments

lappie’s picture

Status: Active » Closed (duplicate)

Essentially duplicate with 62677.