[Tex/LaTex] Helvetica-font-not-embedded

embeddingfontsMATLABpdf

enter image description hereI am writing a book using times font. It has MATLAB codes. I have used the listing package for generating matlab code in latex.
For the remaining text I am using times package.
But while trying to publish the book I am getting the error helvetica package not embedded. I do not want to use helvetica font as the publisher has a problem with that font. Can someone explain what is font embedding and how can I remove the Helvetica font.

Best Answer

The problem may not be the Matlab code listings, but the figures from Matlab (and exported in EPS format) that you may be included in your document. When Matlab generate the EPS file, it does not embed the font used for the text labels of the graph (title, ticks, legend,...) In theory, you can instruct to Latexpdf, or latex+dvips+ps2pdf, to embed all fonts, but my experience is that the fonts used in included graphs usually are not embedded.

The best option is embedding the fonts in each figure, as is pointed here:

ps2pdf13 -dPDFSETTINGS=/prepress fig_non_embedded.pdf fig_embedded.pdf

If the document cannot be generated again, this response can help to fix the entire document: