bdf2sfd

BDF to SFD converter, allowing to vectorize bitmap fonts
Log | Files | Refs | README | LICENSE

commit 23f9b116d2fe9ec283d073e91505052076a1a52d
parent b970cb87d469ee09353889626fb6572ed3e0cbf4
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 28 Jan 2020 18:14:39 +0100

Use font width to iterate through columns instead of hardcoding a magic number.

Diffstat:
Msrc/bdftosfd.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bdftosfd.c b/src/bdftosfd.c @@ -285,7 +285,7 @@ main(int argc, char *argv[]) if (readglyph) { int32_t row = strtol(lineBuffer, NULL, 16); - for (size_t column = 0; column < 8; column++) { + for (size_t column = 0; column < width; column++) { if ((row & (mask >> column)) != 0) { x = column * xlength; fprintf(stdout, "%d %d m 1\n", x, y);