Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

how to embed fonts in raw PostScript

how to embed fonts in raw PostScript

how to embed fonts in raw PostScript


I am looking for a simple example on how to embed a postscript font (a barcode font, for that matter) into a postscript file.  I am working on a program that outputs PS directly - no tools used.  So every postscript statement is generated by our program.  I know fonts are basically dictionaries.  But, given a postscript font file (the raw fontfile itself) I am trying to figure out what to take from that fontfile, and how to code it in postscript.

Anyone any ideas?  I did google this for a couple of days, but  (till now) can't find code examples.  As far as I can see there is no example in the bluebook either (or I missed it).

Anyone that can provide an example, or point my nose to where I can find one?  I would be very grateful.

Cheers & thanks,


RE: how to embed fonts in raw PostScript

Take the .PFB file of your font, and convert it to PFA. You can write a program to do this, or search for utilities (I think GhostScript used to come with a PostScript program to do it).

Then simply include the contents of the entire .PFA file at the top of your PostScript program. Nothing else is required.

PFB is PostScript Font Binary, and PFA is PostScript Font ASCII.

Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting

RE: how to embed fonts in raw PostScript

Hey thanks - gotta try this.



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close