PostScript::Resources

PostScript::Resources is a Perl module to fetch data from Unix PostScript Resource '.upr' files.
Download

PostScript::Resources Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Johan Vromans, Squirrel Consultancy
  • Publisher web site:
  • http://search.cpan.org/~jv/PostScript-Font-1.10/lib/PostScript/Font.pm

PostScript::Resources Tags


PostScript::Resources Description

PostScript::Resources is a Perl module to fetch data from Unix PostScript Resource '.upr' files. PostScript::Resources is a Perl module to fetch data from Unix PostScript Resource '.upr' files.SYNOPSIS my $rsc = new PostScript::Resources (options); print STDOUT $rsc->FontAFM ("Times-Roman"), "n";This package allows Unix font resource files, so called '.upr' files, to be read and parsed.CONSTRUCTORnew ( OPTIONS )The constructor will initialise the PostScript resource context by loading all resource files.OPTIONSpath => pathpath is a colon-separated list of locations where resource files are kept. It defaults to the value of the environment variable PSRESOURCEPATH, which defaults to '::'.Two adjacent colons in the path represent the list of default places in which a component looks for resources. This is also the default value for users who have not installed private resources. Users with private resources should end the path with a double colon if they want their resources to override the system defaults, or begin it with a double colon if they don't want to override system defaults.On Unix systems, resource files end with the suffix '.upr' (for Unix PostScript resources). The principal resource file in a directory is named 'PSres.upr'.If the first line of a principal resource file is 'PS-Resources-Exclusive-1.0', only this file will be loaded and processing continues with the next entry from the path.If, however, the first line of the principal resource file is 'PS-Resources-1.0', or if there is no such file, all files in the directory with the suffix '.upr' will be loaded.stdpath => pathThe standard locations for resource files.error => How errors must be handled.Invalid entries in the file are always reported unless the error handling strategy is set to 'ignore'.verbose => valuePrints verbose info if value is true.trace => valuePrints tracing info if value is true. trace' and 'Implies 'verbose'.debug => valuePrints debugging info if value is true. Implies 'trace' and 'verbose'.INSTANCE METHODSEach of these methods can return undef if the corresponding information could not be found in the file.FontAFM ( FONTNAME )The name of the Adobe Font Metrics (.afm) file for the named font.FontOutline ( FONTNAME )The name of the PostScript Font program for the named font. Requirements: · Perl


PostScript::Resources Related Software