我通过安装 enscriptbrew install enscript
通常 AFM 文件夹位于/usr/share/enscript/afm
但没有这样的目录。
/usr/local/Cellar/enscript/$VERSION/share/enscript/afm/
替换$VERSION
为您的版本文件夹,在我的情况下,它是1.6.6_1
Macports
)open/opt/local/etc/enscript.cfg
告诉 enscript 东西在哪里。
就我而言,在通过macports
它安装 enscript 后有这样的说法:
# Lookup path for the AFM files.
AFMPath: /opt/local/share/enscript/afm:/usr/local/lib/ps:/usr/lib/ps
这些目录不一定都存在,但对我来说是/opt/local/share/enscript/afm
.
如果您正在寻找字体名称(并记住命令行格式-f <name><size>
为-f Courier5
/opt/local/share/enscript/afm/font.map
AvantGarde-Demi agd
AvantGarde-DemiOblique agdo
AvantGarde-Book agw
AvantGarde-BookOblique agwo
Bookman-Demi bkd
Bookman-DemiItalic bkdi
Bookman-Light bkl
Bookman-LightItalic bkli
Courier-Bold cob
Courier-BoldOblique cobo
Courier com
Courier-Oblique coo
Helvetica hv
Helvetica-Bold hvb
Helvetica-BoldOblique hvbo
Helvetica-Condensed hvc
Helvetica-Condensed-Bold hvcb
Helvetica-Condensed-BoldObl hvcbo
Helvetica-Condensed-Oblique hvcdo
Helvetica-Narrow hvn
Helvetica-Narrow-Bold hvnb
Helvetica-Narrow-BoldOblique hvnbo
Helvetica-Narrow-Oblique hvno
Helvetica-Oblique hvo
Matrix matrix
NewCenturySchlbk-Bold ncb
NewCenturySchlbk-BoldItalic ncbi
NewCenturySchlbk-Italic nci
NewCenturySchlbk-Roman ncr
Palatino-Bold pob
Palatino-BoldItalic pobi
Palatino-Italic poi
Palatino-Roman por
Symbol sy
Times-Bold tib
Times-BoldItalic tibi
Times-Italic tii
Times-Roman tir
ZapfChancery-MediumItalic zcmi
ZapfDingbats zd