Skip to content

Instantly share code, notes, and snippets.

@raulandregp
Created June 20, 2013 19:32
Show Gist options
  • Select an option

  • Save raulandregp/5825866 to your computer and use it in GitHub Desktop.

Select an option

Save raulandregp/5825866 to your computer and use it in GitHub Desktop.
<?php
/*require('php-captcha.inc.php');
$aFonts = array('fonts/VeraBd.ttf', 'fonts/VeraIt.ttf', 'fonts/Vera.ttf');
$oVisualCaptcha = new PhpCaptcha($aFonts, 200, 60);
$oPhpCaptcha->UseColour(true);
$oVisualCaptcha->Create();*/
require('php-captcha.inc.php');
# // define fonts
$aFonts = array('fonts/VeraBd.ttf', 'fonts/VeraIt.ttf', 'fonts/Vera.ttf');
# // create new image
$oPhpCaptcha = new PhpCaptcha($aFonts, 200, 50);
$oPhpCaptcha->UseColour(true);
$oPhpCaptcha->Create();
?>
@kinncj
Copy link

kinncj commented Jun 20, 2013

Por favor, verifique se o path das fontes correspondem ao local aonde as fontes estão.

$aFonts = array('fonts/VeraBd.ttf', 'fonts/VeraIt.ttf', 'fonts/Vera.ttf');

diretorio = Fonts
fonte = VeraBd.ttf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment