问题
I've peered into several references that very exhaustively or minimally (it's hard to tell) convey instructions on how to program a .pfa font type (purportedly obsolete since 2005) t1utils has a t1disasm.c programming disassembly tool written in C that is made for decoding postscript and related packaged font program and charstring dictionaries. Would anyone like to break this down, specifically, in terms of the components that do not remain constant?
回答1:
You might find some components of the open source Adobe Font Development Kit for OpenType (AFDKO) useful, specifically tx
and detype1
, the latter can decode a .pfa (or .pfb) into something a bit more human-readable.
回答2:
A .pfa file is an Adobe Type 1 font file encoded as ascii (Printer Font ASCII) as opposed to binary *.pfb). You can find the Adobe type 1 font format specification here
Part of the content of such a file is written in the PostScript programming language, though generally not the portion likely to be of interest to you.
Broadly speaking, none of the content remains constant though there are some predefined constant procedures. As djangodude said, if you explained what your goal is it would be easier to help.
回答3:
So, I sorted this one out with the least amount of hassle necessary. Anyone interested in Type1 fonts and their postscript innerworkings you should
1.) go to this site and download the relevant t1utils executables: https://stuff.mit.edu/afs/athena/software/cygwin/cygwin_v1.3.2/bin/
2.) drop them into the t1utils-master folder mentioned above along with your favorite font face types
3.) and run the respective compiled .exe
来源:https://stackoverflow.com/questions/59814173/breaking-down-type-1-pfa-font-file-format-using-t1dsasm-in-c-programming