bdf2sfd

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

commit b451911a341bdbd0641909e57d2b81fcf8abf8cc
parent 10b1cad4b2fef5f37088fc416a16dd4becd20707
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 22 Jan 2020 23:49:49 +0100

Only print font->copyright and font->version values if they exist.

Diffstat:
Msrc/bdftosfd.c | 2+-
Msrc/header.c | 9+++++++--
2 files changed, 8 insertions(+), 3 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-21 + * Last Updated: 2020-01-22 * * bdftosfd is released under the BSD 2-Clause license * See LICENSE file for details diff --git a/src/header.c b/src/header.c @@ -26,8 +26,13 @@ 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: %s\n", font->version); + + if (font->copyright) + fprintf(stream, "Copyright: %s\n", font->copyright); + + if (font->version) + fprintf(stream, "Version: %s\n", font->version); + fprintf(stream, "ItalicAngle: 0\n"); fprintf(stream, "UnderlinePosition: -100\n"); fprintf(stream, "UnderlineWidth: 40\n");