MAN page from Old RedHat 6.X perl-PostScript-Font-1.01-6.i386.rpm
lib::PostScript::FontInfo
Section: User Contributed Perl Documentation (3)
Updated: perl 5.005, patch 03
Index NAME
PostScript::FontInfo - module to fetch data from PostScript font
.inf files
SYNOPSIS
my $info = new PostScript::FontInfo (filename, options); print STDOUT ("Name = ", $info->name, "\n"); DESCRIPTION
This package allows font info files, so called
.inf files, to beread and (partly) parsed.
CONSTRUCTOR
- new ( FILENAME [ , OPTIONS ] )
- The constructor will read the file and parse its contents.
OPTIONS
- error => [ `die' | `warn' | `ignore' ]
- How errors must be handled. Default is to call die().In any case, new() returns a undefined result.
- 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'.
INSTANCE METHODS
Each of these methods can return
undef if the correspondinginformation could not be found in the file.
- FileName
- The name of the file, e.g. `tir_____.afm'.
- FontName
- The name of the font, e.g. `Times-Roman'.
- FamilyName
- The family name of the font, e.g. `Times'.
- Version
- The version of the font, e.g. `001.007'.
- PCFileNamePrefix
- The prefix used to form MS-DOS compliant file names, e.g. `tir__'.
- InfoData
- The complete contents of the file, normalised to Unix-style line endings.
AUTHOR
Johan Vromans, Squirrel Consultancy <jvromansAATTsquirrel.nl>
COPYRIGHT and DISCLAIMER
This program is Copyright 2000,1998 by Squirrel Consultancy. Allrights reserved.
This program is free software; you can redistribute it and/or modifyit under the terms of either: a) the GNU General Public License aspublished by the Free Software Foundation; either version 1, or (atyour option) any later version, or b) the ``Artistic License'' whichcomes with Perl.
This program is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either theGNU General Public License or the Artistic License for more details.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- CONSTRUCTOR
- OPTIONS
- INSTANCE METHODS
- AUTHOR
- COPYRIGHT and DISCLAIMER
This document was created byman2html,using the manual pages.