xlsfonts
List available X11 fonts
TLDR
List all available fonts
SYNOPSIS
xlsfonts [-display HOST:DISPLAY] [-l] [-ll] [-lll] [-m] [-C] [-1] [-w WIDTH] [-n COLUMNS] [-u] [-o] [-fn PATTERN]
DESCRIPTION
xlsfonts lists fonts available from the X server's font path. By default, it lists all fonts in multiple columns. Font names follow the X Logical Font Description (XLFD) convention with fields for foundry, family, weight, slant, width, style, pixel size, point size, resolution, spacing, average width, and character set.
Patterns can include wildcards (* matches any string, ? matches single character). Common pattern uses filter by family (-fn "*helvetica*"), spacing (-fn "*-m-*" for monospace), or size.
PARAMETERS
-display HOST:DISPLAY
Connect to specified X display.-fn PATTERN
List only fonts matching pattern (wildcards supported).-l
List fonts with minimal attributes.-ll
List fonts with more attributes.-lll
List fonts with all attributes.-m
Use maximum output width (usually 79 columns).-C
Use multiple columns.-1
Force single column output.-w WIDTH
Maximum width for multi-column output.-n COLUMNS
Number of columns.-u
Leave output unsorted.-o
Use OpenFont/QueryFont instead of ListFonts.
CAVEATS
xlsfonts shows X11 core fonts only, not modern fontconfig/Xft fonts used by most applications. The output can be extensive on systems with many fonts installed. Font paths and availability depend on X server configuration.
HISTORY
xlsfonts has been part of the X Window System utilities since the early X11 releases in the late 1980s. While modern applications typically use fontconfig and Xft for antialiased font rendering, xlsfonts remains useful for diagnosing X11 core font availability and for legacy applications.
