From: Alexander on
Hello,

How can I add a system font to matlab? I can see the list of all current fonts using 'listfonts' command. However, I want to be able to use the Myriad Pro font natively in my figures. Currently, I (and everyone in my research group) must export the figures to adobe illustrator and change to this font by hand which takes forever.

So, is there a way to add a given font to the list of system fonts that matlab supports?

I am using version 7.9.0 (R2009b).
Thanks.

for Science,
-Alex
From: Steven Lord on

"Alexander " <a19greyREMOVECAPS(a)gmail.com> wrote in message
news:hnk7va$15h$1(a)fred.mathworks.com...
> Hello,
> How can I add a system font to matlab? I can see the list of all current
> fonts using 'listfonts' command. However, I want to be able to use the
> Myriad Pro font natively in my figures. Currently, I (and everyone in my
> research group) must export the figures to adobe illustrator and change to
> this font by hand which takes forever.
> So, is there a way to add a given font to the list of system fonts that
> matlab supports?

My first step would be to figure out how to add a font to the list of fonts
available to your OS. On Windows I believe there's a specific Fonts
directory; I don't remember off the top of my head how to do so on Linux or
Mac. [You didn't mention whether or not you've already performed this step,
so I thought I should call it out.]

Once you've done that, check to see if Myriad Pro appears in the list of
fonts avaialble to UISETFONT.

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/uisetfont.html

If it doesn't, check if this font is bitmapped -- the reference page for
LISTFONTS indicates that bitmapped fonts can't be used in figures and GUIs.

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/listfonts.html

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