On Thu, Nov 12, 2009 at 9:28 PM, Orchid Fairy (兰花仙子) < practicalp...@gmail.com> wrote:
> I'm using GD::Graph::bars. > > my $graph = GD::Graph::bars->new(150,100); > > But I can't call the methods below to set the font and size. > > $graph->set_x_axis_font('arial', 15) or die $graph->error; > $graph->set_y_axis_font('arial', 15) or die $graph->error; > > Apache's error_log says: > > Cannot find TTF font: arial > Does setting the font path with GD::Text->font_path help? On Ubuntu, "arial.ttf" is located in /usr/share/fonts/truetype/msttcorefonts. -- Robert Wohlfarth