A free font for coders by Jens Kutílek
Sudo is also hinted for good screen display on Windows.
In 2009 I wasn’t satisfied with the available text editor fonts and decided to draw my own: Sudo. Over the last years I used it as my main font in the Terminal, as well as my text editor font for coding on Mac and Windows. Whenever something bugged me, I refined the design and could instantly evaluate if a change was an improvement.
Download Sudo v0.51-2-gd3870b5 for free. (1.7MB zip file, desktop and web fonts.)
Mac Terminal Sudo Root
Source files are available on GitHub. Sudo is licensed under the SIL Open Font License. For version info, check the font log.
If you are not sure yet, have a look at the glyph proof for Sudo Regular (PDF, 470 kB).
Sudo is monospaced
- Modern solution: sudo -u. To run as another use, use sudo -u. For example, to run a text-editor such as nano: sudo -u someuser nano and enter your Mac admin user password when prompted. At this juncture, it is your Mac admin user who is invoking sudo, not the someuser user so you do not enter the someuser password.
- Your Mac may be configured the same way as mine. That is, I set my regular user account to not be an administrator & I have a totally separate account for the administrator (root). All you need to do is to switch user to your admin account and THEN do sudo visudo (&:wq! To save was good advice).
![Sudo Sudo](/uploads/1/2/6/3/126330817/312776852.png)
Mr-Rabbits-Mac: notadminuser$ su ladmin. This will prompt for the ladmin account's password, once entered you will see a bash command prompt. From here I can run any sudo commands desired, entering ladmin's password as needed. Bash-3.2$ sudo chown user2 /some/folder.
There are many reasons why most programmers still prefer monospaced fonts. All letters have the same width in all weights. Proportional alternates are available for some letters via OpenType layout features.
Sudo is legible
![Sudo Sudo](/uploads/1/2/6/3/126330817/781581943.jpg)
When some letter forms are ambiguous in prosa, we can easily read them because we know the context. But when coding, all characters have to be unmistakably recognizable. It is common to add serifs to an uppercase I or a hook to the lowercase l. I don’t care very much for dotted or slashed zeroes, so I decided to make all numbers one line width smaller than the uppercase letters. They still stand out enough because most code is in lowercase anyway.
From version 0.37, the default zero has a dot by popular demand. You can still wap it with a dotless 0 via OpenType feature ‘zero’ or with the included Python script ‘patch_dotted_zero.py’. The patcher requires an installation of the Python FontTools.
Sudo is space-efficient
The width of all letters is 44% of the font size. This allows you to fit more code in the same space. For example, the character width in other fonts is between 55% (Consolas) and 60% (Courier).
Sudo has been designed on a pixel grid for a font size of 16 pixels, but works well in other sizes as well.
Sudo is unique
This is a first: As far as I know, Sudo is the first and only font to feature what I like to call ‘coder’s quotes’. Some programming languages use the acute and grave accents as a replacement for opening or closing quotes. The standalone accents in Sudo are much bigger than the ones on the accented letters and work well together with the straight and typographic quotes.
Sudo has bugs!
I designed Sudo strictly for my own needs. Completist as I am, I couldn’t resist adding Greek and Cyrillic letters, but a lot of these haven’t left the pixel design stage. For me they don’t have a very high priority, sorry. If you like to work on their design, please send me any additions via GitHub.
Sudo Command For Mac
The Bold weight is far from finished. The basic alphabet is done, but lots of less common characters are still the same as in Regular. The Italic weights are just the upright styles slanted by 11.31° with partial corrections. The Thin masters are extrapolated from Regular and Bold, also with partial corrections. If you fix something, I’d like to get your pull requests.