good chemistry is complicated,
and a little bit messy -LW
GD giving me the error "libgd was not built with FreeType font support"by PacoH (Initiate)
|on Dec 18, 2013 at 00:36 UTC||Need Help??|
PacoH has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to run a perl script, that was created in the Windows environment a while ago, on OS X Mountain Lion. I have installed the latest version of perl, perl-5.18.1, via perlbrew and installed the modules I needed, including PDF::API2, and GD. I installed libgd via homebrew. I am getting the error:"libgd was not built with FreeType font support"
I don't understand this because it looks as if libgd WAS built with FreeType font support:
My code includes the path to the system fonts.
This is the line that the error is referring to:$gd_text->set_font("$fontdir$typeface", $fsize) or die $gd_text->error;
This worked perfectly on Windows. All I did was change the path for OS X. Are TrueType fonts considered to be FreeType fonts?
This is what I've got in my .bash_profile:
Did I leave anything out?
How to solve this problem?