From 2800ab1e88549a9070fd39c26fc726ae02ce9d91 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 13 Feb 2021 22:35:57 +0100 Subject: [PATCH] Fix headling.php cannot find font --- templates/tibiacom/headline.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/tibiacom/headline.php b/templates/tibiacom/headline.php index 36e0dd6e..261503de 100644 --- a/templates/tibiacom/headline.php +++ b/templates/tibiacom/headline.php @@ -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');