[kw-pm] GD::Text::Arc

Daniel R. Allen daniel at coder.com
Thu Jan 22 20:14:29 CST 2004


I just finished version 0.01 of a module which uses GD and GD::Text
to draw text on a curve.  Not the most common of needs, I guess, since
nobody had written that before.  But the next time you're designing a
button or a customized clock in Perl, it might come in handy.

It works with arbitrary GD graphics objects and TrueType fonts, tries to
provide intelligent defaults, and the output doesn't look so bad.

Sample output is: http://coder.com/daniel/arc-sample.jpg

This was also my first foray into writing tests while I wrote code; that
was just as useful as everyone says it is, so I think I'm a convert. Of
course, I'm sure I need way more than 46 tests, but it's an OK first
draft.

Now that I'm all puffed up with releasing my first CPAN module and stuff,
I'd love for people to pick it apart and tell me what I did badly. :-)

http://search.cpan.org/~dallen/GD-Text-Arc-0.01/

-Daniel

--
http://coder.com/ - Prescient Code Solutions - (519) 575-3733 da at coder.com




More information about the kw-pm mailing list