From 92e84d33f37ab2bf3845cd4ae8149cd9d416c402 Mon Sep 17 00:00:00 2001 From: nitram509 Date: Sat, 13 Jan 2024 23:43:50 +0100 Subject: [PATCH 1/2] add #ifdef header into the generated code --- tools/1bitfont.html | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tools/1bitfont.html b/tools/1bitfont.html index 5aa3c64..cd22491 100644 --- a/tools/1bitfont.html +++ b/tools/1bitfont.html @@ -94,7 +94,7 @@ var r = data[idx + 0]; var g = data[idx + 1]; var b = data[idx + 2]; - if (r==g && g==b && b==0) + if (r==g && g==b && b==0) bytes[bi]|=1<1BITFONT

WHAT IS:

1BITFONT is a simple web tool to generate bit fonts for ESPVGAX library.

- 1BITFONT read an image where all the fonts glyphs are layouted in a single + 1BITFONT 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: