Bug #76264 [Com]: the TrueType / FreeType related functions doesn't work.
| From: | Anonpma at gmail dot con | Date: | Wed, 25 Apr 2018 11:25:56 +0000 |
| Subject: | Bug #76264 [Com]: the TrueType / FreeType related functions doesn't work. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214884@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
Comment by: Anonpma at gmail dot con
Reported by: anonpma at gmail dot com
Summary: the TrueType / FreeType related functions doesn't
work.
Status: Feedback
Type: Bug
Package: *Graphics related
Operating System: Debian (Rasbian Jessie)
PHP Version: 7.2.4
Block user comment: N
Private report: N
New Comment:
I mistyped the error reporting, It says imageftbbox
Previous Comments:
------------------------------------------------------------------------
[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