Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

X(1X)

xlsfonts(1X)

xrdb(1)

xfd(1X)  —  Unsupported

Name

xfd − X Window System font displayer

Syntax

xfd [ options ] font

Description

The xfd command creates a window that displays all characters in the specified font.  The size of the window can be specified by the geometry option. 

The font name is interpreted by the X Server.  If the name begins with a slash, the X Server treats it as the absolute pathname of a file containing a font.  If the name does not begin with a slash, the X Server adds the suffix .dwf to it and searches for the font file in the font directories, using the same search order as the server.  To obtain a list of all the fonts available, use the xlsfonts command.  If you do not supply a font name on the command line, xfd displays the font named ‘fixed’. 

The characters are displayed (eight to a line) in the specified font, in increasing ASCII order.  A grid of boxes, each large enough to hold any character of the font, is used to display the characters.  If you specified the -gray option, the characters are displayed with XDrawImageString.  The foreground and background colors on a gray background are used. If you did not specify the -gray option, the characters are drawn with the foreground color on the background color. 

To remove the xfd window, place the mouse pointer in the window and type q, or Q, or press CTRL/C. 

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.  Clicking the right mouse button causes the next window of characters to be displayed.  Clicking the left mouse button on the window causes the previous window of characters to be displayed.  If an attempt is made to go back past the first character, xfd beeps. 

If the font is an 8-bit font the characters 256-511 (0x100-0x1ff), 512-767 (0x200-0x2ff), and so on, display exactly the same as the characters 0-255 (0x00-0xff).  By default, xfd creates a window of size sufficient to display the first 256 characters using a 16-by-16 grid.  In this case, there is no need to scroll forward or backward to see the entire contents of an 8-bit font.  This window may not fit on the screen. 

To display a character’s number in both decimal and hexadecimal, click the middle button on a character.  If you have specified verbose mode the displayed information includes the width of the character, its left bearing, right bearing, ascent, and descent.  In verbose mode, typing a left (<) or right (>) angle bracket in the window displays the minimum or maximum value, respectively, taken on by each of these fields over the entire font. 

Options

The xfd command has the following options:

−bd color Specifies the border color of the window (color displays only). 

−bf font Specifies the font to be used for the messages at the bottom of the window. 

−bg color Specifies the background color of the window (color displays only). 

−bw pixels Specifies the width of the window border. 

−d dispname Specifies the display screen on which xfd displays its window.  If the display option is not specified, xfd uses the display screen specified by your DISPLAY environment variable.  The display option has the format hostname:number.  Using two colons (::) instead of one (:) indicates that DECnet is to be used for transport.  The default is :0.  For more information, see X(.).

−display dispname This option is the same as the −d option. 

−fg color Specifies the color of the text displayed in the window (color displays only). 

−fw Specifies that xfd override the previous choice of reverse video.  The foreground and background colors are not switched. 

−g Specifies the width, length, and location of the xfd window.  If the geometry option is not specified, xfd uses default values.  The geometry option has the format =[width][xlength][x][y].  For more information about the screen coordinate system, see X(.).

−geometry This option is the same as the −g option. 

−gray Specifies that a gray background should be used. 

−icon file Specifies the bitmap file that should be used for the icon. 

−in icon Specifies the name displayed in the icon. 

−rv Specifies that the default color values be reversed (for example, black becomes white and white becomes black).  The default is black text on a white background. 

−start charnum Specifies the character number that should be the first character displayed. 

−tl title Specifies the title of the displayed window. 

−v Specifies that verbose mode should be used. 

−verbose This option is the same as the −v option. 

X Defaults

The xfd application reads the .Xdefaults file during startup and uses the appropriate resource specification to customize the appearance or characteristics of its displayed xfd window.  The format for a resource specification in the .Xdefaults file is: [name.]resource:  value

nameSpecifies the application name or the name string that restricts the resource assignment to that application or to a component of an application.  If this argument is not specified, the resource assignment is globally available to all X applications. 

resourceSpecifies the resource. 

valueSpecifies the value that is to be assigned to the resource. 

In most cases, the period (.) delimiter should be replaced by an asterisk (*).  For more information, see X(.).

For xfd, the available name is xfd. 

In addition to the general resources listed in X(,), the resources available for xfd are:

BodyFontSpecifies the font to use for messages and information that are displayed in the body of the window. 

BorderColorSpecifies the color of the window’s border. 

BorderWidthSpecifies the width of the border. 

IconNameSpecifies the name of the icon. 

IconBitmapSpecifies the file that contains the bitmap for the icon. 

ReverseVideoSpecifies that the color for the foreground and background should be reversed.  The default is not to reverse the color values. 

TitleSpecifies the title to be used in the main window’s title bar. 

See Also

X(1X), xlsfonts(1X), xrdb(1)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026