0

我通过安装 enscriptbrew install enscript

通常 AFM 文件夹位于/usr/share/enscript/afm但没有这样的目录。

4

2 回答 2

0

/usr/local/Cellar/enscript/$VERSION/share/enscript/afm/

替换$VERSION为您的版本文件夹,在我的情况下,它是1.6.6_1

于 2020-10-24T08:06:50.947 回答
0

(如果通过安装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

于 2022-01-22T02:54:33.900 回答