The same font in Editor looks different in Command window. Why?
28 次查看(过去 30 天)
显示 更早的评论
Below is a screenshot of my editor and command window. Both are "Monospaced", but look completely different.
The one in Editor looks much simpler, while the one in CW looks more original and elegant.
As a big fan of the original monospaced fonts, I wonder if I can have the Monospaced in Editor look like the ones in Command window.
I am using MATLAB 2023a in Windows machine. But, this discrepancy has been for a long time as far as I remember.

My font settings are as shown below. They both are set for "Monospaced".

Thanks in advance.
4 个评论
Yanhao Wei
2023-8-11
Same problem in Linux. For most fonts, the editor and command window look very different. I cannot believe this problem hasn't been resolved since 2021b. Many people in linux I know are still using 2021a due to the sluggish editor in latter versions.
max
回答(1 个)
Nitya Patel
2023-6-7
It is my understanding that you want a typical monospace font in both the editor and the command window; however, the same settings for both result in different looking font. One reason why this might be occurring is that MATLAB is finding different fonts from the Monospace family for the editor and the command window.
One workaround for this could be to use a specific custom font for the Desktop Code Font. One example of such font is "Courier" (or one of its variant, Windows machines have "Courier New"). This would result in the Command Window and Editor show the same font.
Below are the steps change the font to "Courier New":
- Go to Home > Preferences > Fonts
- Change the Desktop Code Font to "Courier New".
- Click Apply and OK.
Note that both editor and command window use the Desktop Code Font. Desktop Text Font is used in the Current Folder, Workspace, Variables and Function Browser.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!