bdf2sfd

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

commit def7f3fa6fca7ace63e820bc58cba704d066a550
parent bbc6342fd30d39a5d7b80fed13fb8b45267b79b7
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue,  3 Dec 2019 11:25:51 +0100

Start emitting output data when encountering BITMAP and ENDCHAR markers.

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

diff --git a/src/bdftosfd.c b/src/bdftosfd.c @@ -122,12 +122,24 @@ 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"); + readglyph = true; glyphes++; + continue; } + if (!strncmp(lineBuffer, "ENDCHAR", 7)) { + fprintf(stdout, "EndSplineSet\n"); + fprintf(stdout, "EndChar\n\n"); + readglyph = false; + continue; } }