php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76264 the TrueType / FreeType related functions doesn't work.
Submitted: 2018-04-25 10:10 UTC Modified: 2018-06-24 04:25 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: anonpma at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: GD related
PHP Version: 7.2.4 OS: Debian (Rasbian Jessie)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: anonpma at gmail dot com
New email:
PHP Version: OS:

 

 [2018-04-25 10:10 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-04-25 11:23 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2018-04-25 11:23 UTC] requinix@php.net
Your code says imageftbbox but the error message says imageftbox. Which is it?
 [2018-04-25 11:25 UTC] Anonpma at gmail dot con
I mistyped the error reporting, It says imageftbbox
 [2018-04-25 22:32 UTC] cmb@php.net
-Package: *Graphics related +Package: GD related
 [2018-04-25 22:32 UTC] 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 22:32 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2018-06-24 04:25 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 01:01:28 2024 UTC