Is there a way to disable or reduce font smoothing / antialiasing in the Matlab Editor?
Compared to the Command Window and e.g. the Editor in R2020a, the Editor in R2021b now renders fonts differently, with an overly smoothed result that I find quite fatiguing at least on my display.
The strength of the effect differs depending on the font (top: Editor, bottom: Command Window).
(The appearance is not perfectly reproduced here due to the inherent lossy image compression on Matlab Answers.)

 채택된 답변

Ashutosh Singh Baghel
Ashutosh Singh Baghel 2021년 11월 15일

0 개 추천

Hi Andres,
To disable the "font smoothing / antialiasing" in the Matlab Editor in Linux, deselect the option "Use antialiasing to smooth desktop fonts" . On Microsoft® Windows® and macOS platforms, MATLAB uses system setting for antialiasing.
For further information, please refer to the following Documentation Page.

댓글 수: 7

Thank you for your answer.
On my Windows 10 machine, (de-)activating ClearType, or "Smooth edges of screen fonts" (in advanced system settings -> Performance (Visual Effects, ...) -> Visual Effects -> Custom), or using "Better ClearType Tuner" only affects the font rendering in the Command window, but not inside the Editor window. The Editor's font rendering always looks slightly different and laterally compressed. But okay, probably I'll have to get used to it.
Hi Andres,
The effects of action you mentioned above only affect the font rendering in the command window. MATLAB needs to be restarted for the effects to be displayed in MATLAB Editor too.
Hi Ashutosh,
thanks for the hint about the restart.
I am using an R2021b Update 2 version, and met with the same problem. The "overly-rendered" font in the Editor window never changed even if I tried to modify the "anti-aliasing" settings and restart everything, while in the Command window the font can be changed instantly.
Especially, I noticed that several fonts displayed as the same "Consolas-like" font, such as Consolas, Lucida Sans, and Monospaced, which basically means that those fonts cannot display as expected.
In my case, finetuning and restart did not fix the blurry rendering in the editor. Using 2021b However the documentation does give a good hint saying "monospaced" (default font) is rendered differently in the editor compared to the command window. Documentation Page.
Changing font to "Courier New" did the trick. Both rendering the same now: sharp text. In a slightly different font
Bryan
Bryan 2024년 1월 29일
편집: Bryan 2024년 1월 29일
Any update on this? I upgraded to 2023b on Linux and the editor window text looks all blurry... The command window looks exactly how I want it though. Both have the same font settings.
I disabled anti-aliasing and restarted, but no luck. I'm getting a headache writing scripts...
I'm using 2023b on Ubuntu 20.04, and this doesn't seem to work. The preferences option disables font smoothing everywhere but the editor. Fonts like "Monospaced" and "Courier 10 Pitch" don't seem to be selected (even after restart)--it just sticks to the previously selected font.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2021년 11월 5일

댓글:

2024년 9월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by