commit e209b9f394bbd75a86b457929d4777189bcf3680
parent 040b41882d86ef6531861f1b830dc251d82db5a2
Author: Frederic Cambus <fred@statdns.com>
Date: Wed, 8 Jul 2020 12:34:42 +0200
Add a program to allow creating a raw font file for the 6x12 version.
Diffstat:
2 files changed, 36 insertions(+), 2 deletions(-)
diff --git a/wsfont/Makefile b/wsfont/Makefile
@@ -4,13 +4,13 @@
# https://www.cambus.net/
#
# Created: 2020-06-20
-# Last Updated: 2020-06-25
+# Last Updated: 2020-07-08
#
# Spleen is released under the BSD 2-Clause license.
# See LICENSE file for details.
#
-SIZES = 5x8 8x16 12x24 16x32 32x64
+SIZES = 5x8 6x12 8x16 12x24 16x32 32x64
all:
.for size in $(SIZES)
diff --git a/wsfont/spleen-6x12.c b/wsfont/spleen-6x12.c
@@ -0,0 +1,34 @@
+/*
+ * Spleen 1.8.0
+ * Copyright (c) 2018-2020, Frederic Cambus
+ * https://www.cambus.net/
+ *
+ * Created: 2020-07-08
+ * Last Updated: 2020-07-08
+ *
+ * Spleen is released under the BSD 2-Clause license.
+ * See LICENSE file for details.
+ */
+
+#include <stdio.h>
+#include <time.h>
+
+#include <dev/wscons/wsconsio.h>
+#include <dev/wsfont/spleen6x12.h>
+
+int
+main(int argc, char *argv[])
+{
+ size_t loop;
+
+ for (loop = 0; loop < 32 * 12; loop++)
+ printf("%c", 0);
+
+ for (loop = 0; loop < 96 * 12; loop++)
+ printf("%c", spleen6x12_data[loop]);
+
+ for (loop = 0; loop < 128 * 12; loop++)
+ printf("%c", 0);
+
+ return 0;
+}