# How do I avoid Type3 fonts when submitting to ManuscriptCentral

I am trying to submit a publication to ManuscriptCentral. All I am allowed to do is to submit my tex file and any missing packages (it seems to have a fair selection of standard packages) and it will go away and compile it. I think it uses latex and then dvipdf to create PDF files - here is an extract from the log file that I can download from the server:

command: latex -interaction=batchmode diff.tex
Command Ok
This is TeX, Version 3.14159 (Web2C 7.4.5)

command: dvipdf diff.dvi
Command Ok
dvips: warning: no config file for generic'


In other words, I can't really change how latex is invoked and what fonts are installed on the target system. The servers seems to choke on my tex file with a not too specific error message:

We are sorry, but there is a problem with your submitted file(s) named
x.tex.pdf. Our system cannot process this file. The most common reason for
this is badly embedded fonts or Type 3 fonts (which we do not support at the
moment). If possible, please change the font settings and/or re-distil this
PDF to a lower Adobe Acrobat version and try again.


The following additional help (available under 'Read more ...') makes me think it must be about the fonts in the tex file:

A Type 3 font error is due to bit mapped fonts in your document or missing
fonts used within the document. Bitmapped fonts display poorly on screen in PDF
files and sometimes cause printing problems. We recommend for Word Documents
that you embed your fonts and re-upload the file(s), or for PDF's save them
using Acrobat 6 (or lower).


So here is my question: What can I do in the tex file so that it chooses fonts that are in all likelihood present on the server and not of the Type 3 flavour?

EDIT: Some more sleuthing prompted by egreg reveals the following: when I run pdffonts on the PDF file that the publisher creates from my tex files I get:

Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Invalid XRef entry
Error: Top-level pages object is wrong type (null)


Oddly, when I compile them myself, pdffonts lists some fonts all of which are Type 1, CID TrueType, TrueType, or Type 1C. When I open the publisher PDF file with Adobe Reader and look at the Fonts I see two Type 3 fonts. How come ScholarShip manages to sneak them in and I don't?

Additional info: Some of the figures that are being included fail the Rapid Inspector for image files "fail due to fonts that are not embedded". Is that a hint?

-
It's very difficult to answer without seeing something more. Can you run your PDF file through something like pdffonts? Or show the list of fonts that Adobe Reader produces? – egreg Oct 17 '12 at 9:41
@egreg Thanks for the hint - the post has been edited to give more info – DrSAR Oct 18 '12 at 4:54
What fonts do you use? Maybe you have cm-super installed and use it, while the server doesn't have it and uses normal cm? Have you tried using lmodern? – Juri Robl Oct 18 '12 at 5:33
It's quite a strange way to proceed. I send to my publisher the simple PDF file and he passes it to the printer's shop as is. – egreg Oct 18 '12 at 8:28
We don't choose to proceed that way. If you are interested in publishing a paper with journal X you have little say on how the submission should work technically. In most cases, LaTeX is a fringe concern to them. Why they don't accept PDF is beyond me. – DrSAR Oct 18 '12 at 8:36

This is not the precise answer to the original question but it explains how I got LaTeX manuscript submitted to manuscriptcentral when there are complains about Type3 fonts:

Some of the embedded figures were exported eps from matlab. It seemed that matlab is not able to handle font embedding correctly. However, once I imported them into inkscape and converted the svg to eps I was able to have eps figures that were accepted by Rapid Inspector and that also allowed the compilation on manuscriptcentral to proceed.

EDIT: For any of this to work it is obviously crucial to export vector formats from matlab (neither png nor tiff, which are raster image formats, will be of any use in inkscape). A general solution for exporting is described by matlab directly: http://se.mathworks.com/matlabcentral/fileexchange/23629-export-fig . Note that some people find the following customization of that procedure useful: http://stackoverflow.com/questions/14446960/exporting-eps-from-matlab .

-
Could you tell how exactly did you export matlab figures to Inkscape? Convertation using png or tif seems to be bad in quality. – sas Mar 12 '15 at 15:55
@sas see the edit in my answer (and upvote if you find it helpful). The key is to create vector formats (eps or pdf) and not bitmap formats (like jpg, tiff or png). – DrSAR Mar 13 '15 at 18:54

I had the same problem. I replaced a \mathbbm{1} command I had with \mathds{1}` and the issue has been resolved: no Type 3 Font Error in Manuscript Central.

-