需要软件
- xpdf : https://brewinstall.org/Install-xpdf-on-Mac-with-Brew/
- mupdf : https://brewinstall.org/Install-mupdf-on-Mac-with-Brew/
正文
遇到一个排版非常漂亮的PDF,想看看使用了什么字体。于是下载了上面两个命令行工具,先试试手:
mutool info "石頭記.糸欄版.第二版.20191010.ver1.6b.口令:passwd.pdf"
_________________________________________________________
石頭記.糸欄版.第二版.20191010.ver1.6b.口令:passwd.pdf:
PDF-1.5
Info object (2 0 R):
<</Creator<FEFF00750070004C0061005400650058002000770069007400680020007000610063006B006100670065002000680079007000650072007200650066002000A900200032003000310039>/Title<FEFF8102786F9F4B91CD8A5577F3982D8A184E4B5E9A8FB0672C0020FF080020007400680065002000540061006C00650020006F00660020007400680065002000530074006F006E00650020002800470065006E0067004300680065006E002000450064006900740069006F006E00290020FF09>/Subject<FEFF004300680069006E00650073006500200043006C006100730073006900630061006C0020004C0069007400650072006100740075007200650020006F006600200074006800650020005400730069006E0067002000440079006E006100730074007900200028007400680065002000510069006E0067002000440079006E00610073007400790029>/Author<FEFF66F996EA82B9FF08002000430061006F0020005800750065002000510069006E0020FF09>/Keywords<FEFF004300680069006E00650073006500200043006C006100730073006900630061006C0020004E006F00760065006C>/Producer(dvipdfmx \(20190503\))/CreationDate(D:20191010005746+08'00')>>
Pages: 1650
Retrieving info from pages 1-1650...
Fonts (33):
1 (3 0 R): Type0 'YWKHJQ+GFReishoStd-E-Identity-V' Identity-V (6 0 R)
2 (11 0 R): Type0 'CDEAWM+DFGanShinKeiPro5-W7-Identity-H' Identity-H (13 0 R)
2 (11 0 R): Type0 'LIFMME+TsukuAOldMinPr6N-M-Identity-H' Identity-H (15 0 R)
2 (11 0 R): Type1 'DSHKDS+Rpxmi' (16 0 R)
2 (11 0 R): Type1 'SMBVVG+URWPalladioL-Roma' WinAnsiEncoding (17 0 R)
2 (11 0 R): Type0 'XBAEMR+UDMarugo_SmallPr6N-M-Identity-H' Identity-H (19 0 R)
3 (23 0 R): Type0 'XBAEMR+UDMarugo_SmallPr6N-M-Identity-V' Identity-V (24 0 R)
3 (23 0 R): Type1 'NUOEWA+URWPalladioL-Bold' WinAnsiEncoding (25 0 R)
3 (23 0 R): Type0 'TJDUTR+SeiKaiCB1Pr5-Regular-Identity-V' Identity-V (27 0 R)
3 (23 0 R): Type0 'LIFMME+TsukuAOldMinPr6N-M-Identity-V' Identity-V (28 0 R)
5 (36 0 R): Type1 'EYVGHR+Pxsy' (37 0 R)
7 (45 0 R): Type1 'EIEIVX+gerib10' (46 0 R)
7 (45 0 R): Type0 'YNPAEB+DFGyoShoPro5-W7-Identity-V' Identity-V (48 0 R)
7 (45 0 R): Type0 'LHNNVI+TsukuAOldMinPr6N-B-Identity-V' Identity-V (50 0 R)
7 (45 0 R): Type0 'TRBKPC+SourceHanSerifK-Heavy-Identity-V' Identity-V (52 0 R)
12 (140 0 R): Type0 'XZJDBI+SourceHanSerifK-SemiBold-Identity-V' Identity-V (142 0 R)
17 (179 0 R): Type0 'MMLTWX+ShinseiKaiPr5-CBSK1-Identity-V' Identity-V (181 0 R)
19 (189 0 R): Type0 'OMLLBO+Siliu' Identity-V (191 0 R)
19 (189 0 R): Type0 'NRVFHT+DFRareBookWillowAJP13N-W3-Identity-V' Identity-V (193 0 R)
22 (205 0 R): Type0 'SRFKEL+TsukuAOldMinPr6N-L-Identity-V' Identity-V (207 0 R)
23 (211 0 R): Type0 'HCYDUG+DFYuanW5-AM' Identity-V (213 0 R)
23 (211 0 R): Type0 'IYVDUX+SourceHanSerifK-Medium-Identity-V' Identity-V (215 0 R)
63 (414 0 R): Type0 'YUZWTC+SyotenStd-L-Identity-V' Identity-V (416 0 R)
70 (455 0 R): Type0 'PCNFUH+TenshoStd-M-Identity-V' Identity-V (457 0 R)
70 (455 0 R): Type0 'OHVDRP+IPAmjMincho' Identity-V (459 0 R)
70 (455 0 R): Type0 'CDEAWM+DFGanShinKeiPro5-W7-Identity-V' Identity-V (460 0 R)
105 (619 0 R): Type0 'VFFWAA+FZBWKS--GB1-4-Identity-V' Identity-V (621 0 R)
146 (786 0 R): Type0 'MWCIWS+FZKaiS--GB1-5' Identity-V (788 0 R)
261 (1260 0 R): Type0 'UCCJMJ+IwaSouPro-Md-Identity-V' Identity-V (1262 0 R)
273 (1315 0 R): Type1 'XAJNTG+LASY5' (1316 0 R)
386 (1770 0 R): Type0 'NGWAQX+DFGyoShoPro5-W5-Identity-V' Identity-V (1772 0 R)
1319 (5517 0 R): Type0 'GJMVWR+FZKTS10--GB1-0' Identity-V (5519 0 R)
1649 (6884 0 R): Type0 'TJDUTR+SeiKaiCB1Pr5-Regular-Identity-H' Identity-H (6885 0 R)
Images (3):
170 (885 0 R): [ DCT ] 2796x753 8bpc DevRGB (888 0 R)
171 (894 0 R): [ DCT ] 1777x571 8bpc DevRGB (897 0 R)
1649 (6884 0 R): [ DCT ] 1080x1680 8bpc ICC (6893 0 R)
说明一下,字体的POSTSCRIPT名称,必须是六个大写的英文字母+字体名称,比如:TJDUTR+SeiKaiCB1Pr5 = TJDUTR(6个大写字母)+SeiKaiCB1Pr5(字体名称)
来试试 pdfftonts :
pdffonts "石頭記.糸欄版.第二版.20191010.ver1.6b.口令:passwd.pdf"
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
YWKHJQ+GFReishoStd-E-Identity-V CID Type 0C Identity-V yes yes no 6 0
CDEAWM+DFGanShinKeiPro5-W7-Identity-H CID Type 0C Identity-H yes yes no 13 0
LIFMME+TsukuAOldMinPr6N-M-Identity-H CID Type 0C Identity-H yes yes no 15 0
DSHKDS+Rpxmi Type 1C Builtin yes yes yes 16 0
SMBVVG+URWPalladioL-Roma Type 1C WinAnsi yes yes yes 17 0
XBAEMR+UDMarugo_SmallPr6N-M-Identity-H CID Type 0C Identity-H yes yes no 19 0
XBAEMR+UDMarugo_SmallPr6N-M-Identity-V CID Type 0C Identity-V yes yes no 24 0
NUOEWA+URWPalladioL-Bold Type 1C WinAnsi yes yes yes 25 0
TJDUTR+SeiKaiCB1Pr5-Regular-Identity-V CID Type 0C Identity-V yes yes no 27 0
LIFMME+TsukuAOldMinPr6N-M-Identity-V CID Type 0C Identity-V yes yes no 28 0
EYVGHR+Pxsy Type 1C Builtin yes yes yes 37 0
EIEIVX+gerib10 Type 1C Builtin yes yes yes 46 0
YNPAEB+DFGyoShoPro5-W7-Identity-V CID Type 0C Identity-V yes yes no 48 0
LHNNVI+TsukuAOldMinPr6N-B-Identity-V CID Type 0C Identity-V yes yes no 50 0
TRBKPC+SourceHanSerifK-Heavy-Identity-V CID Type 0C Identity-V yes yes yes 52 0
XZJDBI+SourceHanSerifK-SemiBold-Identity-V CID Type 0C Identity-V yes yes yes 142 0
MMLTWX+ShinseiKaiPr5-CBSK1-Identity-V CID Type 0C Identity-V yes yes no 181 0
OMLLBO+Siliu CID TrueType Identity-V yes yes yes 191 0
NRVFHT+DFRareBookWillowAJP13N-W3-Identity-V CID Type 0C Identity-V yes yes no 193 0
SRFKEL+TsukuAOldMinPr6N-L-Identity-V CID Type 0C Identity-V yes yes no 207 0
HCYDUG+DFYuanW5-AM CID TrueType Identity-V yes yes no 213 0
IYVDUX+SourceHanSerifK-Medium-Identity-V CID Type 0C Identity-V yes yes yes 215 0
YUZWTC+SyotenStd-L-Identity-V CID Type 0C Identity-V yes yes no 416 0
PCNFUH+TenshoStd-M-Identity-V CID Type 0C Identity-V yes yes no 457 0
OHVDRP+IPAmjMincho CID TrueType Identity-V yes yes yes 459 0
CDEAWM+DFGanShinKeiPro5-W7-Identity-V CID Type 0C Identity-V yes yes no 460 0
VFFWAA+FZBWKS--GB1-4-Identity-V CID Type 0C Identity-V yes yes yes 621 0
MWCIWS+FZKaiS--GB1-5 CID TrueType Identity-V yes yes yes 788 0
UCCJMJ+IwaSouPro-Md-Identity-V CID Type 0C Identity-V yes yes no 1262 0
XAJNTG+LASY5 Type 1C Builtin yes yes no 1316 0
NGWAQX+DFGyoShoPro5-W5-Identity-V CID Type 0C Identity-V yes yes no 1772 0
GJMVWR+FZKTS10--GB1-0 CID TrueType Identity-V yes yes yes 5519 0
TJDUTR+SeiKaiCB1Pr5-Regular-Identity-H CID Type 0C Identity-H yes yes no 6885 0
针对英文的PDF:
strings "Print Card | Hard Rock Rewards.pdf" | \
grep FontName | \
awk '{sub("/", "", $5);print $5}'
_____________________________________
HPQRU+Helvetica-Bold
HLWRWB+Helvetica
网友评论