Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Embedding fonts when print to EPS?

19 views
Skip to first unread message

Thorsten Ostermann

unread,
Aug 15, 2007, 9:47:22 AM8/15/07
to
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

carmelo

unread,
Feb 26, 2008, 1:53:02 AM2/26/08
to
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 <Ne...@Ostermann-net.de> wrote in
message <5igef8F...@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."

naveen

unread,
Mar 21, 2008, 4:59:02 PM3/21/08
to
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.s...@yahoo.esnospam> wrote in
message <fq0d0e$5sp$1...@fred.mathworks.com>...

Jordan

unread,
Mar 27, 2008, 7:11:02 AM3/27/08
to
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.

Marnix Maas

unread,
Oct 10, 2008, 6:40:21 AM10/10/08
to
"Jordan " <k...@lmm.jussieu.fr.remove.this> wrote in message <fsfvc6$brd$1...@fred.mathworks.com>...

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?

Oliver Woodford

unread,
Nov 7, 2008, 10:27:02 AM11/7/08
to
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

Oliver Woodford

unread,
Dec 1, 2008, 4:12:02 PM12/1/08
to
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.

Mohammad

unread,
Sep 12, 2011, 12:30:33 PM9/12/11
to
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>...

Oliver Woodford

unread,
Dec 8, 2011, 5:37:08 PM12/8/11
to
"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

Guvenc

unread,
Feb 9, 2012, 11:03:10 AM2/9/12
to
"Oliver Woodford" wrote in message <jbre6k$klv$1...@newscl01ah.mathworks.com>...
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.

Rob Campbell

unread,
May 23, 2013, 3:14:19 PM5/23/13
to
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.

Andreas

unread,
Mar 11, 2016, 1:27:08 AM3/11/16
to
Thorsten Ostermann <Ne...@Ostermann-net.de> wrote in message <5igef8F...@mid.dfncis.de>...
Hi,
I have the same problem. My solution is to saveas *.emf. This file-format can be opened with Acrobat Reader. Now you can save it as pdf... The fonts are embed now.

Belal Essam

unread,
May 25, 2017, 3:37:09 AM5/25/17
to
"Guvenc" wrote in message <jh0qnu$7rq$1...@newscl01ah.mathworks.com>...

> 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.

Guvenec, it's a very simple and efficient approach, thanks a lot.

Note: The program is called "InkScape", not Inkspace, it's just a typo :)
0 new messages