NAME
xfd − Display all the characters in an X font.
SYNTAX
xfd [options] -fn fontname
DESCRIPTION
xfd 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 characters are shown in increasing order from left to right, top to bottom. The first character displayed at the top left will be character number 0 unless the -start option has been supplied, in which case the character with the number given in the -start option will be used.
The characters are displayed in a grid of boxes, each large enough to hold any single character in the font. Each character glyph is drawn using the PolyText16 request (used by the Xlib routine XDrawString16). If the -box option is given, a rectangle will be drawn around each character, showing where an ImageText16 request (used by the Xlib routine XDrawImageString16) would cause background color to be displayed.
The origin of each glyph is normally set so that the character is drawn in the upper-left corner of the grid cell. However, if a glyph has a negative left bearing or an unusually large ascent, descent, or right bearing (as is the case with the cursor font), some characters may not appear in their own grid cells. The -center option may be used to force all glyphs to be centered in their respective cells.
All the characters in the font may not fit in the window at once. To see the next page of glyphs, press the Next button at the top of the window. To see the previous page, press Prev. To exit xfd, press Quit.
Individual character metrics (index, width, bearings, ascent, and descent) can be displayed at the top of the window by pressing on the desired character.
The font name displayed at the top of the window is the full name of the font, as determined by the server. See xlsfonts for ways to generate lists of fonts, as well as more detailed summaries of their metrics and properties.
See Chapter 6, Font Specification, for instructions on using xfd.
OPTIONS
xfd accepts all of the standard X Toolkit command-line options, which are listed on the X reference page. In addition, xfd accepts the following application-specific options. (Note that the option -fn font is required.)
-bc color
Specifies the color to be used if ImageText boxes are drawn.
-boxDisplays a box outlining the area that would be filled with background color by an ImageText request.
-center
Indicates that each glyph should be centered in its grid square.
-fn font
Specifies the font to be displayed.
-start char_num
Specifies that character number char_num should be the first character displayed. (It appears in the upper left-hand corner of the grid.) This option is used to view characters at arbitrary locations in the font. The default is 0.
RESOURCES
xfd accepts all of the Core resource names and classes as well as the following:
boxChars (class BoxChars)
If True, displays a a box outlining the area that would be filled with background color by an ImageText request.
boxColor (class Foreground)
Specifies that the given color is used for the ImageText boxes.
cellColumns (class CellColumns)
Specifies number of columns in grid.
cellRows (class CellRows)
Specifies number of rows in grid.
centerChars (class CenterChars)
If True, each glyph is centered in its grid square.
foreground (class Foreground)
Specifies the color to use for text and graphics within the window.
metricsFormat (class MetricsFormat)
Defines the format of the text line displaying the metrics of a selected character.
nocharFormat (class NocharFormat)
Defines the format of the text line displaying that no such character exists.
rangeFormat (class RangeFormat)
Defines the format of the text line displaying the range of characters in the xfd window.
startFormat (class StartFormat)
Defines the format of the text line displaying information about the starting character.
selectFormat (class SelectFormat)
Defines the format of the text line displaying a selected character.
startChar (class StartChar)
Specifies that the given character number should be the first character displayed. (It appears in the upper left-hand corner of the grid.) This resource is used to view characters at arbitrary locations in the font. The default is 0.
BUGS
xfd should skip over pages full of non-existent characters.
SEE ALSO
X, xfontsel, xlsfonts, xrdb; Chapter 6, Font Specification.
AUTHOR
Jim Fulton, MIT X Consortium; previous program of the same name by Mark Lillibridge, MIT Project Athena.