How can I add a new font to the list of available fonts in MATLAB?q

303 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2012 年 1 月 12 日
回答済み: Kristian Jandric 2019 年 10 月 8 日
I would like to add a new font to the list of available fonts in MATLAB.

採用された回答

MathWorks Support Team
MathWorks Support Team 2016 年 6 月 7 日
This change has been incorporated into the documentation in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any additional information:
Desktop components (such as the Command Window and Workspace browser), figure windows, and uicontrols support only TrueType and OpenType fonts.
However, some graphics objects such as XLABEL, YLABEL, TITLE, and TEXT can render bit-mapped fonts as well.
Windows:
To make a new compatible font available to MATLAB, install the font in Windows by opening the folder Start->Control Panel->Fonts and selecting File->Install New Font. Then restart MATLAB and the font will be available for use.
Linux:
If fonts are not available to X11, they cannot be used to plot the figure in MATLAB. To see a list of fonts available, type the following at the linux system prompt:
 
xlsfonts
 
If only a basic set of fonts is available, then it is likely that you will not be able to render the text you desire in your figure. To add fonts to X11, use the following command:
 
xset +fp <path_to_fonts_directory>

その他の回答 (1 件)

Kristian Jandric
Kristian Jandric 2019 年 10 月 8 日
If you have multiple user accounts on your PC and install a font, it will only install that font for that specific user. Matlab checks for fonts in the C:\WINDOWS\FONTS directory, which is why installing the font for one user only doesn't update the list of fonts available. Make sure to install the font for all users (by rightclicking and selecting "Install for all users"). At least this worked for me.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by