Getting perl font utilities to work
Joe
josephj at main.nc.us
Sun Apr 24 15:31:56 EDT 2005
I reread the documentation and found I missed a step.
I ran
perl Makefile.PL
make all test
This seemed to run correctly, but I'm not sure what it did.
When I run fontsampler from scripts or blib/scripts , I get the same
error as before.
Joe
[bigbird at localhost PostScript-Font-1.10]$ perl Makefile.PL
NOTICE: This package handles PostScript fonts. It can also
handle TrueType fonts, if you install the Font::TTF package
from CPAN.
URL: http://search.cpan.org/search?query=Font::TTF&mode=dist
Checking if your kit is complete...
Looks good
Writing Makefile for PostScript::Font
[bigbird at localhost PostScript-Font-1.10]$ make all test
cp lib/PostScript/PseudoISO.pm blib/lib/PostScript/PseudoISO.pm
cp lib/PostScript/WinANSIEncoding.pm blib/lib/PostScript/WinANSIEncoding.pm
cp lib/PostScript/FontMetrics.pm blib/lib/PostScript/FontMetrics.pm
cp lib/PostScript/FontInfo.pm blib/lib/PostScript/FontInfo.pm
cp lib/PostScript/Font/TTtoType42.pm blib/lib/PostScript/Font/TTtoType42.pm
cp lib/PostScript/Font.pm blib/lib/PostScript/Font.pm
cp lib/PostScript/Resources.pm blib/lib/PostScript/Resources.pm
cp lib/PostScript/ISOLatin9Encoding.pm
blib/lib/PostScript/ISOLatin9Encoding.pm
cp lib/PostScript/StandardEncoding.pm
blib/lib/PostScript/StandardEncoding.pm
cp lib/PostScript/PrinterFontMetrics.pm
blib/lib/PostScript/PrinterFontMetrics.pm
cp lib/PostScript/BasicTypesetter.pm blib/lib/PostScript/BasicTypesetter.pm
cp lib/PostScript/ISOLatin1Encoding.pm
blib/lib/PostScript/ISOLatin1Encoding.pm
cp script/font2pfb blib/script/font2pfb
/usr/bin/perl5.8.0 "-MExtUtils::MY" -e "MY->fixin(shift)"
blib/script/font2pfb
cp script/font2pfa blib/script/font2pfa
/usr/bin/perl5.8.0 "-MExtUtils::MY" -e "MY->fixin(shift)"
blib/script/font2pfa
cp script/ttfwrapper blib/script/ttfwrapper
/usr/bin/perl5.8.0 "-MExtUtils::MY" -e "MY->fixin(shift)"
blib/script/ttfwrapper
cp script/fontsampler blib/script/fontsampler
/usr/bin/perl5.8.0 "-MExtUtils::MY" -e "MY->fixin(shift)"
blib/script/fontsampler
Manifying blib/man1/font2pfb.1
Manifying blib/man3/PostScript::PseudoISO.3pm
Manifying blib/man3/PostScript::FontMetrics.3pm
Manifying blib/man3/PostScript::WinANSIEncoding.3pm
Manifying blib/man3/PostScript::Font::TTtoType42.3pm
Manifying blib/man3/PostScript::Resources.3pm
Manifying blib/man3/PostScript::StandardEncoding.3pm
Manifying blib/man1/fontsampler.1
Manifying blib/man3/PostScript::ISOLatin1Encoding.3pm
Manifying blib/man1/font2pfa.1
Manifying blib/man1/ttfwrapper.1
Manifying blib/man3/PostScript::FontInfo.3pm
Manifying blib/man3/PostScript::ISOLatin9Encoding.3pm
Manifying blib/man3/PostScript::Font.3pm
Manifying blib/man3/PostScript::PrinterFontMetrics.3pm
Manifying blib/man3/PostScript::BasicTypesetter.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.0 "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/basic....ok
t/inf......ok
t/pfm......ok
All tests successful.
Files=3, Tests=19, 4 wallclock secs ( 3.05 cusr + 0.15 csys = 3.20 CPU)
[bigbird at localhost PostScrip
Joe wrote:
> Hi. I just got these neat utilities for displaying fonts, etc. They
> are written in perl and I don't know perl at all.
>
> Description:
> http://www.squirrel.nl/people/jvromans/software/sw_psfonts.html
>
> Code:
> http://www.perl.com/CPAN/authors/Johan_Vromans/PostScript-Font-1.10.tar.gz
>
>
> They don't work "out of the box".
>
> I'm trying to get fontsampler to work first.
>
> The first thing I fixed was to change
> the path from /usr/local ... perl to /usr/bin/perl in the script header
> to match where perl lives on my system.
>
> Then, I chmoded it to make it executable.
>
> Now, the script runs, but still
> has path problems. It's looking for a module I think I do have, but in
> a different directory (see below). How do I fix it? Anything else I
> need to do to get this to work?
>
> Glancing at the script itself, I see something that looks like form size
> A4 (European page size) hard coded in some postscript. Anybody know how
> to change that to US Letter?
>
> Thanks.
>
> Joe
>
> [bigbird at localhost script]$ fontsampler
> Can't locate PostScript/Font.pm in @INC (@INC contains:
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
> ./fontsampler line 45.
> BEGIN failed--compilation aborted at ./fontsampler line 45.
>
> 45 use PostScript::Font 1.01;
>
> [bigbird at localhost script]$ locate Font.pm
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/SDL/Font.pm
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/SDL/Tool/Font.pm
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/SDL/TTFont.pm
>
--
"Joy is but the sign that creative emotion is fulfilling its purpose." -Charles Du Bos
More information about the nflug
mailing list