fslsfonts
List fonts available to an X server
SYNOPSIS
fslsfonts [-options] pattern
PARAMETERS
-display host:display.screen
Specifies the X server to connect to.
-l
Lists long format; gives more font properties.
-v
Lists verbose information about each font.
-server hostname:portnumber
Specifies the font server to connect to. Overrides the -display option for font listing.
-fn pattern
Specifies a font name pattern.
-fp
List font path.
-u
Lists unsorted font names.
pattern
An optional pattern that limits the fonts that are listed. Uses wildcards.
DESCRIPTION
The fslsfonts
command lists the fonts served by an X server. It connects to the specified X server (or the default one if none is given) and retrieves a list of fonts that match the optional pattern.
The output is a simple list of font names, one per line. This command is useful for identifying available fonts on a particular server and using them in X applications. It is part of the x11-utils
package on many Linux distributions. The command uses the Font Service Protocol (FSP) to query the X server. If no pattern is specified, all fonts are listed, which can be a very long list. Consider filtering by wildcards. For example, fslsfonts -fn '*helvetica*'
CAVEATS
Listing all fonts can take a long time, especially on servers with many fonts. Using a specific pattern is highly recommended. Font servers may not be enabled or properly configured by default.
EXAMPLES
fslsfonts '*courier*'
: Lists all fonts with 'courier' in their name.fslsfonts -server hostname:portnumber
: Lists fonts from the specified font server.