Determine fonts used in postscript (.ps) file

Posted by Bernard Vander Beken on Stack Overflow See other posts from Stack Overflow or by Bernard Vander Beken
Published on 2010-04-21T09:04:41Z Indexed on 2010/04/26 1:13 UTC
Read the original article Hit count: 449

Filed under:
|

Given a postscript file that has the following header

%!PS-Adobe-3.0

I would like to list all fonts used in the file. The output does not have to be perfect, but I need to make sure I get all references to any font being used. I am aware there are different types of fonts, and that a font may or may not be embedded in the postscript file.

My current best idea is to grep/search for the word Font case insensitively and go from there.

  • Will this get me all the font references?
  • Any better way to achieve this?

I tend to use .NET/C# for development purposes, but any solution is appreciated.

Thanks,

Bernard

© Stack Overflow or respective owner

Related posts about postscript

Related posts about font