We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
[PARTIAL SOLVED] imagettftext not working
-
- Posts: 2
- Joined: Sun Apr 05, 2015 12:16 am
[PARTIAL SOLVED] imagettftext not working
Hello, I use the same script on 2 hosts (a shared host and my personal vps). When I run a function on the shared hosting I get the correct image:
but in my vps
So ... imagettftext is not working.
This is my php.ini
http://24-apps.com/info.php
Edit:
The problem was the font path:
$font = 'arialbd.ttf'
To work I got 2 solutions:
1. putenv('GDFONTPATH=' . realpath('.')); $font = 'arialbd.ttf'
or
2. $font = './arialbd.ttf';
But I would like to use:
$font = 'arialbd.ttf' without putenv.
but in my vps
So ... imagettftext is not working.
This is my php.ini
http://24-apps.com/info.php
Edit:
The problem was the font path:
$font = 'arialbd.ttf'
To work I got 2 solutions:
1. putenv('GDFONTPATH=' . realpath('.')); $font = 'arialbd.ttf'
or
2. $font = './arialbd.ttf';
But I would like to use:
$font = 'arialbd.ttf' without putenv.