LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pf2afm

extracts AFM from PFB

TLDR

Convert PFB to AFM
$ pf2afm [font.pfb] > [font.afm]
copy
Process multiple fonts
$ for f in *.pfb; do pf2afm "$f" > "${f%.pfb}.afm"; done
copy

SYNOPSIS

pf2afm font

DESCRIPTION

pf2afm extracts Adobe Font Metric (AFM) data from a PostScript Type 1 font binary (.pfb) or ASCII (.pfa) file. It writes the generated AFM content to standard output, which is typically redirected to a .afm file.The utility is a small wrapper that invokes Ghostscript with the internal pf2afm.ps script. It is helpful when only a font's binary form is available but AFM metrics are required by TeX, Ghostscript, or other typesetting tools.

PARAMETERS

FONT

PostScript Type 1 font file (.pfb or .pfa) from which metrics are extracted.

CAVEATS

Part of Ghostscript. PostScript Type 1 fonts. Metric extraction only.

HISTORY

pf2afm is part of Ghostscript for extracting font metrics.

SEE ALSO

gs(1), printafm(1), afm2tfm(1)

Copied to clipboard
Kai