bdf2sfd

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

commit 7aa198c8ca4c2d26e129d6a3b241a809637a6c87
parent 23f9b116d2fe9ec283d073e91505052076a1a52d
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 28 Jan 2020 18:22:33 +0100

Raise limits to allow converting fonts of sizes up to 32x64.

Diffstat:
Msrc/bdftosfd.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bdftosfd.c b/src/bdftosfd.c @@ -153,7 +153,7 @@ main(int argc, char *argv[]) value = strtok(NULL, " \t"); if (value) - width = strtonum(value, 0, 8, &errstr); + width = strtonum(value, 0, 32, &errstr); if (errstr) errx(EXIT_FAILURE, "Invalid value for FONTBOUNDINGBOX."); @@ -161,7 +161,7 @@ main(int argc, char *argv[]) value = strtok(NULL, " \t"); if (value) - height = strtonum(value, 0, 16, &errstr); + height = strtonum(value, 0, 64, &errstr); if (errstr) errx(EXIT_FAILURE, "Invalid value for FONTBOUNDINGBOX."); @@ -178,7 +178,7 @@ main(int argc, char *argv[]) value = strtok(NULL, "\n"); if (value) - ascent = strtonum(value, 0, 16, &errstr); + ascent = strtonum(value, 0, 64, &errstr); if (!errstr) font.ascent = ascent * ylength; @@ -195,7 +195,7 @@ main(int argc, char *argv[]) value = strtok(NULL, "\n"); if (value) - descent = strtonum(value, 0, 16, &errstr); + descent = strtonum(value, 0, 64, &errstr); if (!errstr) font.descent = descent * ylength;