I need to read PFB files and extract Glyph information from it. I am unable to find the specification for the specific file. I have the Adobe Type1 font specification. But the PFB file is in binary format and i am unable to decode glyph information from it.
I have searched internet for the specification. But all i find is type 1 specification or glyph information. But i need instruction for how to retrieve the glyph information from PFB file.
Thanks in advance.
On Linux/Unix you can find the
pfb2pfautility. This tool converts .pfb files to its ASCII representation (with .pfa suffix). Simply run:You can also use Ghostscript to convert PFB font files to their PFA form.
First, save this content to a file and name it
pfb2pfa.ps:Then, for Ghostscript on Windows run this command to convert
fontname.pfb:For Ghostscript on Linux, Unix or Mac run this modified command:
PFA fontfiles are readable PostScript code and my help you to achieve what you want…
If you are unlucky, they may contain a large section of
eexec-encoded PostScript. This one you need to decode as well for the fully readable PostScript code….