Getting perl font utilities to work

Joe josephj at main.nc.us
Sun Apr 24 14:49:15 EDT 2005


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

-- 
"If God did not exist it would be necessary to invent Him. But all 
nature cries aloud that He does exist; that there is a supreme 
intelligence, an immense power, an admirable order, and everything 
teaches us our own dependence on it." --Voltaire





More information about the nflug mailing list