필터 지우기
필터 지우기

The same font in Editor looks different in Command window. Why?

조회 수: 43 (최근 30일)
jk_cau
jk_cau 2023년 6월 5일
댓글: Bryan 2024년 1월 29일
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.
  댓글 수: 5
Yanhao Wei
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
Bryan
Bryan 2024년 1월 29일
Yes, I recently upgraded to 2023b on Linux... Headache inducing editor window.
I have gone back to 2020a with Liberation Mono. Perfect.
Good to know that I can at least upgrade to 2021a without this issue.

댓글을 달려면 로그인하십시오.

답변 (1개)

Nitya Patel
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":
  1. Go to Home > Preferences > Fonts
  2. Change the Desktop Code Font to "Courier New".
  3. 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.
  댓글 수: 1
Radek Zakrzewski
Radek Zakrzewski 2023년 12월 12일
Thank you Nitya! The bold version of Monsopaced in the editor window looked incredibly crude, like transported straight from the late 1990s. The CourierNew substitution fixes it very nicely.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Desktop에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by