Linux "xfd" Command Line Options and Examples
display all the characters in an X font

The xfd utility creates a window containing the name of the font being displayed, a row of command buttons, several lines of text for displaying character metrics, and a grid containing one glyph per cell. The charac‐ ters are shown in increasing order from left to right, top to bottom.


Usage:

xfd [-options ...] -fn fontname


    xfd [-options ...] -fa fontname






Command Line Options:

-fn
This option specifies the core X server side font to be displayed. This can also be set with theFontGrid font resource. A font must be specified.
xfd -fn ...
-fa
This option specifies a Xft font to be displayed. This can also be set with the FontGrid faceresource. A font pattern must be specified.
xfd -fa ...
-start
This option specifies the glyph index of the upper left hand corner of the grid. This is used to viewcharacters at arbitrary locations in the font. This can also be set with the FontGrid startCharresource. The default is 0.
xfd -start ...
-bc
This option specifies the color to be used if ImageText boxes are drawn. This can also be set withthe FontGrid boxColor resource.
xfd -bc ...
-rows
This option specifies the number of rows in the grid. This can also be set with the FontGrid cellRowsresource.
xfd -rows ...
-columns
This option specifies the number of columns in the grid. This can also be set with the FontGrid cell‐Columns resource.WIDGETSIn order to specify resources, it is useful to know the widgets which compose xfd. In the notation below,indentation indicates hierarchical structure. The widget class name is given first, followed by the widgetinstance name. The application class name is Xfd.Xfd xfdPaned paneLabel fontnameBox boxCommand quitCommand prevCommand nextLabel selectLabel metricsLabel rangeLabel startForm formFontGrid gridFONTGRID RESOURCESThe FontGrid widget is an application-specific widget, and a subclass of the Simple widget in the Athena wid‐get set. The effects and instance names of this widget's resources are given in the OPTIONS section. Capi‐talize the first letter of the resource instance name to get the corresponding class name.APPLICATION SPECIFIC RESOURCESThe instance names of the application specific resources are given below. Capitalize the first letter of theresource instance name to get the corresponding class name. These resources are unlikely to be interestingunless you are localizing xfd for a different language.selectFormatSpecifies a printf-style format string used to display information about the selected character. Thedefault is "character 0x%02x%02x (%u,%u) (%#o,%#o)". The arguments that will come after the formatstring are char.byte1, char.byte2, char.byte1, char.byte2, char.byte1, char.byte2. char.byte1 is byte1 of the selected character. char.byte2 is byte 2 of the selected character.metricsFormatSpecifies a printf-style format string used to display character metrics. The default is "width %d;left %d, right %d; ascent %d, descent %d (font %d, %d)". The arguments that will come after the for‐mat string are the character metrics width, lbearing, rbearing, character ascent, character descent,font ascent, and font descent.rangeFormatSpecifies a printf-style format string used to display the range of characters currently being dis‐played. The default is "range: 0x%02x%02x (%u,%u) thru 0x%02x%02x (%u,%u)". The arguments that willcome after the format string are the following fields from the XFontStruct that is returned from open‐ing the font: min_byte1, min_char_or_byte2, min_byte1, min_char_or_byte2, max_byte1,max_char_or_byte2, max_byte1, max_char_or_byte2.startFormatSpecifies a printf-style format string used to display information about the character at the upperleft corner of the font grid. The default is "upper left: 0x%04x (%d,%d)". The arguments that willcome after the format string are the new character, the high byte of the new character, and the lowbyte of the new character.nocharFormatSpecifies a printf-style format string to display when the selected character does not exist. Thedefault is "no such character 0x%02x%02x (%u,%u) (%#o,%#o)". The arguments that will come after theformat string are the same as for the selectFormat resource.
xfd -columns ...