2BITFONT
by Sandro MaffiodoWHAT 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:
- source image must have all glyphs on a single line. black is foreground color, white is background
- the image must contain only the ASCII characters from !(33) to £(128)
- the height of the font is equal to the height of the source image
- source image must use a single pixel to delimitate all glyphs (white line separator).
When a white line is part of the glyph (for example the glyph ") you can use a red pixel to join the two separated pixels - the maximum width of a single glyph must be less or equal 8
INPUT:
source image:generate one glyph as a single line
use binary numbers (0b0100)
output variable name: