ライブエディターで、フォントを変更できますか?

19 views (last 30 days)
MathWorks Support Team
MathWorks Support Team on 13 Jun 2022
[基本設定] の MATLAB - フォント からエディタなどのフォントを指定することができますが、ライブエディターでは反映されていないようです。
ライブエディタ―上でのフォントを変更する方法を教えてください。
 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 13 Jun 2022
R2021a 以降のリリースでは、以下のようにプログミングよってライブエディタのコードフォントを変更できます。
例:
% 設定ツリーのルートを取得
s = settings;
% 現在のセッションのライブエディタのフォントを変更
s.matlab.fonts.editor.code.Name.TemporaryValue = 'MS UI Gothic'; % コードフォント
s.matlab.fonts.editor.normal.Name.TemporaryValue = 'MS UI Gothic'; % 標準フォント
s.matlab.fonts.editor.heading1.Name.TemporaryValue = 'MS UI Gothic'; % 見出し1 フォント
詳細については、以下のドキュメントページを参照してください。
・matlab.fonts 設定
・設定へのアクセスと変更

More Answers (0)

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!