Terminal fonts
Which monospace font to use in your terminal, what separates a good one from a tiring one, and how to set it in Terminal.app, iTerm2, GNOME Terminal, kitty, Ghostty and Lumen.
Good terminal fonts are free, and most of the best ones are a five-minute install. If you want one answer: JetBrains Mono is the safest default for a terminal font. It is open source, easy to read at small sizes, and several terminals (including WezTerm, Ghostty and Lumen) bundle it. If you like a narrower font that fits more columns, try Iosevka. If you want something with more character and don't mind paying, look at Berkeley Mono.
The rest of this guide covers the best font for terminal use by taste, what actually matters when choosing, how ligatures and Nerd Fonts work, and where the font setting lives in each common terminal.
The best terminal fonts
All of these are monospace, cover Latin, Greek and Cyrillic, and have proper bold and italic. Licences were checked against each project's own site.
| Font | By | Licence / price | Ligatures | Nerd Font build |
|---|---|---|---|---|
| JetBrains Mono | JetBrains | Free, SIL OFL | Yes | From Nerd Fonts |
| Fira Code | Nikita Prokopov | Free, SIL OFL | Yes (its main feature) | From Nerd Fonts |
| Cascadia Code | Microsoft | Free, SIL OFL | Yes; Cascadia Mono has none | Official NF variants |
| Iosevka | Belleve Invis | Free, SIL OFL | Yes | From Nerd Fonts |
| Hack | Source Foundry | Free, MIT plus Bitstream Vera licence | No | From Nerd Fonts |
| Source Code Pro | Adobe | Free, SIL OFL | No | From Nerd Fonts |
| Monaspace | GitHub Next | Free, SIL OFL | Opt-in | Official, since 1.2 |
| Commit Mono | Eigil Nikolajsen | Free, SIL OFL | Functional only, opt-in | Not official |
| Berkeley Mono | U.S. Graphics Company | Paid; personal licence from $75 | Depends on licence tier | Not official |
JetBrains Mono
Tall lowercase letters and plain, rectangular shapes make it legible at 12 or 13 points on a laptop screen. It is the font most terminals ship with now, so it's also the font most screenshots and themes are tuned for. A good choice if you don't want to think about fonts again.
Fira Code
Fira Code is Mozilla's Fira Mono with a large set of programming ligatures added. It is a bit rounder and wider than JetBrains Mono. Pick it if you want ligatures and like a softer look.
Cascadia Code
Microsoft's font for Windows Terminal, and it works anywhere. It comes in four flavours: Cascadia Code (ligatures), Cascadia Mono (no ligatures), and PL and NF builds with Powerline or Nerd Font glyphs already included. The NF build saves you a separate patched download.
Iosevka
Narrow and tall, so you fit more columns in a split pane or a small window. You can build your own variant from a config file, choosing the shape of almost every letter. The narrow width takes a day or two to get used to.
Hack and Source Code Pro
Both are dependable, ligature-free fonts. Hack descends from Bitstream Vera and DejaVu Sans Mono, so it feels familiar to anyone who used Linux in the 2000s. Source Code Pro, from Adobe, is lighter and more open. Either is a good pick if ligatures annoy you.
Monaspace
Five families (Neon, Argon, Xenon, Radon and Krypton) with matching metrics, so you can mix them, for instance Radon's handwritten style for italics. Its "texture healing" lets a letter borrow space from a narrow neighbour, which evens out the look of text without breaking the grid. Texture healing and ligatures both depend on the terminal applying the font's calt and stylistic set features.
Commit Mono
A neutral font built to stay out of the way. Its optional "smart kerning" nudges letters toward narrower neighbours, similar in spirit to Monaspace's texture healing. Ligatures are limited to functional ones such as != and are off by default.
Berkeley Mono
The one paid font here. It has a distinctive, slightly retro industrial look and a lot of care in the details. U.S. Graphics sells several licence tiers; at the time of writing a personal-use licence is listed at $75, and commercial use costs more. There is a free trial that doesn't allow commercial use. If you look at a terminal all day, many people find it worth the money; the free fonts above are not a step down in legibility.
What makes a good terminal font
- Distinct confusables.
0andO,1,landI, andrnversusmshould never be in doubt. A slashed or dotted zero helps. - A large x-height. Taller lowercase letters stay readable at small sizes, which matters when you shrink the font to fit two panes side by side.
- Real bold and italic. Shells, editors and
git diffuse them. A font without a true italic forces the terminal to slant the regular face. - Good hinting or rendering at your size. Try it at the size you will actually use, on your screen. Fonts look different on a low-density Linux monitor than on a Retina display.
- Box-drawing and block characters that join. TUIs such as htop and tmux draw borders with them. Some terminals, Lumen included, draw these characters as shapes rather than from the font so they line up without gaps whatever font you choose.
Ligatures in the terminal
Ligatures replace character pairs such as ->, => or != with a single joined glyph. Each character still occupies its own cell, so alignment is kept. Whether they help is taste. Some people find them easier to scan; others find that hiding the real characters causes mistakes.
The terminal has to support them, not just the font. kitty, WezTerm and Ghostty shape text and show ligatures, and let you turn them off (in Ghostty, font-feature = -calt). iTerm2 has a "Use ligatures" checkbox in the profile's Text settings. Alacritty does not render ligatures. Lumen draws programming ligatures (=>, !=, === and other runs of operator characters) whenever the font has them, including the bundled JetBrains Mono. It has no setting to turn them off, so if you dislike ligatures, pick a font without them or use a terminal with a switch.
Nerd Fonts and patched glyphs
Prompts like Starship and Powerlevel10k, file listers like eza, and Neovim file trees use icons stored in the Unicode Private Use Area. Ordinary fonts don't have them. Nerd Fonts patches popular fonts with thousands of extra glyphs: Powerline symbols, Font Awesome, Material Design icons, Devicons, Octicons and more. The patched fonts keep their original licences.
Each patched font comes in three widths:
- Nerd Font: icons can be wider than one cell. Usually the best-looking in a terminal.
- Nerd Font Mono: every icon squeezed into one cell. Pick this if icons overlap the next character.
- Nerd Font Propo: proportional icon widths, meant for UI rather than terminals.
There is also a symbols-only font you can use as a fallback beside an unpatched font, if your terminal supports font fallback. Ghostty and WezTerm include the Nerd Font symbols already, so icons work without installing anything. In terminals without that, including Lumen, install a patched font such as "JetBrainsMono Nerd Font" and select it as your font.
How to set the font in common terminals
- Terminal.app: Settings > Profiles > Text > Font > Change. Set it on the profile you use, then make that profile the default.
- iTerm2: Settings > Profiles > Text > Font. The same panel has the ligature checkbox and a separate font option for non-ASCII text.
- GNOME Terminal: Preferences, choose your profile, tick "Custom font" and pick one.
- kitty:
font_family JetBrains Monoinkitty.conf. - Alacritty: in
alacritty.toml,[font]thennormal = { family = "JetBrains Mono" }. - WezTerm:
config.font = wezterm.font("JetBrains Mono")inwezterm.lua. - Ghostty:
font-family = JetBrains Monoin its config file. Runghostty +list-fontsto see the names it can find.
For more on making the default terminals look better, see how to customise the Mac terminal and Linux terminal customisation.
Setting the terminal font in Lumen
Lumen bundles JetBrains Mono and uses it by default. To change it, set font-family to any installed monospace font in ~/.config/lumen/config.toml. The change applies to open panes when you save; no restart.
font-family = "JetBrainsMono Nerd Font"
font-size = 14
line-height = 1.1
Ctrl+= and Ctrl+- zoom the font, and Ctrl+0 resets it. Every glyph is drawn on the GPU, colour emoji and wide CJK characters included, and box-drawing, block and Powerline characters are drawn as shapes so prompts and TUI borders join cleanly. All the options are in the config reference.
Once the font is right, the next thing most people change is colours: the guide to terminal themes covers that. If you use Neovim, the Neovim terminal guide explains which font features editors expect.
Questions
What is the best font for the terminal?
For most people, JetBrains Mono: it is free, very legible at small sizes and bundled with several terminals. Iosevka suits people who want narrower text, and Berkeley Mono is the popular paid choice.
Do I need a Nerd Font in my terminal?
Only if your prompt, file lister or editor shows icons. Without one you see empty boxes. Ghostty and WezTerm include the icon glyphs already; elsewhere, install a patched Nerd Font and select it.
What is the difference between Nerd Font and Nerd Font Mono?
In the Mono variant every icon is squeezed into a single cell. The plain variant lets icons be wider, which usually looks better but can overlap the next character in some terminals.
Is Berkeley Mono worth paying for?
It's a well-made font with a distinctive look, and many people like it. It isn't more legible than the best free fonts, so try the free trial alongside JetBrains Mono or Iosevka before buying.
Does Lumen support font ligatures?
Yes, for programming ligatures: runs of operator characters such as =>, != and === are drawn together, so the font's ligatures form. JetBrains Mono, which Lumen bundles, has them. There's no setting to turn them off; use a font without ligatures if you prefer plain operators.
Try Lumen
Free and open source, for Linux and macOS. Copy the command for your system and paste it into a terminal.