Distiller & Embedding Fonts
The problem discussed here the Adobe Distiller failure "font blabla can not be embedded due to licensing restrictions". This problem mostly occurs when an exact copy of the output from the program is really needed, and EPS is used as an inbetween format. We present a few workarounds, depending on what the file is actually being used for.
Technically, the problem is caused by fonts that have their
"restricted licence embedding" bit turned on.
This causes Acrobat Distiller to refuse to generate any documents with this font.
You typically end up with messages from distiller like
<some font> cannot be embedded due to licensing restrictions.
Font vendor (...) does not permit this font to be embedded in PDF.
Error: invalidfont; OffendingCommand: show
The tips from Adobe
for this problem are often not very useful: exporting as PDF from the source gives very low quality
and rasterized images, and changing Distiller job options won't help either.
Here we go for the workarounds.
In many cases, "copy as PICT" or a similar vector-based format will pick another, non restricted font. And still being vector based, results of such a copy are still quite accurate. However, going to these other formats usually causes slight changes, such as incorrect line widths. In some cases, such as highly detailed graphs, the resulting picture becomes very low quality, and EPS may remain the only option.
This is the only really useful tip on adobe website, and the most straightforward solution. It is usually not that hard, just a lot of work, to find all positions (e.g., in the Mathematica source file) where you include the offending fonts in your output. Select all these characters one by one and select another font containing the same looking character (typically the Symbol font) using the Format/Font menu and sometimes picking the right character from the other font.
This works OK almost always. Print the relevant parts to a postscript file and edit them with Adobe Illustrator. It takes a lot of work but it is the way to go for anything that has to be made public and needs high quality.
If finding all places takes too long, a quick hack is to just generate the EPS file,
but before using the EPS in another document first hack it as follows:
Open the ESP file in a standard text editor (vi, BBedit, whatever).
Replace all occurences of offending fonts (e.g. "Math1Mono" when Mathematica is involved)
with "Symbol" or another non-restricted font that has the same symbols at the same place.
Type | Name | Description |
ULONG (4 bytes) | tag | 4-byte identifier |
ULONG | Checksum | Checksum for the table pointed at |
ULONG | offset | Offset from beginning of TrueType font file |
ULONG | length | Length of table pointed at |
Type | Name | Description |
USHORT (2 bytes) | version | 0x0001 |
SHORT (2 bytes) | xAvgCharWidth | |
USHORT | usWeightClass | |
USHORT | usWidthClass | |
SHORT | fsType | |
...much more... | ... |
fsType value | Description |
0 | No restrictions on font usage |
2 | No embedding, copying or modification allowed |
4 | Font embedding allowed in preview and printing |
8 | Documents using this font are allowed to be edited |
Thanks to Andrew and this program I was quickly put on the track to the last trick. The previous tricks were the result of many hours of trying many combinations of export options from Mathematica, Adobe Illustrator, Distiller job settings, Word export options, etc. I hope that others can save valuable time using these tricks.