Installing fonts on Ubuntu is manual.
On macOs you can just double click, or automate it via
brew cask install cask-fonts brew cask install font-hack-nerd-font
Fonts that ideally look good in monospace and make it easy to distinguish similar characters. (My bugbear here is distinguishing different quotes, e.g.
"“”). There is a website for this ProgrammingFonts.org, where you can see all the ones of note. Your OS ships with some, maybe
Ubuntu Mono or
Inconsolata or such. Or you can level up your designerly OCD by using Nerdfonts.com, which distributes cult developer-friendly fonts with extra glyphs for … weird UI icons and such?
- Source Code Pro in the light variant is my favourite font for coding.
- Office Code Pro is a tweaked version
- Hack is a popular open source option
- Roboto Mono is everywhere thanks to Google backing
- Fira Code has fancy coding ligatures, which is a whole coding hipster thing.