ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-web
perl-win32-web
Perl GD module- using fonts
by Dhivya Arasappan/O/VCU other posts by this author
Nov 18 2006 2:38PM messages near this date
view in the new Beta List Site
RE: ASP/PerlScript Issue - Please help | Re: Perl GD module- using fonts - issue resolved
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> Hi,
<br> <br>I'm using perl GD module. Everything is working fine except for the fonts.
<br> <br>I tried to create a string at a particular location by saying:
<br> <br>$image = new GD::Image(401,401);
<br> $image-&gt;string(gdMediumBoldFont, 60,40, "&lt;---- UP", $black);
<br> <br>and I get the following error:
<br> <h1>Software error:
</h1> 
<font face="Courier New,Courier,monospace" size="3"> font is not of type GD::Font<br><br><fon
t size="3"> <br>The funny thing is that the exact statement works if i put it in<br><br>anoth
er program, running off the same directory on the same local host.<br> <br>I cant figure out 
whats wrong.<br> <br><br>I also tried loading a font by:<br><br><br>my $font = GD::Font-&gt;l
oad("/usr/X11R6/lib/X11/fonts/Type1/cour.pfa");<br> <br><br>, but then I get this:<br><br></f
ont> <br><br><br></font><h1>Software error:
</h1> 
Success at otherscoresdump.10-27-06.pl line 1318.
<br> <br><br>
<font face="Courier New,Courier,monospace" size="3"> <font size="3">Any ideas/suggestions wou
ld be really appreciated. <br> <br><br>thanks<br><br>dhivya<br><br></font><br><br></font><br>
<br> <br></font>
Thread:
Dhivya Arasappan/O/VCU
Dhivya Arasappan/O/VCU

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved