Are you specifying a font path? I have tried the way you suggest. I get my label to print, but it's using the default GD font (gdTiny). If I set the point size, nothing happens. I can also set the 'Arial' to '', and same results.
I'm running on XP. Scott Campbell Senior Software Developer Somix Technologies (207) 324-8805 http://www.somix.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Edward G. Orton Sent: Thursday, April 18, 2002 8:53 PM To: Paul O'Russa; 'activeperl' Subject: Re: gd and fonts ----- Original Message ----- From: "Paul O'Russa" <[EMAIL PROTECTED]> To: "'activeperl'" <[EMAIL PROTECTED]> Sent: Thursday, April 18, 2002 4:29 PM Subject: gd and fonts > I've looked through the archives and I haven't seen anyone post a solution > to the GD with TrueType fonts problem some are having (including me). I'm > using GD::Graph and want to set the font+size on the text, but when I set > the font to a truetype font I get these square boxes where the text should > be. I've reinstalled GD, GDGraph, and GDTextUtil several times. I'm using > something like this: > > $graph->set_x_label_font('c:\code\perl\arial.ttf', 10); > > And yes, "$graph->can_do_ttf()" returns true. I'm running build 623 on > Windows 2000. > > Does anyone know what the problem is? I'm not sure, but all I ever specify is the font name, not the font file, and it works for me: $graph->set_x_label_font('Arial', 10); ego Edward G. Orton, GWN Consultants Inc. Phone: 613-764-3186, Fax: 613-764-1721 email: [EMAIL PROTECTED] _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
