2BITFONT

by Sandro Maffiodo

WHAT IS:

2BITFONT is a simple web tool to generate bit fonts for AVR/Arduino.


2BITFONT read an image where all the fonts glyphs are layouted in a single line. Each glyph must be separated from the next with a single white line. The tool will autodetect the glyph boundaries and generate a byte table where each byte is 8 horizontal pixels of the glyph. All glyphs will have the same height but different widths. The first byte of the glyph, inside the generated table, is the glyph width (in pixels, where 1pixel=1bit).

RULES:

INPUT:

source image:

generate one glyph as a single line

use binary numbers (0b0100)

output variable name:

OUTPUT: