Getting perl font utilities to work
Dave Yearke
yearke at eng.buffalo.edu
Sun Apr 24 15:24:59 EDT 2005
Looks to me like you need to install the package into Perl's libraries.
There should be instructions in the package for doing that, ie. "make"
followed by "make install". If that isn't in there, there should be
instructions for installing the latest version directly from CPAN, ie.:
% perl -MCPAN -e shell
cpan> install Font::TTF::Utils
cpan> install PostScript::Font
cpan> exit
I just tried this in my Cygwin environment, so I'm sure these instructions
work. If you don't want TrueType font support, ignore the install line for
"Font::TTF::Utils".
I hope this helps.
-- Dave
> -----Original Message-----
> From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org] On
> Behalf Of Joe
> Sent: Sunday, April 24, 2005 2:49 PM
> To: NFLUG
> Subject: [NFLUG] Getting perl font utilities to work
>
> 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/T
ool/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