XFD(1) XFD(1)
NAME
xfd - font displayer for X
SYNOPSIS
xfd [-options ...] -fn fontname
OPTIONS
-display display
specifies the display to use.
-geometry geometry
specifies an initial window geometry.
-bw number
allows you to specify the width of the window
border in pixels.
-rv
switches the foreground and background colors. The
default colors are black on white.
-fw
overrides a previous choice of reverse video. The
foreground and background colors are not switched.
-fg color
on color displays, determines the foreground color
(the color of the text).
-bg color
on color displays, determines the background color.
-bd color
on color displays, determines the color of the
border.
-bf fontname
specifies the font to be used for the messages at
the bottom of the window.
-tl title
specifies that the title of the displayed window
should be title. Note that if your window manager
does not display titles (in titlebars), this option
appears to have no effect. However, xlswins(1)
will list the xfd client by the title provided
instead of by the name xfd.
-in iconname
specifies that the name of the icon should be
iconname.
- 1 -
XFD(1) XFD(1)
-icon filename
specifies that the bitmap in filename should be
used for the icon.
-verbose
specifies that extra information about the font
should be displayed.
-gray
specifies that a gray background should be used.
-start charnum
specifies that charnum should be the first
character displayed.
DESCRIPTION
xfd creates a window in which the characters in the
named font are displayed. The characters are shown in
increasing order from left to right, top to bottom.
The first character displayed at the top left is
character number 0 unless the -start option has been
supplied in which case the character with the number
given in the -start option is used.
The characters are displayed in a grid of boxes, each
large enough to hold any single character in the font.
If the -gray option has been supplied, the characters
will be displayed using XDrawImageString using the
foreground and background colors on a gray background.
This permits determining exactly how XDrawImageString
will draw any given character. If -gray has not been
supplied, the characters are drawn using the foreground
color on the background color.
All the characters in the font may not fit in the
window at once. To see additional characters, click
the right mouse button on the window. This causes the
next window full of characters to be displayed.
Clicking the left mouse button on the window causes the
previous window full of characters to be displayed.
xfd beeps if an attempt is made to go back past the 0th
character.
Note that if the font is an 8-bit font, the characters
256-511 (100-1ff in hexadecimal), 512-767 (200-2ff in
hexadecimal), ... display exactly the same as the
characters 0-255 (00-ff in hexadecimal). xfd by
default creates a window big enough to display 16 rows
of 16 columns (256 characters total).
- 2 -
XFD(1) XFD(1)
Clicking the middle button on a character causes that
character's number to be displayed in both decimal and
hexadecimal at the bottom of the window. If verbose
mode is selected, additional information about that
particular character is also displayed. The displayed
information includes the width of the character, its
left bearing, right bearing, ascent, and its descent.
If verbose mode is selected, typing or into the window
displays the minimum or maximum values respectively
taken on by each of these fields over the entire font.
The font name is interpreted by the X server. To
obtain a list of all the fonts available, use
xlsfonts(1).
The window stays around until the xfd process is killed
or one of q, Q, no value, or ctrl-c is typed into the
xfd window.
X DEFAULTS
xfd uses the following X resources:
BorderWidth
Set the border width of the window.
BorderColor
Set the border color of the window.
ReverseVideo
If on, reverse the definition of foreground and
background color.
Foreground
Set the foreground color.
Background
Set the background color.
BodyFont
Set the font to be used in the body of the window
(i.e., for messages). This is not the font that
xfd displays, just the font it uses to display
information about the font being displayed.
IconName
Set the name of the icon.
IconBitmap
Set the file we should look in to get the bitmap
for the icon.
Title
- 3 -
XFD(1) XFD(1)
Set the title to be used.
SEE ALSO
xlsfonts(1), xrdb(1)
BUGS
It should display the name of the font somewhere.
Character information displayed in verbose mode is
sometimes clipped to the window boundary, hiding it
from view.
It should be rewritten to use the X toolkit.
It should skip over pages full of nonexistent
characters.
AUTHOR
Mark Lillibridge, MIT Project Athena
- 4 -