xmbdfed1
Motif-based bdf font editor
Usage
xmbdfed [options]
[fonts ...]
Overview
xmbdfed lets you interactively create new bitmap font files or modify existing ones. It allows editing multiple fonts and multiple glyphs, it allows cut and paste operations between fonts and glyphs and editing font properties. xmbdfed can import Metafont PK/GF fonts, Han Bitmap Font Format (HBF) fonts, Linux console fonts (PSF, CP, and EGA/VGA) fonts, Sun VF fonts, TrueType (TTF) fonts, or grab a font from the X server. xmbdfed can export PSF2 Linux console fonts and HEX fonts (see online help). The editor support two and four bits per pixel gray scale fonts.
xmbdfed works on X Window System Version 11 (X11), Release 5 or Release 6, with Motif 1.2.x or Motif 2.x.
Options
xmbdfed accepts the following command line arguments:
-
-nc -
do not preserve comments (by default, xmbdfed automatically collects comments that are saved with the font).
-
-nu -
do not preserve unencoded glyphs (by default, xmbdfed preserves the unencoded glyphs).
-
-nm -
do not make metrics corrections (by default, xmbdfed attempts to make metrics corrections automatically).
-
-np -
do not pad character-cell bitmaps (by default, xmbdfed pads character-cell bitmaps with 0's to the cell dimensions when the font is saved).
-
-bp -
allow blank pages (by default, xmbdfed skips blank pages).
-
-ed -
do not present the "Really Exit?" dialog (by default, this dialog always presented).
-
-ps n -
set default point size (if unspecified, xmbdfed sets it to 12).
-
-hres n -
set default horizontal resolution.
-
-vres n -
set default vertical resolution.
-
-res n -
set both default resolutions (if unspecified, xmbdfed sets both horizontal and vertical resolution to that of display, (e.g. 90x90 dpi for Sun workstations).
-
-sp s -
set the default font spacing ("p" for Proportional, "m" for Monowidth, or "c" for Character Cell).
-
-bpp n -
set the default bits per pixel for new fonts (1, 2, or 4).
-
-eol e -
set the default end-of-line type ("u" for Unix LF, "d" for DOS/Windows CRLF, or "m" for Macintosh CR). CR)
-
-g glyph-code -
specify the initial glyph code at startup. The glyph code can be specified in decimal, octal, or hex. Octal numbers must be prefixed with the digit 0, and hex numbers must be prefixed with one of: 0x, 0X, U+, U-, \u.
-
-pb -
do not use the progress bar. Use the watch cursor instead.
-
-cb code-base -
specify the code base used to display the glyphs encodings (can be "octal", "decimal", or "hexadecimal").
Font grid
At the top of each editor window there are some fields and buttons. These are:
-
The "Font" text field is where the font name is set so it can be edited.
The "Glyph" field is a label that provides some information about glyph name, encoding, and metrics when a glyph is selected. When a range of glyphs are selected, this field displays the start and end codes of the range.
The push buttons are used to navigate through the glyph pages. The "Previous Page" and "Next Page" buttons normally skip glyph pages that are empty, but that can be changed using the "Setup" dialog.
If the Shift key is held down while the "Next" or "Previous" page buttons is pressed, then the paging behavior will be opposite of the current paging behavior.
The "Page" field indicates the current glyph page and also allows a specific page number to be entered. Once a page number is entered, pressing the Return key will cause the Font Grid to shift to that page. The page number entered is expected to be a decimal number.
The "Code" field is provided for situations where the page number is not known, but the encoding is known. The encoding entered in this field must be in the base (8, 10, or 16) that is currently being used to display glyph encodings (see the "View" menu below). Once the encoding is entered, pressing the Return key will cause the Font Grid to shift to the page containing the encoding.
The main window of each font editor is called the Font Grid. Each Font Grid has a clipboard used for passing glyphs around. This clipboard is called FONTGRID_CLIPBOARD. The format of the data stored to this clipboard is not documented yet.
When a glyph has been modified either by the user or by automatic metrics corrections when the font is loaded, the glyph code above the glyph cell will be highlighted.
Font Grid Other Features
Double clicking the mouse on one of the glyphs will start a Glyph Editor for that glyph.
The font name can be edited in the Font Grid and page switching can be done with the buttons on the Font Grid.
Glyph editor
The Glyph Editor provides a simple bitmap editor designed to edit glyph bitmaps and other glyph information. The Glyph Editors all use a special clipboard used to pass bitmaps between the Glyph Editors. This clipboard is called GLYPHEDIT_CLIPBOARD.
The only limit on the number of Glyph Editors that can be open at one time is the amount of memory.
Glyph Editor Other Features
When the mouse is used to shift the bitmap by one of the buttons, holding the mouse down will cause the activity to repeat.
When editing fonts with two or four bits per pixel, a strip of colors is presented on the left side of the Glyph Editor toolbox. These can be selected with the mouse or with certain keys (see online help text for details).
Resources
The program understands all of the core X Toolkit resource names and classes as well as:
- noComments (Boolean)
-
Specify whether xmbdfed preserves comments or not (default False).
- noUnencodedGlyphs (Boolean)
-
Specify whether xmbdfed preserves unencoded glyphs (character code -1) or not (default False).
- noMetricsCorrections (Boolean)
-
Specify whether xmbdfed does metrics corrections or not (default False).
- padCharacterCells (Boolean)
-
Specify whether character-cell glyphs should be padded to cell geometry (default False).
- skipBlankGlyphPages (Boolean)
-
Specify whether xmbdfed skips blank pages or not (default True).
- fontPointSize (Cardinal)
-
Sets default point size.
- fontHorizontalResolution (Cardinal)
-
Sets default horizontal resolution.
- fontVerticalResolution (Cardinal)
-
Sets default vertical resolution.
- fontResolution (Cardinal)
-
Sets both default horizontal and vertical resolutions.
- fontSpacing (String)
-
Sets the default font spacing ("p", "m", or "c")
Acknowledgments
Ross Patterson for his HBF code.
der Mouse for his "getbdf" code.
K. Carothers and A. Korobka for their "fnt2bdf" code in Wine.
Mike Stroyan <[email protected]> for patches.
Primoz Peterlin <[email protected]> for this manual page.
Danny Backx <[email protected]> for the LessTif Imakefile.
Donald Page <[email protected]> for patches.
Michal Szymanski <[email protected]> for problem reports.
Werner Lemberg <[email protected]> for problem reports.
William F. Maton <[email protected]> for problem reports.
Ivan Nejgebauer <[email protected]> for problem reports.
Solofo <[email protected]> for problem reports.
Dave Bodenstab <[email protected]> for patches.
W. Chao <[email protected]> for Makefile changes and problem report.
Andreas Reuter <[email protected]> for problem reports.
Leonard Dickens <[email protected]> for IRIX 6.3 Makefile changes.
Markus Kuhn <[email protected]> for suggestions.
Jim Knoble <[email protected]> for dialog geometry fixes.
Darren Stuart Embry <[email protected]> for HP/UX 10.20 X11R6 Makefile additions.
Vladimir Volovich <[email protected]> for pointing out something I forgot to test.
Ben Fry <[email protected]> for IRIX 6.5.2 variables for the Makefile.
J.H.M. Dassen (Ray) <[email protected]> for bug fixes.
Robert Brady <[email protected]> for pointing out a problem.
Stefan Monnier <[email protected]> for a bug report.
Humphrey Clerx <[email protected]> for a bug report.
Rudolf Cejka <[email protected]> for bug fixes and a suggestion.
Baruch Even <[email protected]> for a bug fix.
Sergey Vlasov <[email protected]> for bug fixes.
Daniel Neuburger <[email protected]> for bug fixes.
Pierre HANSER <[email protected]> for a bug fix.
Patrick Hagglund <[email protected]> for FreeType 2 support.
Releases
3 releases since Debian 2.2 (Potato); the text changed 2 times.
-cb since Debian 3.0 (Woody).