📄 0047-0050.html
字号:
<HTML>
<HEAD>
<TITLE>Linux Complete Command Reference:User Commands:EarthWeb Inc.-</TITLE>
</HEAD>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!-- ISBN=0672311046 //-->
<!-- TITLE=Linux Complete Command Reference//-->
<!-- AUTHOR=Red Hat//-->
<!-- PUBLISHER=Macmillan Computer Publishing//-->
<!-- IMPRINT=Sams//-->
<!-- CHAPTER=01 //-->
<!-- PAGES=0001-0736 //-->
<!-- UNASSIGNED1 //-->
<!-- UNASSIGNED2 //-->
<P><CENTER>
<a href="0045-0046.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0051-0051.html">Next</A></CENTER></P>
<A NAME="PAGENUM-47"><P>Page 47</P></A>
<H3><A NAME="ch01_ 14">
bdftopcf
</A></H3>
<P>bdftopcf—Convert X font from Bitmap Distribution Format to Portable Compiled Format
</P>
<B>
SYNOPSIS
</B>
<!-- CODE SNIP //-->
<PRE>
bdftopcf [ _pn ][_un ][_m ][_l ][_M ][_L ][_t ][_i ][_o outputfile ] fontfile.bdf
</PRE>
<!-- END CODE SNIP //-->
<P><B>
DESCRIPTION
</B></P>
<P>bdftopcf is a font compiler for the X server and font server. Fonts in Portable Compiled Format can be read by
any architecture, although the file is structured to allow one particular architecture to read them directly without
reformatting. This allows fast reading on the appropriate machine, but the files are still portable (but read more slowly) on other machines.
</P>
<P><B>
OPTIONS
</B></P>
<TABLE>
<TR><TD>
_pn
</TD><TD>
Sets the font glyph padding. Each glyph in the font will have each scanline padded in to a
multiple of n bytes, where n is 1, 2, 4, or 8.
</TD></TR><TR><TD>
_un
</TD><TD>
Sets the font scanline unit. When the font bit order is different from the font byte order,
the scanline unit n describes what unit of data (in bytes) are to be swapped; the unit
i can be 1, 2, or 4 bytes.
</TD></TR><TR><TD>
_m
</TD><TD>
Sets the font bit order to MSB (most significant bit) first. Bits for each glyph will be placed in
this order; that is, the leftmost bit on the screen will be in the highest valued bit in each unit.
</TD></TR><TR><TD>
_l
</TD><TD>
Sets the font bit order to LSB (least significant bit) first. The leftmost bit on the screen will be in
the lowest valued bit in each unit.
</TD></TR><TR><TD>
_M
</TD><TD>
Sets the font byte order to MSB first. All multibyte data in the file (metrics, bitmaps, and
everything else) will be written most significant byte first.
</TD></TR><TR><TD>
_L
</TD><TD>
Sets the font byte order to LSB first. All multibyte data in the file (metrics, bitmaps, and
everything else) will be written least significant byte first.
</TD></TR><TR><TD>
_t
</TD><TD>
When this option is specified, bdftopcf will convert fonts into terminal fonts when possible.
A terminal font has each glyph image padded to the same size; the
X server can usually render these types of fonts more quickly.
</TD></TR><TR><TD>
_i
</TD><TD>
This option inhibits the normal computation of ink metrics. When a font has glyph images that
do not fill the bitmap image (that is, the "on" pixels don't extend to the edges of the metrics),
bdftopcf computes the actual ink metrics and places them in the
PCF file; the _t option inhibits this behavior.
</TD></TR><TR><TD>
_o output-file-name
</TD><TD>
By default bdftopcf writes the
PCF file to standard output; this option gives the name of a file to
be used instead.
</TD></TR></TABLE>
<P>
<B>
SEE ALSO
</P>
<P>X(1)</P>
Author
Keith Packard, MIT X Consortium
</B>
<P>X Version 11 Release 6
</P>
<H3><A NAME="ch01_ 15">
beforelight
</A></H3>
<P>beforelight—Screen saver
<P><B>
SYNOPSIS
</B></P>
<!-- CODE SNIP //-->
<PRE>
beforelight [ _toolkitoption ... ]
</PRE>
<!-- END CODE SNIP //-->
<A NAME="PAGENUM-48"><P>Page 48</P></A>
<P><B>
DESCRIPTION
</B></P>
<P>The beforelight program is a sample implementation of a screen saver for
X servers supporting the MIT-SCREEN-SAVER extension.
</P>
<P><B>
AUTHORS
</B></P>
<P>Keith Packard (MIT X Consortium)</P>
<P>X Version 11 Release 6
</P>
<H3><A NAME="ch01_ 16">
biff
</A></H3>
<P>biff—Be notified if mail arrives and who it is from
</P>
<B>
SYNOPSIS
</B>
<!-- CODE SNIP //-->
<PRE>
biff [ny]
</PRE>
<!-- END CODE SNIP //-->
<P><B>
DESCRIPTION
</B></P>
<P>biff informs the system whether you want to be notified when mail arrives during the current terminal session.
Options supported by biff:
</P>
<TABLE>
<TR><TD>
n
</TD><TD>
Disables notification
</TD></TR><TR><TD>
y
</TD><TD>
Enables notification
</TD></TR></TABLE>
<P>When mail notification is enabled, the header and first few lines of the message will be printed on your screen whenever
mail arrives. A
</P>
<!-- CODE SNIP //-->
<PRE>
biff y
</PRE>
<!-- END CODE SNIP //-->
<P>command is often included in the file .login or
.profile to be executed at each login.
</P>
<P>Biff operates asynchronously. For synchronous notification use the
MAIL variable of sh(1) or the mail variable of csh(1).
</P>
<P><B>
SEE ALSO
</B>
</P><P>csh(1), mail(1), sh(1), comsat(8)
<P><B>
HISTORY
</B></P>
<P>The biff command appeared in BSD 4.0.
<P>BSD 4, 14 March 1991
<H3><A NAME="ch01_ 17">
bioradtopgm
</A></H3>
<P>bioradtopgm—Convert a Biorad confocal file into a portable graymap
<B>
SYNOPSIS
</B>
<!-- CODE SNIP //-->
<PRE>
bioradtopgm [-image#][imagedata]
</PRE>
<!-- END CODE SNIP //-->
<P><B>
DESCRIPTION
</B></P>
<P>Reads a Biorad confocal file as input. Produces a portable graymap as output. If the resulting image is upside down, run
it through pnmflip -tb.
</P>
<A NAME="PAGENUM-49"><P>Page 49</P></A>
<B>
OPTIONS
</B>
<TABLE>
<TR><TD>
-image#
</TD><TD>
A Biorad image file may contain more than one image. With this flag, you can specify which image
to extract (only one at a time). The first image in the file has number zero. If no image number is
supplied, only information about the image size and the number of images in the input is printed out. No output
is produced.
</TD></TR></TABLE>
<B>
BUGS
</B>
<P>A Biorad image may be in word format. If
PbmPlus is not compiled with the BIGGRAYS flag,
word files cannot be converted. See the makefile.
</P>
<B>
SEE ALSO
</B>
<P>pgm(5), pnmflip(1)</P>
<B>
AUTHORS
</B>
<P>Copyright " 1993 by Oliver Trepte
</P>
<P>28 June 1993
</P>
<H3><A NAME="ch01_ 18">
bitmap, bmtoa, atobm
</A></H3>
<!-- CODE SNIP //-->
<PRE>bitmap, bmtoa, atobm—Bitmap editor and converter utilities for the X Window System
</PRE>
<!-- END CODE SNIP //-->
<B>
SYNOPSIS
</B>
<!-- CODE //-->
<PRE>
bitmap [ _options ...][filename ][basename ]
bmtoa [ _chars ...][filename ]
atobm [ _chars cc ][_name variable ][_xhot number ][_yhot number ][filename ]
</PRE>
<!-- END CODE //-->
<P><B>
DESCRIPTION
</B></P>
<P>The bitmap program is a rudimentary tool for creating or editing rectangular images made up of 1s and 0s. Bitmaps are
used in X for defining clipping regions, cursor shapes, icon shapes, and tile and stipple patterns.
</P>
<P>The bmtoa and atobm filters convert bitmap files
(FILE FORMAT) to and from ASCII strings. They are most commonly used
to quickly print out bitmaps and to generate versions for including in text.
</P>
<B>
COMMAND-LINE OPTIONS
</B>
<P>Bitmap supports the standard X Toolkit command-line arguments; see
X(1). The following additional arguments are supported as well:</P>
<TABLE>
<TR><TD>
_size WIDTHxHEIGHT
</TD><TD>
Specifies size of the grid in squares.
</TD></TR><TR><TD>
_sw dimension
</TD><TD>
Specifies the width of squares in pixels.
</TD></TR><TR><TD>
_sh dimension
</TD><TD>
Specifies the height of squares in pixels.
</TD></TR><TR><TD>
_gt dimension
</TD><TD>
Grid tolerance. If the square dimensions fall below the specified value, grid will
be automatically turned off.
</TD></TR><TR><TD>
_grid, +grid
</TD><TD>
Turns on or off the grid lines.
</TD></TR><TR><TD>
_axes, +axes
</TD><TD>
Turns on or off the major axes.
</TD></TR><TR><TD>
_dashed, +dashed
</TD><TD>
Turns on or off dashing for the frame and grid lines.
</TD></TR><TR><TD>
_stippled, +stippled
</TD><TD>
Turns on or off stippling of highlighted squares.
</TD></TR></TABLE>
<A NAME="PAGENUM-50"><P>Page 50</P></A>
<TABLE>
<TR><TD>
_proportional, +proportional
</TD><TD>
Turns proportional mode on or off. If proportional mode is on, square width
is equal to square height. If proportional mode is off,
bitmap will use the smaller square dimension, if they were initially different.
</TD></TR><TR><TD>
_dashes filename
</TD><TD>
Specifies the bitmap to be used as a stipple for dashing.
</TD></TR><TR><TD>
_stipple filename
</TD><TD>
Specifies the bitmap to be used as a stipple for highlighting.
</TD></TR><TR><TD>
_hl color
</TD><TD>
Specifies the color used for highlighting.
</TD></TR><TR><TD>
_fr color
</TD><TD>
Specifies the color used for the frame and grid lines.
</TD></TR><TR><TD>
filename
</TD><TD>
Specifies the bitmap to be initially loaded into the program. If the file does not
exist, bitmap will assume it is a new file.
</TD></TR><TR><TD>
basename
</TD><TD>
Specifies the basename to be used in the C code output file. If it is different than
the basename in the working file, bitmap will change it when saving the file.
</TD></TR></TABLE>
<P>
bmtoa accepts the following option:
</P>
<TABLE>
<TR><TD>
_chars cc
</TD><TD>
This option specifies the pair of characters to use in the string version of the
bitmap. The first character is used for 0 bits and the second character is used for 1 bits.
The default is to use dashes (-) for 0s and number signs
(#) for 1s.
</TD></TR></TABLE>
<P>atobm accepts the following options:
</P>
<TABLE>
<TR><TD>
_chars cc
</TD><TD>
This option specifies the pair of characters to use when converting string
bitmaps into arrays of numbers. The first character represents a 0 bit and the
second character represents a 1 bit. The default is to use dashes
(_) for 0s and number signs (#) for 1s.
</TD></TR><TR><TD>
_name variable
</TD><TD>
This option specifies the variable name to be used when writing out the bitmap
file. The default is to use the basename of the filename command-line argument or
leave it blank if the standard input is read.
</TD></TR><TR><TD>
_xhot number
</TD><TD>
This option specifies the X coordinate of the hot spot. Only positive values
are allowed. By default, no hot spot information is included.
</TD></TR><TR><TD>
_yhot number
</TD><TD>
This option specifies the Y coordinate of the hot spot. Only positive values
are allowed. By default, no hot spot information is included.
</TD></TR></TABLE>
<P><B>
USAGE
</B></P>
<P>bitmap displays grid in which each square represents a single bit in the picture being edited. Actual size of the bitmap
image, as it would appear normally and inverted, can be obtained by pressing Meta-I. You are free to move the image pop-up out
of the way to continue editing. Pressing the left mouse button in the pop-up window or Meta-I again will remove the real
size bitmap image.
</P>
<P>If the bitmap is to be used for defining a cursor, one of the squares in the images may be designated as the hot spot.
This determines where the cursor is actually pointing. For cursors with sharp tips (such as arrows or fingers), this is usually at
the end of the tip; for symmetric cursors (such as crosses or bulls-eyes), this is usually at the center.
</P>
<P>Bitmaps are stored as small C code fragments suitable for including in applications. They provide an array of bits as well
as symbolic constants giving the width, height, and hot spot (if specified) that may be used in creating cursors, icons, and tiles.
</P>
<P><B>
EDITING
</B></P>
<P>To edit a bitmap image, simply click on one of the buttons with drawing commands (Point, Curve, Line, Rectangle, and
so on) and move the pointer into the bitmap grid window. Press one of the buttons on your mouse and the appropriate
action will take place. You can either set, clear, or invert the grid squares. Setting a grid square corresponds to setting a bit in
the bitmap image to 1. Clearing a grid square corresponds to setting a bit in the bitmap image to 0. Inverting a grid
square corresponds to changing a bit in the bitmap image from
0 to 1 or 1 to 0, depending what its previous state was. The
default behavior of mouse buttons is as follows:
</P>
<P><CENTER>
<a href="0045-0046.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0051-0051.html">Next</A></CENTER></P>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -