gbdfed1
Gtk-based bdf font editor
Usage
gbdfed [options]
[fonts ...]
Overview
gbdfed 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. gbdfed can import Metafont PK/GF fonts, Han Bitmap Font Format (HBF) fonts, Linux console fonts (PSF, CP, and EGA/VGA) fonts, Sun VF fonts, OpenType/TrueType (OTF/TTF) fonts, or grab a font from the X server (when running under X11). gbdfed can export PSF2 Linux console fonts and HEX fonts (see online help).
gbdfed works on X Window System Version 11 (X11), Release 5 or 6, with GTK+ 2.6 or greater. It may work on Windows, but hasn't been tested yet.
Options
gbdfed accepts the following command line arguments:
-
-nc -
do not preserve comments (by default, gbdfed automatically collects comments that are saved with the font).
-
-nu -
do not preserve unencoded glyphs (by default, gbdfed preserves the unencoded glyphs).
-
-nm -
do not make metrics corrections (by default, gbdfed attempts to make metrics corrections automatically).
-
-np -
do not pad character-cell bitmaps (by default, gbdfed pads character-cell bitmaps with 0's to the cell dimensions when the font is saved).
-
-bp -
allow blank pages (by default, gbdfed 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, gbdfed sets it to 12).
-
-hres n -
set default horizontal resolution.
-
-vres n -
set default vertical resolution.
-
-res n -
set both default resolutions (if unspecified, gbdfed 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).
-
-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.
-
-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 "Preferences" dialog.
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 assumed 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 using one of the buttons, holding the mouse down will cause the activity to repeat.
Properties
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.
James Cloos <[email protected]> for pointing out problems.
Ming Hua <[email protected]> for pointing out problems.
Viktor Urban <[email protected]> for pointing out problems.
Jiri "BlueBear" Dluhos <[email protected]> for providing 64-bit fixes.
Jan Engelhardt <[email protected]> help text improvements and missing prototype.
Daniel Richard G. <[email protected]> for help on 64-bit architectures.
Baruch Even <[email protected]> for help on 64-bit architectures.
Ming Hua <[email protected]> for an unsuspected warning.
Ryan Hill <[email protected]> for import dialog crash report.
Don Knuth (https://bugs.launchpad.net/ubuntu/+source/gbdfed/+bug/172836) for reporting spelling, gramatical and behavior problems.
Tim Allen <[email protected]> for discovering glyph and font spacing bugs.
Daniel Quarras <[email protected]> for discovering a PSF unicode map editing problem.
Bertrand Janin <[email protected]> for improving the GlyphEditor user interface.
Peter Volkov <[email protected]> for fixing a name collision.
Tom "spot" Callaway <[email protected]> for fixing a linking problem.
Releases
8 releases since Debian 4.0 (Etch); the text changed 3 times.