Embedding all fonts in Ubuntu

It took me a while to finally manage to embed all fonts for pdf using Linux commands alone. Most conferences and journals require all fonts to be embedded for manuscript preparation. By default, pdflatex in Ubuntu suppose to embed all fonts. One can also change the setting using updmap. But the problem comes from the eps figures. I tried epstopdf and a2ping but both of them somehow don’t work for my figures. I finally get success with ps2pdf14 as follows

ps2pdf14 -dPDFSETTINGS=/prepress fig.eps

However, the figure generated was not cropped correctly. Luckily, we can run

pdfcrop fig.pdf

The final figure file (fig-crop.pdf) should have all fonts embedded. One can check it with

pdffonts fig-crop.pdf

In my case, I got

name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
KBSFAN+Helvetica                     Type 1C           yes yes no       8  0

Leave a Reply

Your email address will not be published. Required fields are marked *