Jump to content

Help with TTF font please


Patriot

Recommended Posts

The following code:

$banner     = imagecreatefromgif("backgrounds/sigt" . rand(1,6) . ".gif");
	$prizeimage = imagecreatefromgif("prizes/ps3.gif");

	$fontcolor  = imagecolorallocate($banner, 0, 0, 0);
	imagettftext($banner, 13, 0, 7, 73, $fontcolor, "MyriadPro-Regular.otf", "Freebie: " . $prize);

	imagecopy($banner, $prizeimage, 312, 4, 0, 0, 84, 97);

 

Selects a random background and writes text on it.  While the text should be black, it is becoming partially transparent on some backgrounds, making it gray or almost invisible.  Does anyone know why this is?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/94060-help-with-ttf-font-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.