I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-10-19 02:15:34-07 by pygin
stringFT not working??
I had an old script with an stringFT function in it and it used to work fine. I have recently installed Active Perl 5.10 (build 1004) for Windows, tried the script again, and now I can't print text into my image. Everything else works (I can draw lines and points), but stringFT will not work. This is what I am trying:
$black = $im->colorAllocate(0,0,0); @bounds = $im->stringFT($black,'C:\WINDOWS\Fonts\COURBD.TTF',18,0,280,170, "adadfasfd");
I can't understand why this no longer works. Does anyone have any ideas?
Direct Responses: 9095 | Write a response
Posted on 2008-10-19 19:05:52-07 by pygin in response to 9092
Re: stringFT not working??
I got this working now.

I printed $@ to display the error returned from stringFT(). It said this:

libgd was not built with FreeType font support

What I ended up doing was using ActivePerl 5.8.0.806 (ActivePerl-5.8.0.806-MSWin32-x86.msi). I downloaded it from oldapps.com. It did not have GD installed, so from the Windows command prompt I ran:
ppm install http://theoryx5.uwinnipeg.ca/ppms/GD.ppd
this installed GD Version 2.35

There are probably other websites to find GD.ppd, but I found instructions from here:
http://www.hamweather.com/kb/index.php?article=22

Now it works. I am not sure if this will work with the current latest version, 5.10, because 5.10 comes with GD. I don't know if you can simply replace the old one with a new one.
Direct Responses: Write a response