How to embed a true font in a postscript file

I have a cross-platform application, and for my versions of Linux and Mac it creates a postscript file to print reports and then prints them using CUPS. It works for simple characters and images, but I would like to be able to embed a true font font directly into a postscript file. Does anyone know how to do this ?? I can also encode simple ascii characters, but I'm not sure how to encode any characters outside of normal az 0-9, such as foreign characters with accents.

+6
types fonts postscript cups
source share
2 answers

To embed a TrueType font in a Postscript document, you first need to convert it to a Type 42 font. This conversion turns the font into a postscript. There are several small utilities for this conversion, or you can read the type 42 specification and write your own code for it.

Embedding Type 1 fonts are much simpler. Linux comes with a large selection of Type 1 fonts, as well as OS X if you have X11 installed. Creating a PDF instead is also an option that you might want to explore, since PDF can directly embed TrueType fonts.

+8
source share

Postscript fonts come with widely varying encodings, so if you want to securely print iso-8859-1 characters, you need to rewrite the font in your postscript program.

PostScript Frequently Asked Questions - How to Print Accented Characters

+4
source share

All Articles