-1

I'm using JSF myfaces 2.0. The captcha image is corrupted on screen. The OS is RHEL 7.4.

I'm using new OS, RHEL 7.4. I downloaded tomahawk20 sources and debugged the code. Found that captcha text is generated properly in class CAPTCHAImageGenerator.class. However, captcha image is corrupted (geometric shapes in the box like triangle, line, arrow, carrot symbol etc.) on screen.

Expected: Captcha must be readable.

omi0208
  • 1
  • 2

1 Answers1

0

I solved it on my own. The drawTextOnImage function of CAPTCHAImageGenerator class in tomahawk20 uses Arial font. Pls. install Arial font on your machine and retry. It will work. enjoy!

omi0208
  • 1
  • 2