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

From: Date: Sun, 24 Jun 2018 04:25:45 +0000
Subject: Bug #76264 [Fbk->NoF]: the TrueType / FreeType related functions doesn't work.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215935@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: php-bugs@lists.php.net Reported by: anonpma at gmail dot com Summary: the TrueType / FreeType related functions doesn't work. -Status: Feedback +Status: No Feedback Type: Bug Package: GD related Operating System: Debian (Rasbian Jessie) PHP Version: 7.2.4 Assigned To: cmb Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2018-04-25 22:32:24] cmb@php.net > --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. ------------------------------------------------------------------------ [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 (#215935) next »