问题描述
我有一个 .pfa字体文件,我想读算法用于呈现的字体。然而,大多数的信息隐藏在二进制中的行:
I have a .pfa font file and I would like to read the "algorithm" for rendering the font. However, most of the information is hidden in binary in the line:
currentfile eexec
743F8413F3636CA85A9FFEFB50B4BB27302A5F6C876586CCC1670A7EF5521E6ADE15AAB4
DD2DDDB83735311FC63DB80D2C96AECFA05BB67F865EA35934B4B79A203A8DD489B09C79
FF6EB9DBCFD889C3E73F8C94BC342AF671D6F688870A62EE1A0DF216E150FFEC64A8C2B7
509AD05C011599C1AD84E6C4B668E07EA219BD72663D8AF4CA8EC8E23AA90DE90BE940C6
6DB849CEDB3B64961365A7CCE47F4FC9E30FDEE4B14B90C2E0D8C344EBC974EABF417B3D
28251A78ACEE2BFC4212B1E3E9C7EBC3262821EE98E538713C64DF0BC13C19337B1307DB
D795D285F959C924FC14AEF7E9D406406CDEE1A35377887A16B13DD51717A86284369FA7
6ABB6A4488B9174A561DA854C33821F3172E4CF956EC9B65F829D69E02BC0EE23044DB1D
9A4D45A14A3998115BEE5DDC582F158DB2E..................
我们如何去code这些信息?
How do we "decode" this information?
推荐答案
除非你真的想编写自己的eexec解密,然后你自己charstring类型的解密,我建议你只需使用t1disasm。如果你是一个Linux发行版上运行,你可能能够找到t1utils它应该包含这一点,或者你可以得到源在许多地方(谷歌是你的朋友)一个包,这里有一个:
Unless you really want to write your own eexec decryption, and then your own charstring decryption, I'd suggest you simply use t1disasm. If you are running on a Linux distribution you may be able to find a package for t1utils which should contain this, or you can get the source in a number of places (Google is your friend), here's one:
<一个href="http://freepcb.google$c$c.com/svn/clibpdf/trunk/util/t1utils-1.9/t1disasm.c">http://freepcb.google$c$c.com/svn/clibpdf/trunk/util/t1utils-1.9/t1disasm.c
如果您在Windows下你oculd看看这里的t1utils包fopr窗口:
If you are on Windows you oculd look here for the t1utils package fopr WIndows :
http://gnuwin32.sourceforge.net/packages/t1utils.htm
这篇关于如何与QUOT;德code&QUOT;字体文件的eexec?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!