PostScript::Font is a Perl module to fetch data from PostScript fonts.
SYNOPSIS
my $info = new PostScript::Font (filename, options);
print STDOUT ("Name = ", $info->FontName, "n");
This package reads PostScript font files and stores the information in memory.
Most font file formats that are in use are recognised, especially the Type 1 and Type 42 font formats. Other formats that usually parse okay are Type 5 and Type 3, although Type 3 can sometimes fail depending on how weird the font information is stored.
The input font file can be encoded in ASCII (so-called .pfa format), or binary (so-called .pfb format).
If you have Martin Hosken's Font::TTF package installed, PostScript::Font can also handle True Type fonts. They are converted internally to Type 42 format.
CONSTRUCTOR
new ( FILENAME [ , OPTIONS ] )
The constructor will read the file and parse its contents.
OPTIONS
error => [ 'die' | 'warn' | 'ignore' ]
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.
format => [ 'ascii' | 'pfa' | 'binary' | 'pfb' ]
The format in which the font data is stored. Default is 'ascii', suitable to be downloaded to a PostScript printer.
verbose => value
Prints verbose info if value is true.
trace => value
Prints tracing info if value is true.
debug => value
Prints debugging info if value is true. Implies 'trace' and 'verbose'.
Product's homepage
Requirements:
· Perl