
LINUX CONSOLE FONT EDITOR
David B. Thomas
dthomas@rt66.com

Here's a dandy little font editor I crufted together over a weekend.
The code isn't particularly reusable, but there are a few tweaks you
can make.  See conf.h for those.

This editor can only handle 8x16 linux console fonts.  Both psf and
native raw formats are supported.  The program can read either format,
and will write the format of your choice (select it in conf.hi -- the
precompiled ELF executable is set for non-psf mode).

In some Linux distributions, extra console fonts are supplied in
/usr/lib/kbd/consolefonts.  The ones this editor can handle are the
8x16 size, which are 4096 bytes in length (4100 for psf format).

svgalib is required, and the mode that is used is 640x480x256, and
this is not terribly easy to change.


TO USE

To edit a font file, type "cse filename".  The editor is 100% mouse
driven.  The only key sequence that can do anything is Ctrl-C, which
will abort the editor.  To save, click on the "save" button.  It will
change to "Overwrt?".  To replace the old file contents with the new,
click the button again.  To not save after all, click anywhere else.
To exit click "Exit".  If changes have been made, you'll be asked to
confirm: the button will change to "Discard?".  Click it again to
exit, or click anywhere else to not exit after all.

Most of the buttons are self-explanatory, but I should describe the
purpose of the "Revert" button.  It affects only the character
currently being edited, and it reverts not to the original bit pattern
as read from the file, but to the way that character looked when you
started editing it this particular time.  Why do I get the feeling
that doesn't help?


BUGS

"Mouse droppings" occasionally appear in the pixel map area.  Moving
the mouse pointer over them erases them.

The keyboard buffer is never flushed, so if keys are pressed while
editing, those keystrokes are sent to the shell on exit.

Nearly everything is hardcoded.
