in reply to Re^2: OpenType Fonts support in CPAN
in thread OpenType Fonts support in CPAN

OK, but what about the return code from the font method call? That's the very first place I'd look for information, with the next place being the module code.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Replies are listed 'Best First'.
Re^4: OpenType Fonts support in CPAN
by sanPerl (Friar) on Dec 10, 2007 at 15:32 UTC
    I just checked it with
    if ($img->font('C:\WINNT\aaaZemestrostd-bk.otf')) { print "Done"; };
    It returns prints "Done" even the file "C:\WINNT\aaaZemestrostd-bk.otf" dosen't exists. Also i checked with the documentation of GD::Simple, it says "The font to use when drawing text. Both built-in bitmapped fonts and TrueType fonts are supported". I am Not sure if built-in bitmapped fonts include OTF fonts (my knowldge in this subject is very limited)
        It returns prints "Done" even the file "C:\WINNT\aaaZemestrostd-bk.otf" dosen't exists.

      OK, so it appears that the module is broken -- if it doesn't return an error when a specified file is missing, that's an error.

      The font you want to use may not be supported, as you suspect. See if you can get in touch with the authors to get this figured out, and good luck. :)

      Alex / talexb / Toronto

      "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds