mewebstudio / captcha

Captcha for Laravel 5/6/7/8/9/10/11
MIT License
2.46k stars 452 forks source link

Suggestion to support other characters than Latin #122

Open saidbakr opened 7 years ago

saidbakr commented 7 years ago

I have tried to use Arabic characters in the characters configuration's key. However, the captcha image failed to render correct characters, it rendered wrong characters such as the following screen shot: c I suggest to integrate solutions such as Glyphs in Ar-PHP project.

Thorn-workshop commented 6 years ago

The correct way is to use an array of characters instead of a string in the configuration. This will require a very small rewriting of the code. But make sure your TTF font supports the correct language.

saidbakr commented 6 years ago

@Thorn-workshop I'm sure that the TTF font used is supporting Arabic.