PostScript::FontInfo - module to fetch data from PostScript font .inf files
.inf
my $info = new PostScript::FontInfo (filename, options); print STDOUT ("Name = ", $info->name, "\n");
This package allows font info files, so called .inf files, to be read and (partly) parsed.
The constructor will read the file and parse its contents.
DEPRECATED. Please use 'eval { ... }' to intercept errors.
How errors must be handled. Default is to call die(). In any case, new() returns a undefined result. Setting 'error' to 'ignore' may cause surprising results.
Prints verbose info if value is true.
Prints tracing info if value is true.
Prints debugging info if value is true. Implies 'trace' and 'verbose'.
Each of these methods can return undef if the corresponding information could not be found in the file.
undef
The name of the file, e.g. 'tir_____.inf'.
The name of the font, e.g. 'Times-Roman'.
The full name of the font, e.g. 'Times Roman'.
The family name of the font, e.g. 'Times'.
The version of the font, e.g. '001.007'.
The prefix used to form MS-DOS compliant file names, e.g. 'tir__'.
The complete contents of the file, normalised to Unix-style line endings.
Johan Vromans, Squirrel Consultancy <jvromans@squirrel.nl>
This program is Copyright 2003,1998 by Squirrel Consultancy. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of either: a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" which comes with Perl.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the Artistic License for more details.
To install PostScript::Font, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PostScript::Font
CPAN shell
perl -MCPAN -e shell install PostScript::Font
For more information on module installation, please visit the detailed CPAN module installation guide.