Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Embedding fonts when print to EPS?

Subject: Embedding fonts when print to EPS?

From: Thorsten Ostermann

Date: 15 Aug, 2007 13:47:22

Message: 1 of 11

Hi!

Is there any way to embedd fonts when printing/exporting matlab figures
to EPS format? Many publishers are asking for EPS files with fonts
embedded. I just had some problems where the characters in legends were
mixed up, because they didn't used the same font than matlab did. The
workaraound was sending in TIFF files, but for the future I would rather
use a vector format...

Regards
--
"Ich vermute in Deutschland hätte Edison für seine Glühbirne erstmal
ein Technologiefolge-Abschätzungsgutachten über verlorene
Arbeitsplätze in der Petroleum-Industrie vorlegen müssen, bevor
ihm die Einführung elektrischer Beleuchtung erlaubt worden wäre."
Rafael Deliano in News:de.sci.electronics zum Thema Innovation in DE

Subject: Embedding fonts when print to EPS?

From: carmelo

Date: 26 Feb, 2008 06:53:02

Message: 2 of 11

Hi,

I am having the same problem now: I need to embed the
fonts when creating the eps file
does anybody know a way to get the fonts embedded?

Thanks!

Thorsten Ostermann <News@Ostermann-net.de> wrote in
message <5igef8F3q03uiU1@mid.dfncis.de>...
> Hi!
>
> Is there any way to embedd fonts when printing/exporting
matlab figures
> to EPS format? Many publishers are asking for EPS files
with fonts
> embedded. I just had some problems where the characters
in legends were
> mixed up, because they didn't used the same font than
matlab did. The
> workaraound was sending in TIFF files, but for the
future I would rather
> use a vector format...
>
> Regards
> --
> "Ich vermute in Deutschland h?tte Edison f?r seine
Gl?hbirne erstmal
> ein Technologiefolge-Absch?tzungsgutachten ?ber verlorene
> Arbeitspl?tze in der Petroleum-Industrie vorlegen
m?ssen, bevor
> ihm die Einf?hrung elektrischer Beleuchtung erlaubt
worden w?re."
> Rafael Deliano in News:de.sci.electronics zum Thema
Innovation in DE

Subject: Embedding fonts when print to EPS?

From: naveen

Date: 21 Mar, 2008 20:59:02

Message: 3 of 11

I am also having same problem. Can you help me if you know
the solution. It is bit urgent
thanks in advance,
naveen
"carmelo " <km.nospam.scriba.nospam@yahoo.esnospam> wrote in
message <fq0d0e$5sp$1@fred.mathworks.com>...
> Hi,
>
> I am having the same problem now: I need to embed the
> fonts when creating the eps file
> does anybody know a way to get the fonts embedded?
>
> Thanks!
>
> Thorsten Ostermann <News@Ostermann-net.de> wrote in
> message <5igef8F3q03uiU1@mid.dfncis.de>...
> > Hi!
> >
> > Is there any way to embedd fonts when printing/exporting
> matlab figures
> > to EPS format? Many publishers are asking for EPS files
> with fonts
> > embedded. I just had some problems where the characters
> in legends were
> > mixed up, because they didn't used the same font than
> matlab did. The
> > workaraound was sending in TIFF files, but for the
> future I would rather
> > use a vector format...
> >
> > Regards
> > --
> > "Ich vermute in Deutschland h?tte Edison f?r seine
> Gl?hbirne erstmal
> > ein Technologiefolge-Absch?tzungsgutachten ?ber verlorene
> > Arbeitspl?tze in der Petroleum-Industrie vorlegen
> m?ssen, bevor
> > ihm die Einf?hrung elektrischer Beleuchtung erlaubt
> worden w?re."
> > Rafael Deliano in News:de.sci.electronics zum Thema
> Innovation in DE
>

Subject: Embedding fonts when print to EPS?

From: Jordan

Date: 27 Mar, 2008 11:11:02

Message: 4 of 11

A solution can be found at:

http://www.cs.dartmouth.edu/~kimo/blog/computer/matlab_figures.html

It is frustrating that the fonts cannot be embedded directly
in Matlab.

Subject: Embedding fonts when print to EPS?

From: Marnix Maas

Date: 10 Oct, 2008 10:40:21

Message: 5 of 11

"Jordan " <ko@lmm.jussieu.fr.remove.this> wrote in message <fsfvc6$brd$1@fred.mathworks.com>...
> A solution can be found at:
>
> http://www.cs.dartmouth.edu/~kimo/blog/computer/matlab_figures.html
>
> It is frustrating that the fonts cannot be embedded directly
> in Matlab.

