Default Fonts
WezTerm bundles high-quality fonts by default:- JetBrains Mono - Primary monospace font
- Nerd Font Symbols - Icon and symbol support
- Noto Color Emoji - Full emoji support
Basic Font Configuration
Setting Font Family
Usewezterm.font() to specify a font:
Font Size
Set the font size in points:The default font size is 12.0 points. Fractional sizes like 13.3 allow fine-tuning.
Font Fallback
WezTerm automatically falls back to other fonts when glyphs are missing:How Fallback Works
1
Primary Font
WezTerm checks the first font in the list.
2
Fallback Chain
If the glyph isn’t found, it proceeds to the next font.
3
Built-in Fallbacks
WezTerm’s default fallbacks (Nerd Font Symbols, Noto Color Emoji) are automatically appended.
4
System Fallbacks
If still not found, system-wide fallback fonts are checked.
5
Last Resort
A placeholder glyph is rendered if no font contains the character.
Font Weight and Style
Available Weights
Font Styles
- Italic
- Oblique
- Normal
Font Stretch
Advanced Font Rules
Customize fonts for different text styles:Font Metrics and Spacing
Line Height
Adjust spacing between lines:Cell Width
Adjust character width:Underline Customization
Cursor Thickness
These options accept pixel values (e.g.,
'2px') or percentage values (e.g., '200%').Font Loading and Discovery
Custom Font Directories
Add additional directories to search for fonts:Font Locator
Choose how WezTerm finds fonts:- ConfigDirsOnly
- FontConfig (Linux)
- CoreText (macOS)