happydoggy has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to create png file on the fky with perl GD::text and perl::graph modules. OS: redhat linux enterprise version 3.0 Have perl-GD-Text-Util-0.86-0.dag.src.rpm installed. Run "perl -MCPAN -e 'install GD::Text' perl -MCPAN -e 'install GD::Graph' " Now when i created an gd text object to set font, it showed me that it can only work with buildin font rahter than true type font. What Can I do so that it can work with true type font as well. Thanks

Replies are listed 'Best First'.
Re: GD text set font problem
by brian_d_foy (Abbot) on Mar 17, 2005 at 19:46 UTC

    Do you have TrueType fonts installed and does GD::Text know where to find them ( $gd->fontpath() ). Do you have a version of the GD library (not the Perl module) greater than 1.20, and is it compiled for TrueType support?

    You should be able to find plenty of answers with Google. Good luck :)

    --
    brian d foy <bdfoy@cpan.org>
Re: GD text set font problem
by LTjake (Prior) on Mar 17, 2005 at 19:44 UTC

    In order for TrueType fonts to work with GD, you need to build it with Freetype support. See the GD manual, and the Freetype page for more info.

    --
    "Go up to the next female stranger you see and tell her that her "body is a wonderland."
    My hypothesis is that she’ll be too busy laughing at you to even bother slapping you.
    " (src)