erco77 / fntdump

A tool to convert binary 8x16 MS-DOS and linux text console .FNT files to/from 'ASCII art' text file dumps to allow editing glyphs in a text editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fntdump

A tool to convert binary 8x16 .FNT files to/from 'ASCII art' text file dumps to allow editing glyphs in a text editor.

This should be able to build on both linux (tested) and MS-DOS (Turbo C 3). Currently only 8x16 monospaced bitmap fonts are supported. (I believe 8xN fonts are also supported, where N <= 16, since they seem to just be padded out to 8x16)

Example usage:

fntdump SOMEFONT.FNT SOMEFONT.TXT   -- convert font to an 'ascii art' .txt file
vi SOMEFONT.TXT                     -- edit the 'ascii art' .txt file to change font's bitmap
fntdump SOMEFONT.TXT NEWFONT.FNT    -- convert the 'ascii art' .txt back into a new .fnt file

Basically you just change around the 'X's and '.'s to the way you want them, without changing the length of the line, or the number of lines per character (must be 16).

The format of the 'ascii art' file is meant to be easy to edit in a text editor, so you can change the glyphs around by simply changing the ascii content. Example:

[--snip--]
........
# character 01
........
........
.XXXXXX.
X......X
X.X..X.X
X......X
X......X
X.XXXX.X
X..XX..X
X......X
X......X
.XXXXXX.
........
........
........
........
# character 02
........
........
.XXXXXX.
XXXXXXXX
XX.XX.XX
XXXXXXXX
XXXXXXXX
XX....XX
XXX..XXX
XXXXXXXX
.XXXXXX.
........
........
[--snip--]

About

A tool to convert binary 8x16 MS-DOS and linux text console .FNT files to/from 'ASCII art' text file dumps to allow editing glyphs in a text editor

License:GNU General Public License v2.0


Languages

Language:C 97.9%Language:Makefile 2.1%