How to use double fonts in MATLAB?

I like the font Source Code Pro very much, but I want to use Chinese comments in my code. Source Code Pro do not support Chinese characters, like the picture down here. I do have some fonts that support Chinese, like Yahei or Monospace. But I prefer Source Code Pro. Do MATLAB have some functions like 'double fonts'? That means when I am having english words, they are shown in Source Code Pro, when I have Chinese, they are shown in Yahei.
1.png
2.png

Answers (1)

Jan
Jan on 29 Nov 2018
No, this is not possible. Matlab requires one font in the command window. Even recognizing "having english words" is not trivial to implement.

1 Comment

In visual studio code, I can choose more than one fonts by setting "fontFamily", it's really sad to recognising that that is not possible in MATLAB...OK I'll just use the English version.

Sign in to comment.

Categories

Asked:

on 29 Nov 2018

Commented:

on 30 Nov 2018

Community Treasure Hunt

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

Start Hunting!