Skip to main content
The 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

flag
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:
string
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, --codepoints
string
Explain 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-system
flag
Show 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

Output will show fonts like:

Check which fonts are used for English text

Check which fonts are used for mixed scripts

This will show:
  • The primary font for ASCII characters
  • Fallback fonts for Chinese characters
  • Fallback fonts for emoji

Inspect specific Unicode codepoints

This checks font coverage for emoji (😀😁😂).

Visualize glyph rendering

This will show ASCII art representation of how the glyphs are rendered.

Debug missing glyphs

Use this to see which fonts provide mathematical and symbolic characters.

Common Use Cases

Font Configuration Debugging

If your terminal doesn’t look right, use ls-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:
  1. Primary Font: The main font configured in your wezterm.lua
  2. Fallback Fonts: Additional fonts used when the primary font doesn’t have a glyph
  3. Coverage: Which characters are covered by which font
  4. Font Attributes: Weight, style, stretch, etc.
Example output:

Troubleshooting Font Issues

  1. Characters show as boxes (□): The font doesn’t have that glyph. Use --text to find which fallback font should provide it.
  2. Wrong font being used: Check your wezterm.lua configuration and verify with --text.
  3. Emoji not displaying: Use --text with emoji to see if an emoji font is available.
  4. Ligatures not working: Not all fonts support ligatures. Use --text to verify the font being used.
In your wezterm.lua, you configure fonts like: