LinuxCommandLibrary

xfd

Display X font information

SYNOPSIS

xfd [-options] -fn fontname

PARAMETERS

-fn fontname
    Specifies the font to display. The fontname can be an XLFD string or an alias from fonts.alias.

-name fontname
    An alias for -fn.

-geometry geometry
    Specifies the initial size and position of the xfd window.

-bg color
    Sets the background color of the window.

-fg color
    Sets the foreground color (color of the characters).

-rv
    Reverse video; swaps the foreground and background colors.

-bd color
    Sets the border color of the window.

-bw pixels
    Sets the border width of the window in pixels.

-display displayname
    Specifies the X server to connect to.

-help
    Prints a usage message.

DESCRIPTION

The xfd command displays all the characters in a specified X Window System font. It opens a window and arranges the characters in a grid, allowing you to visually inspect the font's glyphs.

xfd is useful for verifying font availability and content, especially when configuring X servers or troubleshooting font-related issues. You can use it to confirm that a particular font contains the characters you need and that they are rendered correctly. The program takes a font name as an argument, which specifies the font to be displayed. The font name should be in the XLFD (X Logical Font Description) format or an alias defined in a fonts.alias file. Interacting with the window includes changing the magnification.

INTERACTION

Clicking the left mouse button in the window redraws the characters magnified by a factor of two. Clicking the middle mouse button returns to the original magnification. Clicking the right mouse button quits the application.

SEE ALSO

Copied to clipboard