Re: Disappearing Type1 text
| From: | jah at mork dot net | Date: | Fri, 16 Jun 2000 05:41:34 +0000 |
| Subject: | Re: Disappearing Type1 text | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2046@lists.php.net to get a copy of this message | ||
On Thu, 15 Jun 2000, Richard Lynch wrote:
> 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.
No, it's not that. I too had occasional problems with the text not getting
generated with T1lib versions 0.9.x (and that was also with PHP3), after
swithing to version 1.x I haven't been able to recreate the problem.
So that's why I haven't even looked at the sources and fixed the problem,
I've been assuming there isn't any bugs. Please tell me you are using an
old version of T1lib... otherwise, you'll have to tell more about your
server and setup.
-- Jouni Ahto
PS: Mä vaikutan Helsingissä, että jos toi ongelma on todellakin tosi
kriittinen jollekin projektille niin voit saada imageps*() -funktioiden
kirjoittajan itsensä paikan päälle selvittämään asiaa.