PHP imagettftext Is Not Showing Text

Website:
https://bimmr6696.000webhostapp.com/signs/Sign.php?Line1=&Line2=asd&Line3=&Line4=

PhpInfo:
https://bimmr6696.000webhostapp.com/signs/test.php


Currently I have the following code:

$img = LoadPNG('sign.png');
//$font = imageloadfont('minecraft.ttf');

// Add the text
imagettftext($img, 20, 0, 5,5, $black, 5, "Test Text");
imagestring($img, 5, 5, 50, 'Test Text', $text_color);


// Create image instances
$dest = imagecreatetruecolor(80, 40);

// Copy
imagecopy($dest, $img, 0, 0, 20, 13, 80, 40);

// Set the content type header - in this case image/jpeg
header('Content-type: image/jpeg');

// Output the image
imagejpeg($img);
imagejpeg($dest);

imagedestroy($dest);
imagedestroy($img);

When I use imagestring I’m able to get the text to show, but the text is too small which causes me to need imagettftext, although nothing shows when I use this. I’ve just about run out of ideas to try and solve this and so any help would be very appreciated.


TLDR: I need to either find out why imagettftext doesn’t work or find a way to change font size with imagestring

Maybe you typed the code wrong.
Here is a sample

array imagettftext ( resource $image , float $size , float $angle , int $x , int $y , int $color , string $fontfile , string $text );