> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/questions-and-answers/78-my-submission-was-rejected-by-the-journal-because-font-xyz-is-not-embedded-.-what-can-i-do.md).

# My submission was rejected by the journal because "Font XYZ is not embedded". What can I do?

This is most likely caused by the much-dreaded "font-not-embedded" issue with some PDF/EPS graphics in your project, because the application that created them did not embed the fonts in the fonts: See [this link for some background details (especially item no.2)](http://tex.stackexchange.com/a/255097/226).

> Regarding the fonts: Here the culprit most likely are graphics, either in eps or pdf format. If you have a graphic with text which does not also contain the font, the font will be missing in the document as well. You have basically two choices here: a) In whatever tool you are using to create the graphics, look for an option to explicitly contain the fonts into the exported graphics. b) Export the text not as text but as curves. If there is no text, no fonts can be missing (ugly solution).

More information:

* <https://machinelearning1.wordpress.com/2013/03/22/create-eps-file-from-matlab-figures-with-embedded-fonts/>
* <https://sites.google.com/site/xyzliwen/resource/embed_font_ieee_pdf_explore>

The best solution is to ensure that your PDF images were exported from their original applications with the [embed all fonts option](http://www.latex-community.org/forum/viewtopic.php?p=43537\&sid=bb0b021e3acac54742fecbcb91713fed#p43537). For example, if you're generating images with R, you can use the [`embedFonts` method](https://stat.ethz.ch/R-manual/R-devel/library/grDevices/html/embedFonts.html) (also [here](http://zevross.com/blog/2014/07/30/tired-of-using-helvetica-in-your-r-graphics-heres-how-to-use-the-fonts-you-like-2/) and [here](http://r.789695.n4.nabble.com/Automatic-way-to-embed-fonts-into-all-pdf-output-td4666773.html)).

Alternatively, you can get Overleaf to post-process the PDF for you, though this may cause your project to take some longer time to compile. First, add a file called `latexmkrc` (without extensions) to your project, and then paste the following line in that file:

```
$pdflatex = 'pdflatex %O %S; ps2pdf14 -dPDFSETTINGS=/prepress %B.pdf %B-embed.pdf; mv %B-embed.pdf %B.pdf';
```

You may have to make some kind of small change in your `.tex` file to trigger a re-compilation and the post-processing to happen.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/questions-and-answers/78-my-submission-was-rejected-by-the-journal-because-font-xyz-is-not-embedded-.-what-can-i-do.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
