printeps
by Jose Aumentado
21 Apr 2005
(Updated 22 Apr 2005)
This works around MATLABs tendency to call all fonts 'Helvetica' in .eps files.
|
Watch this File
|
| File Information |
| Description |
When you export a figure to .eps in MATLAB, it will only use a small number of allowed fonts, even if the user has changed these fonts to something specific to their system. In most cases, you'll end up with 'Helvetica' specified in the resulting eps file. That is, if you import this file into Illustrator and have no font exactly called 'Helvetica' then you will end up substituting something else for it, often times doing bizarre things to your kerning, etc. like moving your subscripts to Siberia.
This script writes the .eps as usual, but figures out what font you actually used in the figure and does a find and replace to place your font (presumably actually resident on your system) back into the file. Currently this does not discriminate between the axis font and other text fonts in the figure (i.e., the title and added text), so everything gets changed to the axis font.
This is just a workaround until Mathworks decides their .eps exporting is problematic. |
| MATLAB release |
MATLAB 7 (R14)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (12) |
| 18 Jan 2006 |
Hannah S
|
|
|
| 09 Jul 2007 |
Maxim Ts
|
|
|
| 10 Jan 2008 |
L Matthews
|
|
|
| 02 Feb 2008 |
Dario Redaelli
|
|
|
| 29 Jun 2008 |
Ken Campbell
|
|
|
| 25 Sep 2008 |
J W
|
|
|
| 23 Apr 2009 |
Ted S
|
|
|
| 04 Oct 2010 |
Andrey Kan
|
|
|
| 15 Apr 2011 |
Nick Gravish
|
|
|
| 22 May 2011 |
Céldor
|
|
|
| 03 Jun 2011 |
Terrance Nearey
|
|
|
| 30 Apr 2012 |
Alexandra
|
|
|
|
Contact us at files@mathworks.com