Rank: 46955 based on downloads (last 30 days) and 0 files submitted
photo

Stefan

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Stefan View all
Updated File Comments Rating
16 Nov 2009 print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. Author: Oliver Woodford

Today the answer of TMW's support team arrived.
They admit that the font support of the print function is limited to a few fonts only up to now.
See http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/f3-103191.html#f3-96545

It it not sure if or when this will change.

Thank you Oliver anyway!

I now use Matlab for formatting the figure and the page size. Subsequently I print pdfs using an external pdf printer.

10 Nov 2009 print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. Author: Oliver Woodford

Hi Oliver,

thanks for your reply.
I only use ttf fonts at the moment.

I tried your first suggestion, but nothing changed. I now use the options

options = [options '-q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile="' dest '" -sFONTPATH="C:/Windows/Fonts"'];

Obviously gs doesn't know the fonts except for the standard ones.

I also tried to set the path:

c:\> SET GS_LIB=c:\windows\fonts

And I tried to add fonts to gs/fonts/fontmap (using FontMap v1.7), e.g. the line

/Coronet (C:/WINDOWS/FONTS/coronet.ttf) ;

But all I can see in the pdf file is this Courier font.

Any other ideas? Did anyone successfully export other fonts to pdf?

Stefan

06 Nov 2009 print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. Author: Oliver Woodford

Hi,

not each font is exported correctly on my system.

Ex:
plot((0:10),sin(0:10));
set(gca,'FontName','Arial Black');
export_fig('test', '-pdf');

The font is not 'Arial Black' in this example, although beeing correctly displayed in Matlab.

I'm using winXP, Matlab 7.8.0 (R2009a), Ghostscript 8.70, Adobe Reader 9.2.0. I tried some other fonts, only 'Arial' seems to work properly.

Is this behavior reproducible on your systems or is a solution available?

Thanks for your help!
Stefan

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com