Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wsfont Add "Spleen 6x12" to wsfont, a font targetted...
details: https://anonhg.NetBSD.org/src/rev/933f4f5f73c5
branches: trunk
changeset: 1011741:933f4f5f73c5
user: fcambus <fcambus%NetBSD.org@localhost>
date: Wed Jul 08 12:14:19 2020 +0000
description:
Add "Spleen 6x12" to wsfont, a font targetted at OLED displays.
It contains all printable ASCII characters (96 glyphes).
The font is 2-Clause BSD licensed and is my original creation.
diffstat:
sys/dev/wsfont/spleen6x12.h | 1292 +++++++++++++++++++++++++++++++++++++++++++
sys/dev/wsfont/wsfont.c | 12 +-
2 files changed, 1302 insertions(+), 2 deletions(-)
diffs (truncated from 1336 to 300 lines):
diff -r 109d3dc3cd38 -r 933f4f5f73c5 sys/dev/wsfont/spleen6x12.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/dev/wsfont/spleen6x12.h Wed Jul 08 12:14:19 2020 +0000
@@ -0,0 +1,1292 @@
+/* $NetBSD: spleen6x12.h,v 1.1 2020/07/08 12:14:19 fcambus Exp $ */
+
+/*
+ * Copyright (c) 2018-2020 Frederic Cambus <fcambus%netbsd.org@localhost>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+static u_char spleen6x12_data[];
+
+struct wsdisplay_font spleen6x12 = {
+ .name = "Spleen 6x12",
+ .firstchar = ' ',
+ .numchars = 128 - ' ',
+ .encoding = WSDISPLAY_FONTENC_ISO,
+ .fontwidth = 6,
+ .fontheight = 12,
+ .stride = 1,
+ .bitorder = WSDISPLAY_FONTORDER_L2R,
+ .byteorder = WSDISPLAY_FONTORDER_L2R,
+ .data = spleen6x12_data
+};
+
+static u_char spleen6x12_data[] = {
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x00, /* ........ */
+ 0x20, /* ..*..... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x50, /* .*.*.... */
+ 0x50, /* .*.*.... */
+ 0x50, /* .*.*.... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x50, /* .*.*.... */
+ 0xf8, /* *****... */
+ 0x50, /* .*.*.... */
+ 0x50, /* .*.*.... */
+ 0x50, /* .*.*.... */
+ 0xf8, /* *****... */
+ 0x50, /* .*.*.... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x20, /* ..*..... */
+ 0x78, /* .****... */
+ 0xa0, /* *.*..... */
+ 0xa0, /* *.*..... */
+ 0x70, /* .***.... */
+ 0x28, /* ..*.*... */
+ 0x28, /* ..*.*... */
+ 0x28, /* ..*.*... */
+ 0xf0, /* ****.... */
+ 0x20, /* ..*..... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x08, /* ....*... */
+ 0x48, /* .*..*... */
+ 0x50, /* .*.*.... */
+ 0x10, /* ...*.... */
+ 0x20, /* ..*..... */
+ 0x28, /* ..*.*... */
+ 0x48, /* .*..*... */
+ 0x40, /* .*...... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x30, /* ..**.... */
+ 0x48, /* .*..*... */
+ 0x48, /* .*..*... */
+ 0x30, /* ..**.... */
+ 0x60, /* .**..... */
+ 0x94, /* *..*.*.. */
+ 0x88, /* *...*... */
+ 0x74, /* .***.*.. */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x18, /* ...**... */
+ 0x20, /* ..*..... */
+ 0x40, /* .*...... */
+ 0x40, /* .*...... */
+ 0x40, /* .*...... */
+ 0x40, /* .*...... */
+ 0x20, /* ..*..... */
+ 0x18, /* ...**... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0xc0, /* **...... */
+ 0x20, /* ..*..... */
+ 0x10, /* ...*.... */
+ 0x10, /* ...*.... */
+ 0x10, /* ...*.... */
+ 0x10, /* ...*.... */
+ 0x20, /* ..*..... */
+ 0xc0, /* **...... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x48, /* .*..*... */
+ 0x30, /* ..**.... */
+ 0xfc, /* ******.. */
+ 0x30, /* ..**.... */
+ 0x48, /* .*..*... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0xf8, /* *****... */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x40, /* .*...... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0xf8, /* *****... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x20, /* ..*..... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x08, /* ....*... */
+ 0x08, /* ....*... */
+ 0x10, /* ...*.... */
+ 0x10, /* ...*.... */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x40, /* .*...... */
+ 0x40, /* .*...... */
+ 0x80, /* *....... */
+ 0x80, /* *....... */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x70, /* .***.... */
+ 0x88, /* *...*... */
+ 0x98, /* *..**... */
+ 0xa8, /* *.*.*... */
+ 0xc8, /* **..*... */
+ 0x88, /* *...*... */
+ 0x88, /* *...*... */
+ 0x70, /* .***.... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x20, /* ..*..... */
+ 0x60, /* .**..... */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x70, /* .***.... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x70, /* .***.... */
+ 0x88, /* *...*... */
+ 0x08, /* ....*... */
+ 0x08, /* ....*... */
+ 0x70, /* .***.... */
+ 0x80, /* *....... */
+ 0x80, /* *....... */
+ 0xf8, /* *****... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ 0x00, /* ........ */
+ 0x70, /* .***.... */
+ 0x88, /* *...*... */
+ 0x08, /* ....*... */
+ 0x30, /* ..**.... */
Home |
Main Index |
Thread Index |
Old Index