ls-fonts command provides detailed information about fonts available to WezTerm and explains which fonts are used to render specific text.
Synopsis
Description
This command is a powerful diagnostic tool for understanding font selection and rendering in WezTerm. It can list all available system fonts, explain which fonts are used for specific text, and show how glyphs are rasterized.Options
List all fonts available to the system.This will enumerate all fonts that WezTerm can potentially use, showing their family names, styles, and locations.Example:
Explain which fonts are used to render the supplied text string.WezTerm will analyze the text and show which font(s) are selected for each character or glyph, including fallback fonts for characters not available in the primary font.Example:Conflicts with:
--list-system, --codepointsExplain which fonts are used to render the specified unicode code point sequence.Code points should be specified as comma-separated hex values.Example:Conflicts with:
--list-systemShow rasterized glyphs for the text in
--text or --codepoints using ASCII blocks.This renders a visual representation of how each glyph looks when rasterized, which is helpful for debugging font rendering issues.Requires: --text optionExample:Examples
List all available system fonts
Check which fonts are used for English text
Check which fonts are used for mixed scripts
- The primary font for ASCII characters
- Fallback fonts for Chinese characters
- Fallback fonts for emoji
Inspect specific Unicode codepoints
Visualize glyph rendering
Debug missing glyphs
Common Use Cases
Font Configuration Debugging
If your terminal doesn’t look right, usels-fonts to verify:
Emoji Support
Verify emoji rendering:Programming Ligatures
Check ligature support in your font:CJK Character Support
Verify Chinese, Japanese, or Korean character rendering:Powerline Symbols
Check if powerline symbols are available:Understanding Output
When using--text, the output typically shows:
- Primary Font: The main font configured in your
wezterm.lua - Fallback Fonts: Additional fonts used when the primary font doesn’t have a glyph
- Coverage: Which characters are covered by which font
- Font Attributes: Weight, style, stretch, etc.
Troubleshooting Font Issues
-
Characters show as boxes (□): The font doesn’t have that glyph. Use
--textto find which fallback font should provide it. -
Wrong font being used: Check your
wezterm.luaconfiguration and verify with--text. -
Emoji not displaying: Use
--textwith emoji to see if an emoji font is available. -
Ligatures not working: Not all fonts support ligatures. Use
--textto verify the font being used.
Related Configuration
In yourwezterm.lua, you configure fonts like:
Related
- WezTerm Font Configuration Documentation
- wezterm show-keys - Display key bindings