View on
Johan Vromans > PostScript-Font > font2pfa/font2pfb


Annotate this POD


Open  2
View/Report Bugs


font2pfa/font2pfb - decodes/encodes binary or ASCII encoded PostScript fonts


  font2pfa [options] [input]
  font2pfb [options] [input]

    -output XXX         writes output to file XXX instead of standard output
    -ascii|pfa          decodes to .pfa (ASCII) format
    -binary|pfb         encodes to .pfb (binary) format
    -help               this message
    -ident              show identification
    -verbose            verbose information


font2pfa converts a PostScript font.

The program takes, as command line arguments, the name of a PostScript font file, encoded either in binary (.pfb) or ascii (.pfa) format, optionally followed by the name of the output file. If no filenames are supplied, the program reads from standard input and writes to standard output.

The output will be ASCII encoded (.pfa format), unless the -binary or -pfb option is used, or the program is installed under a name that ends in pfb.

font2pfa depends on the capabilities of the PostScript::Font module. If your version supports True Type fonts, font2pfa will happily produce ASCII or binary encoded Type42 versions of True Type fonts.


-output filename

Writes the output to the named file. If this option is omitted, output is sent to standard output.

-ascii or -pfa

Output the font in ASCII (.pfa) format. This is the default behavior when the program is installed under the name font2pfa.

-binary or -pfb

Output the font in binary (.pfb) format. This is the default behavior when the program is installed under the name font2pfb.


Print a brief help message and exits.


Prints program identification.


More verbose information.


Johan Vromans, Squirrel Consultancy <>


This program is Copyright 2000,1999 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.

syntax highlighting: