Bug #76264 [Fbk]: the TrueType / FreeType related functions doesn't work.

From: Date: Wed, 25 Apr 2018 22:32:24 +0000
Subject: Bug #76264 [Fbk]: the TrueType / FreeType related functions doesn't work.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214897@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76264&edit=1 ID: 76264 Updated by: cmb@php.net Reported by: anonpma at gmail dot com Summary: the TrueType / FreeType related functions doesn't work. Status: Feedback Type: Bug -Package: *Graphics related +Package: GD related Operating System: Debian (Rasbian Jessie) PHP Version: 7.2.4 Block user comment: N Private report: N New Comment: > --with-freetype-dir=DIR If used literally, it won't work. You actually have to specify the directory where libfreetype can be found, or just use --with-freetype-dir Anyhow, please check the generated config.log file. This likely shows some freetype related error. Also check gd_info() or php_info() whether freetype is supported. Previous Comments: ------------------------------------------------------------------------ [2018-04-25 11:25:55] Anonpma at gmail dot con I mistyped the error reporting, It says imageftbbox ------------------------------------------------------------------------ [2018-04-25 11:23:44] requinix@php.net Your code says imageftbbox but the error message says imageftbox. Which is it? ------------------------------------------------------------------------ [2018-04-25 10:10:39] anonpma at gmail dot com Description: ------------ I have built PHP with both the options --enable-gd and --with-freetype-dir=DIR but it doesn't seems working. --- From manual page: http://www.php.net/function.imageftbbox --- Test script: --------------- <?php $font_size = 10; $font = 'mono.ttf'; $code = 'foobar'; $textbox = imageftbbox($font_size, 0, $font, $code); Actual result: -------------- PHP message: PHP Fatal error: Uncaught Error: Call to undefined function imageftbox() in /my_path/captcha_code_file.php:5 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76264&edit=1

« previous php.bugs (#214897) next »