Re: Disappearing Type1 text

From: Date: Fri, 16 Jun 2000 00:45:08 +0000
Subject: Re: Disappearing Type1 text
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2016@lists.php.net to get a copy of this message
In article <Pine.GSO.4.05.10006141057360.16409-100000@aurinko.taivas.com>, tuupola@appelsiini.net (Mika Tuupola) wrote: > I have a script which dynamically writes text using > imagepstext() to an image created with imagecreatefromgif(). > It works fine except for on thing; sometimes the text just > wont show. This happens in about 1/15 or 1/20 times when > loading the image. > > Any idea what might be causing this? > > <? > Header ("Content-type: image/gif"); > $im = imagecreatefromgif("base.gif"); > $tc = ImageColorAllocate ($im, 102, 51, 0); > $bg = ImageColorAllocate ($im, 255, 255, 153); > $fo = ImagePSLoadFont("/usr/local/share/fonts/type1/RLSAB___.PFB"); > ImagePSText($im, "foobar", $fo, 18, $tc, $bg, 60, 28, 0, 0, 0,16); > ImageGif ($im); > ImageDestroy ($im); > ?> Wild Guess Alert: If the box is too small for any part of the text to show (ie, something gets clipped) maybe none of it shows. -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#2016) next »