Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xfd(1) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

X(1)

xlsfonts(1)

xrdb(1)

XFD(1)  —  Unix Programmer’s Manual

NAME

xfd - font displayer for X

SYNOPSIS

xfd [-options ...] [fontname]

OPTIONS

−bw number
Allows you to specify the width of the window border in pixels.

−rv The foreground and background colors will be switched.  The default colors are black on white. 

−fw Overrides a previous choice of reverse video.  The foreground and background colors will not be 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. 

−in iconname
Specifies that the name of the icon should be iconname. 

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

−verbose
Specifies that verbose mode should be used.

−gray Specifies that a gray background should be used. 

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

−geometry geometry
Specifies an initial window geometry; see X(1). 

−display display
Specifies the display to use; see X(1). 

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 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 character of 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 will simply be 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 will cause the next window full of characters to be displayed.  Clicking the left mouse button on the window will cause the previous window full of characters to be displayed.  Xfd will beep if an attempt is made to go back past the 0th character. 

Note that if the font is a 8 bit font, the characters 256-511 (0x100-0x1ff), 512-767 (0x200-0x2ff), ...  will display exactly the same as the characters 0-255 (0x00-0xff).  Xfd by default 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 window fulls in order to see the entire contents of a 8 bit font.  Of course, this window may very well not fit on the screen... 

Clicking the middle button on a character will cause that character’s number to be displayed in both decimal and hexidecimal at the bottom of the window.  If verbose mode is selected, additional information about that particular character will be displayed as well.  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 will display 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). 

If no font name is given on the command line, Xfd displays the font “fixed”. 

The window stays around until the xfd process is killed or one of ’q’, ’Q’, ’ ’, or ctrl-c is typed into the Xfd window. 

X DEFAULTS

The xfd program uses the routine XGetDefault(3X) to read defaults, so its resource names are all capitalized. 

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, etc.) 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 Set the title to be used. 

SEE ALSO

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

ENVIRONMENT

DISPLAY
to get the default host and display to use.

XENVIRONMENT
to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANGER property.

BUGS

It should display the name of the font somewhere. 

It should be rewritten to use the X toolkit. 

It should skip over pages full of non-existant characters. 

COPYRIGHT

Copyright 1988, Massachusetts Institute of Technology. 
See X(1) for a full statement of rights and permissions. 

AUTHOR

Mark Lillibridge, MIT Project Athena

X Version 11  —  1 March 1988

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