bdf2sfd

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

commit 689dc8e082ffedbc3501da60c928a823b25846be
parent 4513110797b84a320981ae46bc02e35ceea6bd56
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 29 Jan 2020 14:34:21 +0100

Draw polygons under the current position, makes things easier.

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

diff --git a/src/bdftosfd.c b/src/bdftosfd.c @@ -273,7 +273,7 @@ main(int argc, char *argv[]) "Fore\n" "SplineSet\n"); - y = (ascent - 1) * ylength; + y = ascent * ylength; readglyph = true; glyphes++; @@ -296,8 +296,8 @@ main(int argc, char *argv[]) if ((row & (mask >> column)) != 0) { x = column * xlength; fprintf(stdout, "%d %d m 1\n", x, y); - fprintf(stdout, " %d %d l 1\n", x, y + ylength); - fprintf(stdout, " %d %d l 1\n", x + xlength, y + ylength); + fprintf(stdout, " %d %d l 1\n", x, y - ylength); + fprintf(stdout, " %d %d l 1\n", x + xlength, y - ylength); fprintf(stdout, " %d %d l 1\n", x + xlength, y); fprintf(stdout, " %d %d l 1\n", x, y); }