Writing code often requires finding a font that looks comfortable, at least to the satisfaction of:
- Letters and numbers are easy to distinguish, such as: 0 and O, 1 and L, ' and ' (two single and double quotes)
- Font equal width, keep aligned
- Pretty
- Free
After testing, the following font is recommended
Adobe Source Code Pro Home: http://adobe-fonts.github.io/source-code-pro/
:
Installation method:
Mac OS Double-click the downloaded font file, click the "Install Font" button below the font preview to choose "Go" > "Apps" > "Font Book" in the Finder to see
Windows Double-click the downloaded font file and select Install after opening
Linux downloads fonts, extracts them, and then copies them to the/usr/share/fonts/opentype directory (requires administrator privileges) before executing: $ sudo fc-cache-f-V is ready to use the new font.
: https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.ziphttps://github.com/adobe-fonts/ Source-code-pro/archive/2.030r-ro/1.050r-it.tar.gz
https://my.oschina.net/tonglei0429/blog/825703
Recommend a programmer-friendly font (attached to each platform installation method)