Linux command
pf2afm 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Convert PFB to AFM
pf2afm [font.pfb] > [font.afm]
Process multiple fonts
for f in *.pfb; do pf2afm "$f" > "${f%.pfb}.afm"; done
说明
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.
FAQ
What is the pf2afm command used for?
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.
How do I run a basic pf2afm example?
Run `pf2afm [font.pfb] > [font.afm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more pf2afm examples?
This page includes 2 examples for pf2afm, plus related commands for nearby Linux tasks.