I fully agree.

I ran into the same problem: I needed to have all the fonts embedded in the PDF of my thesis in order to have it printed. I ended up loading all my graphs into Illustrator, fixing the fonts (Illustrator substituted the wrong ones), and saving them again with the fonts embedded.

As far as I'm concerned, this is a great omission in Matlab. What it basically means is that if you want to have scientific work published, you cannot use Matlab to produce professional-looking graphs, and you lose Matlab's excellent capabilities for scripting their appearance. Of course you can always save your graphs as rasterized images, but then why offer the EPS option in the first place?

The question remains: Why isn't this option available? Legal issues?

Subject: Embedding fonts when print to EPS?

From: Oliver Woodford

Date: 7 Nov, 2008 15:27:02

Message: 6 of 11

I had the same problem generating pdfs for a scientific journal.

I found a way to save figures direct to pdf with embedded fonts from Matlab. I've uploaded the function to the FEX:
http://www.mathworks.com/matlabcentral/fileexchange/22018

This code is based heavily on the SAVEFIG function on the FEX, but adds the embedding of fonts as subsets. You need to have Ghostscript installed for it to work.

I added other functionality that is also important for publishing figures in scientific journals:
   - borders are cropped
   - vector graphics are accurately reproduced
   - bitmap graphics are compressed using high quality jpeg

Subject: Embedding fonts when print to EPS?

From: Oliver Woodford

Date: 1 Dec, 2008 21:12:02

Message: 7 of 11

I've added a function to generate eps files with embedded fonts to the file exchange:
http://www.mathworks.com/matlabcentral/fileexchange/22267

It builds on print_pdf, using pdftops as suggested elsewhere on this newsgroup to convert from pdf to eps.

Subject: Embedding fonts when print to EPS?

From: Mohammad

Date: 12 Sep, 2011 16:30:33

Message: 8 of 11

Could you please upload the solution in other link, because current link does not work,
Thanks

"Oliver Woodford" wrote in message <gf1mo6$mo6$1@fred.mathworks.com>...
> I had the same problem generating pdfs for a scientific journal.
>
> I found a way to save figures direct to pdf with embedded fonts from Matlab. I've uploaded the function to the FEX:
> http://www.mathworks.com/matlabcentral/fileexchange/22018
>
> This code is based heavily on the SAVEFIG function on the FEX, but adds the embedding of fonts as subsets. You need to have Ghostscript installed for it to work.
>
> I added other functionality that is also important for publishing figures in scientific journals:
> - borders are cropped
> - vector graphics are accurately reproduced
> - bitmap graphics are compressed using high quality jpeg

Subject: Embedding fonts when print to EPS?

From: Oliver Woodford

Date: 8 Dec, 2011 22:37:08

Message: 9 of 11

"Mohammad" wrote:
> Could you please upload the solution in other link, because current link does not work,
> Thanks

The two functions mentioned earlier have been superseded by the function export_fig, which can be found here:
http://www.mathworks.com/matlabcentral/fileexchange/23629

Subject: Embedding fonts when print to EPS?

From: Guvenc

Date: 9 Feb, 2012 16:03:10

Message: 10 of 11

"Oliver Woodford" wrote in message <jbre6k$klv$1@newscl01ah.mathworks.com>...
> "Mohammad" wrote:
> > Could you please upload the solution in other link, because current link does not work,
> > Thanks
>
> The two functions mentioned earlier have been superseded by the function export_fig, which can be found here:
> http://www.mathworks.com/matlabcentral/fileexchange/23629


Hi, although this post is quite old, I'd like to share my solution for those who do not have Adobe Illustrator. First, save your Matlab figure as eps. I used an open source drawing softare InkSpace. Import eps to Inkspace. Then extensions>images>embed all images. Then export your figure as eps. It passes the publisher tests.

Subject: Embedding fonts when print to EPS?

From: Rob Campbell

Date: 23 May, 2013 19:14:19

Message: 11 of 11

This silliness with the non-embedded fonts and the weird EPS format is still a problem with MATLAB when it comes to submitting figures to journals.

I confirm that the Inksape solution works, but I didn't have to do the stuff with the Extensions menu. I simply opened the EPS file in Inkscape (making sure that the embed images check-box was ticked) and then selected File > Save As to replace the EPS file. This is an easy "fix" and the journals can cope with the resulting file.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us