Module Name:    xsrc
Committed By:   macallan
Date:           Thu Jul 27 08:44:42 UTC 2023

Modified Files:
        xsrc/local/programs/bdfload: bdfload.c

Log Message:
include glyph name in -d output


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 xsrc/local/programs/bdfload/bdfload.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/local/programs/bdfload/bdfload.c
diff -u xsrc/local/programs/bdfload/bdfload.c:1.19 xsrc/local/programs/bdfload/bdfload.c:1.20
--- xsrc/local/programs/bdfload/bdfload.c:1.19	Tue Oct 25 13:36:35 2022
+++ xsrc/local/programs/bdfload/bdfload.c	Thu Jul 27 08:44:42 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: bdfload.c,v 1.19 2022/10/25 13:36:35 macallan Exp $	*/
+/*	$NetBSD: bdfload.c,v 1.20 2023/07/27 08:44:42 macallan Exp $	*/
 
 /*
  * Copyright (c) 2018 Michael Lorenz
@@ -320,6 +320,9 @@ interpret(FILE *foo)
 			    "syntax error - no valid FONTBOUNDINGBOX\n");
 			memset(cbitmap, 0, charsize);
 			strlcpy(charname, arg, 64);
+			if (dump && (strlen(charname) > 0))
+				printf("name: %s\n", charname);
+
 		} else if (strcmp(line, "ENDCHAR") == 0) {
 			in_char = 0;
 			/* only commit the glyph if it's in range */

Reply via email to