bdf2sfd

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

commit 176dc3c6db4596d8e9e0064894d2aa70f159dbc7
parent dea4614c4e10241bcb1a4273a18942efb3428f5d
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 28 Jan 2020 15:05:15 +0100

Change value 25 to 1, as FontForge does when optimizing and simplifying shapes.

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

diff --git a/src/bdftosfd.c b/src/bdftosfd.c @@ -4,7 +4,7 @@ * https://github.com/fcambus/bdftosfd * * Created: 2019-11-21 - * Last Updated: 2020-01-26 + * Last Updated: 2020-01-28 * * bdftosfd is released under the BSD 2-Clause license * See LICENSE file for details @@ -287,11 +287,11 @@ main(int argc, char *argv[]) for (size_t column = 0; column < 8; column++) { if ((row & (mask >> column)) != 0) { x = column * 64; - fprintf(stdout, "%d %d m 25\n", x, y); - fprintf(stdout, " %d %d l 25\n", x, y + 64); - fprintf(stdout, " %d %d l 25\n", x + 64, y + 64); - fprintf(stdout, " %d %d l 25\n", x + 64, y); - fprintf(stdout, " %d %d l 25\n", x, y); + fprintf(stdout, "%d %d m 1\n", x, y); + fprintf(stdout, " %d %d l 1\n", x, y + 64); + fprintf(stdout, " %d %d l 1\n", x + 64, y + 64); + fprintf(stdout, " %d %d l 1\n", x + 64, y); + fprintf(stdout, " %d %d l 1\n", x, y); } }