jammyb has asked for the wisdom of the Perl Monks concerning the following question:

I apologise if I have posted this in the wrong place - there is so little about the Builder package that I thought it would be sensible to ask someone who has already succeeded with it. And I'm going crazy with this problem anyway!

I have installed SWF::Builder 0.16 on a W2K box (under ActiveState perl) and attempted to run a couple of examples including the one by zentara at http://www.perlmonks.org/?node_id=515732 (the other examples are supplied with the package).

When I run an example I get the message "Failed loading font module. It is necessary to install Font-FreeType or Font-TTF to use outline fonts at D:/program files/perl/site/lib/SWF/Builder.pm line 166".

However, I can see that the modules FreeType.pm and TTF.pm are already installed in the directory ...\SWF\Builder\Character\Font.

A few of my own examples have worked but only those which don't involve text or fonts.

Can anyone suggest how to get this going?

Thank you!

  • Comment on Problem with SWF::Builder Installation?

Replies are listed 'Best First'.
Re: Problem with SWF::Builder Installation?
by Corion (Patriarch) on Jun 05, 2009 at 13:23 UTC

    I assume without having checked further that the module is talking about the Font::FreeType or Font::TTF modules, and that the files SWF/Builder/Character/Font/FreeType.pm and SWF/Builder/Character/Font/TTF.pm are just adaptors of the internal SWF API to each of the two modules.

      Thank you for your quick reply. I assumed that the error message referred to the Font::FreeType and Font::TTF modules. I don't know the answer to the question of adaptors.

      The links you gave in your reply point to different FreeType.pm and TTF.pm from those that come with the SWF::Builder distribution.

      I have checked and the SWF::Builder 0.16 variants are the only ones installed on my system.

      Any further suggestions welcome!

        I'm sorry that I didn't make it clearer previously. The SWF::Builder README file says that you need to install either Font::FreeType or Font::TTF for the SWF::Builder to work with fonts. So you will have to install one of the two modules.