in reply to StringFT (truetype) not working in Windows?

When you compiled libgd did you configure font support? See my advice here regarding building libgd and the GD modules with the 'optional' packages. The libgd documentation details tests to run for font support.

  • Comment on Re: StringFT (truetype) not working in Windows?

Replies are listed 'Best First'.
Re^2: StringFT (truetype) not working in Windows?
by ikaruga (Novice) on Feb 01, 2010 at 16:09 UTC
    As I said in the post, I'm in Windows using ActivePerl with GD precompiled. I have no idea if it was compiled with TrueType (and I can't seem to find any webpages mentioning if it is---that's why I'm here). Also, shouldn't it give some kind of error message if truetype support wasn't compiled in? How can I tell if it's not?
      It seems that it wasn't. The following code fails (as in it doesn't print the success string). Anyone know where I can get a precompiled GD library with TrueType support? I really don't know the first thing about compiling on Windows... (Linux I can handle)
      use GD::Text; my($gd_text) = GD::Text-> new() or die GD::Text::error(); if ($gd_text-> can_do_ttf()) { print "Well, GD::Text says I can handle TTFs! Isn't that a hoot!\ +n"; }