bdf2sfd

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

commit 2374ac0a86352476577399eb86c01b643e83b76c
parent 1c1163dc7ce5faddefe4d87e132776cbe16eb0dd
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 20 Jan 2020 20:03:21 +0100

Output copyright information in the SFD header.

Diffstat:
Msrc/bdftosfd.c | 4++--
Msrc/header.c | 3++-
Msrc/header.h | 2+-
3 files changed, 5 insertions(+), 4 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: 2019-12-31 + * Last Updated: 2020-01-20 * * bdftosfd is released under the BSD 2-Clause license * See LICENSE file for details @@ -122,7 +122,7 @@ main(int argc, char *argv[]) token = strtok(lineBuffer, " \t"); if (token) - font.copyright = strtok(NULL, "\n"); + font.copyright = strdup(strtok(NULL, "\n")); continue; } diff --git a/src/header.c b/src/header.c @@ -4,7 +4,7 @@ * https://github.com/fcambus/bdftosfd * * Created: 2019-11-21 - * Last Updated: 2020-01-17 + * Last Updated: 2020-01-20 * * bdftosfd is released under the BSD 2-Clause license * See LICENSE file for details @@ -26,6 +26,7 @@ header(FILE *stream, struct fontinfo *font) fprintf(stream, "FullName: %s\n", font->name); fprintf(stream, "FamilyName: %s\n", font->name); fprintf(stream, "Weight: Medium\n"); + fprintf(stream, "Copyright: %s\n", font->copyright); fprintf(stream, "Version: 1.5.0\n"); fprintf(stream, "ItalicAngle: 0\n"); fprintf(stream, "UnderlinePosition: -100\n"); diff --git a/src/header.h b/src/header.h @@ -4,7 +4,7 @@ * https://github.com/fcambus/bdftosfd * * Created: 2019-11-21 - * Last Updated: 2019-12-23 + * Last Updated: 2020-01-20 * * bdftosfd is released under the BSD 2-Clause license * See LICENSE file for details