bdf2sfd

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

commit 9b85ed4b4b78ef5675e9422d3bded6c2a3f70d6b
parent b451911a341bdbd0641909e57d2b81fcf8abf8cc
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun, 26 Jan 2020 13:03:58 +0100

Reduce amount of fprintf() calls.

Diffstat:
Msrc/bdftosfd.c | 20++++++++++----------
1 file changed, 10 insertions(+), 10 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-22 + * Last Updated: 2020-01-26 * * bdftosfd is released under the BSD 2-Clause license * See LICENSE file for details @@ -233,11 +233,11 @@ main(int argc, char *argv[]) } if (!strncmp(lineBuffer, "BITMAP", 6)) { - fprintf(stdout, "Width: 512\n"); - fprintf(stdout, "Flags: HW\n"); - fprintf(stdout, "LayerCount: 2\n"); - fprintf(stdout, "Fore\n"); - fprintf(stdout, "SplineSet\n"); + fprintf(stdout, "Width: 512\n" + "Flags: HW\n" + "LayerCount: 2\n" + "Fore\n" + "SplineSet\n"); y = 704; readglyph = true; @@ -247,8 +247,8 @@ main(int argc, char *argv[]) } if (!strncmp(lineBuffer, "ENDCHAR", 7)) { - fprintf(stdout, "EndSplineSet\n"); - fprintf(stdout, "EndChar\n\n"); + fprintf(stdout, "EndSplineSet\n" + "EndChar\n\n"); readglyph = false; @@ -274,8 +274,8 @@ main(int argc, char *argv[]) } } - fprintf(stdout, "EndChars\n"); - fprintf(stdout, "EndSplineFont\n"); + fprintf(stdout, "EndChars\n" + "EndSplineFont\n"); /* Stopping timer */ clock_gettime(CLOCK_MONOTONIC, &end);