How to use double fonts in MATLAB?
Show older comments
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.


Answers (1)
Jan
on 29 Nov 2018
0 votes
No, this is not possible. Matlab requires one font in the command window. Even recognizing "having english words" is not trivial to implement.
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!