Copy font file to the font dir and create the images/tmp directory first and/or adjust to your needs:
'form_captcha_options' => [ 'class' => 'image', 'options' => [ 'font' => __DIR__.'/../../public/fonts/Vera.ttf', 'imgDir' => __DIR__.'/../../public/images/tmp', 'imgUrl'=>'/images/tmp/', 'wordLen' => 5, 'fontsize'=>26, 'height'=>60, 'width'=>200, 'dotNoiseLevel' => 50, 'lineNoiseLevel' => 6, 'Messages' => ['badCaptcha' => 'Wrong Antispam-Code'], 'expiration' => 300, 'timeout' => 300, ], ],
There was an error while loading. Please reload this page.