Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed fonts into an EPS file --and what is the exact definition of "embed"?

My company has created GraphPad Prism, a widely used program for scientists to analyze data and make technical graphs. Often scientists will export graphs from GraphPad Prism for submission to scientific journals. The format most journals want these days is EPS, and we export vector-based EPS files. But fonts are an issue.

We offer an option to "embed" fonts into the EPS file. What we mean by this is that text is converted to outlines or glyphs. These EPS files can be opened on other computers that lack the original fonts. But the journal production people can't edit the text, change font size, etc. when they work on these EPS files.

My programmers tell me that the term "embedding fonts" means exactly what we do -- convert to outlines/glyphs.

The people at a company that does page production for many scientific journals use a different definition of "embed". They want text to remain as text in the EPS file, but for the font definitions to be included in the EPS file. That way they don't need the original fonts, but can tweak spelling, font size, and even change fonts while preparing an EPS image for publication.

My programmers tell me that that second definition of "embed" is an Adobe-specific method not available to us.

So my question is this: Where can we find specifications or example code to let us embed fonts into an EPS file using the second definition (leave text as text and also include the TrueType font definitions)?

like image 574
Harvey Motulsky Avatar asked Mar 15 '12 18:03

Harvey Motulsky


People also ask

Do EPS files embed fonts?

Embedding, in terms of EPS files, means to include font information in a file so that its type will display and print correctly if the file is placed into another application.

What does it mean when fonts are embedded?

Font embedding is the inclusion of font files inside an electronic document. Font embedding is controversial because it allows licensed fonts to be freely distributed.

What happens when you embed font?

What happens when embedding fonts? Basically, embedding fonts ensures that all the font information used for your document is stored in the PDF file. So the font is locally available on the print shop's computer for the time that the document is opened.

How do I create an embedded font?

Embed fonts in a document or presentation Open the file you want to embed fonts in. On the application (PowerPoint or Word) menu, select Preferences. In the dialog box, under Output and Sharing, select Save. Under Font Embedding, select Embed fonts in the file.


1 Answers

"My programmers tell me that the term "embedding fonts" means exactly what we do -- convert to outlines/glyphs."

Your programmers are, in my opinion, mistaken. In the print industry embedding fonts means embedding the font data as a font, not a series of vector linework. There are good reasons for maintaining fonts; file size, rendering performance, character hinting, drop-out correction etc.

"My programmers tell me that that second definition of "embed" is an Adobe-specific method not available to us. "

This is definitely not true and hasn't been since about 1990. The PostScript Language Reference Manual describes in some detail how to create fonts of many kinds, the 'black and white book' (I can't remember the name offhand) describes how to create quality type 1 fonts. The various tech notes from Adobe describe how to create fonts with type 2 (CFF) and CIDFonts with outlines of any of the preceding types.

You can also use 'type 42' fonts, which are essentially TrueType outlines. These are not quite the same as TrueType fonts, but they are very similar (the actual glyph descriptions are the same). It seems to me that this is what you want.

You can get an example of TrueType font inclusion by printing a document which uses TrueType fonts to a PostScript printer on FILE: under Windows, but you may find the code hard to follow.

Type 42 fonts are described on p346 of the 3rd edition PLRM, "Section 8.4.2 Type 42 fonts (TrueType)"

More detail is provided in Adobe Tech Note #5012 "The Type 42 Font Format Specification" This document (and many others) is available in PDF format from the Adobe web site.

like image 79
KenS Avatar answered Sep 23 '22 18:09

KenS