bdf2sfd

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

commit c2b5dba2d08adf96e68dbc0dd2d211c2bfeb5327
parent 7b651290926c783623440817c1adf6d27fdf47fe
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue,  3 Dec 2019 10:34:27 +0100

It doesn't really make sense to count lines, count parsed glyphes instead.

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

diff --git a/src/bdftosfd.c b/src/bdftosfd.c @@ -43,7 +43,7 @@ int8_t getoptFlag; char *intputFile; -uint64_t lines; +uint64_t glyphes; double runtime; void @@ -109,6 +109,7 @@ main(int argc, char *argv[]) { if (*lineBuffer) { if (!strncmp(lineBuffer, "BITMAP", 6)) { readglyph = true; + glyphes++; continue; } if (!strncmp(lineBuffer, "ENDCHAR", 7)) { @@ -116,8 +117,6 @@ main(int argc, char *argv[]) { continue; } } - - lines++; } /* Stopping timer */ @@ -127,7 +126,7 @@ main(int argc, char *argv[]) { runtime = elapsed.tv_sec + elapsed.tv_nsec / 1E9; /* Printing results */ - fprintf(stderr, "Processed %" PRIu64 " lines in %f seconds.\n", lines, runtime); + fprintf(stderr, "Processed %" PRIu64 " glyphes in %f seconds.\n", glyphes, runtime); /* Clean up */ fclose(bdfFile);