Fix headling.php cannot find font

This commit is contained in:
slawkens 2021-02-13 22:35:57 +01:00
parent faf40f8bed
commit 2800ab1e88

View File

@ -27,7 +27,8 @@ if(!@file_exists($page_file))
imagecolortransparent($image, imagecolorallocate($image, 0, 0, 0));
// set text
imagettftext($image, 18, 0, 4, 20, imagecolorallocate($image, 240, 209, 164), 'martel.ttf', utf8_decode($_GET['t']));
$font = getenv('GDFONTPATH') . DIRECTORY_SEPARATOR . 'martel.ttf';
imagettftext($image, 18, 0, 4, 20, imagecolorallocate($image, 240, 209, 164), $font, utf8_decode($_GET['t']));
// header mime type
header('Content-type: image/gif');