What font do you use for coding? Clearly the best typeface for coding is Curlz MT, but are there any others? I'm looking for readability and easy 1, l and 0, O distinction.

댓글 수: 7

Lovecraft Cursive
Chad Greene
Chad Greene 2015년 3월 27일
Hahaha! Gives ol' Curlz a run for its money.
John D'Errico
John D'Errico 2015년 3월 27일
A font of wisdom, hoping that it helps.
Chad Greene
Chad Greene 2015년 3월 27일
This gives me an idea: Commented text automatically changes color; why not let the comment font automatically switch to something more compact and easy to read?
Simon Tupin
Simon Tupin 2020년 11월 15일
Yes, would love to use Victor Mono and get cursive italics in the comments!
https://rubjo.github.io/victor-mono/
James Li
James Li 2021년 12월 31일
Just realized Curlz MT was a joke. Kudos
Jiannan Zhang
Jiannan Zhang 2022년 10월 31일
Curlz MT is really the best, try it out

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

답변 (9개)

Star Strider
Star Strider 2015년 3월 27일

10 개 추천

I use Consolas (Windows) for Editor and Command Window fonts. It’s a fixed-width sans-serif font with a slant-through zero and easily recognisable letters and symbols. I don’t have Curlz MT on this machine, so I can’t compare them.
Trong Nguyen Van
Trong Nguyen Van 2016년 10월 4일

4 개 추천

I'm using Consolas with size 11. Because, i get used to coding with this font on Visual or CodeBlocks. My matlab doesn't support Curlz MT.
Jan
Jan 2020년 8월 13일

2 개 추천

Andale Mono and Bitstream Vera Sans Mono.

댓글 수: 6

Les Beckham
Les Beckham 2020년 8월 14일
+1 for Bitstream Vera Sans Mono. I've been using that for a long time. Haven't seen Andale Mono. Might have to give it a look.
Les Beckham
Les Beckham 2020년 8월 14일
Just wondering. Why do you mention two different preferences? Why not just stick with one?
Jan
Jan 2020년 8월 16일
@Lex Beckham: On screens with a low resolution, I need a smaller font to keep the same number of lines in the window. Then I prefer Andale Mono. With a higher resolution Bitstream is my favourite.
Tong Zhao
Tong Zhao 2022년 2월 1일
These fonts don't seem to be in the default list, they need a custom installation right?
Johann
Johann 2023년 2월 9일
Yes! How can yo set this fonts in Matlab?
Jan
Jan 2023년 2월 9일
Install the fonts onyour computer. Under Windows there are 2 options: Install for the current user or for all users with admin privilegs. Matlab does not recognize fonts installed for the current user only, so choose option 2.

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

Jaber Gharib
Jaber Gharib 2018년 5월 8일

1 개 추천

The best ids Consolas I suppose
Carey Smith
Carey Smith 2020년 8월 13일

1 개 추천

I prefer Lucida Console: You can tell the differences between 1l & I, and 0 and O.
Plus it's mon-spaced, so code indentation lines up and number arrays line up.
John D'Errico
John D'Errico 2020년 8월 13일
편집: John D'Errico 2020년 8월 16일

1 개 추천

Personally, I like a font that puts a slash of some sort through the zeros. Without that, the zero and uppercase O seem too close to me, too easy to mistake. You also need fonts with a serif, as that really helps to distinguish betweel a lower case l, the number 1, and an upper case I, even lower case i.
Monaco is my choice. And monospaced is really important for coding. Never program in a proportionally spaced font.

댓글 수: 3

Les Beckham
Les Beckham 2020년 8월 14일
I was going to disagree about the need for a serif font as I prefer Bitstream Vera Sans Mono. Looking at it more carefully convinces me that this is not really a sans serif font. It just uses them where they are really needed for character differentiation, rather than for 'decoration'. Actually it has a lot more serifs than I would expect (for example the lower case i). It is easy to read though. It does have good differentiation betweeen O and 0 (a dot in the middle of the zero).
Of course monospace is essential.
John D'Errico
John D'Errico 2020년 8월 16일
I went back, and after a fair amount of play with every choice of font I had, I find my preference to be strongly just plain old Monaco. Monospaced. Nice distinction between the letters and numbers in question.
DGM
DGM 2022년 11월 2일
I have a fond place in my heart for a crispy 9pt bitmapped Monaco; that said, there are a number of fonts called Monaco that visually have nothing to do with that or each other. I just use whatever the "Monospaced" alias points to (seems to be DejaVu Sans Mono 10). I might like a dot or crossbar on 0, but I'll survive.

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

IronDay
IronDay 2020년 10월 24일

1 개 추천

Fonts: Seorgio UI Plain
size: 12
银雀Sparr0w
银雀Sparr0w 2023년 5월 15일

0 개 추천

Inconsolata is great

카테고리

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

질문:

2015년 3월 27일

답변:

2023년 5월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by