I'm trying to produce truetype text in an image using GD. All I get is junk
text output (please see http://beaucox.com/_test_/gd/ttf.html). All
characters are mono-spaced "boxes"!!!??????

The code is:

        ...
        my @bounds = $img->stringTTF ($black,"verdana.ttf",
                12, 0, 20, 20, 'abcdefABCDEF0123456789');
        die ("ttf error $@") unless @bounds;
        ...

Please help me find my stupid error!

I am using:
1. Windows 2000 Pro on a new machine (1.1Ghz PIII w/1024Mb memory, ATI
   all-in-wonder).
2. Current ActivePerl.
3. Latest GD PPMed from ActiveState.
4. The rest of GD works fine.
5. Font used (verdana) copied from /WINNT/Fonts to CWD.
6. I have tried _all_ ttf fonts - same results.
7. stringTTF returns a reasonable bounding rectangle, the pod says this
won't
   happen if GD does not have TTF support compiled in.

Aloha in advance - Beau.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to