Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/wsfont import the Spleen wscons fonts from OpenBSD



details:   https://anonhg.NetBSD.org/src/rev/54e5a5492243
branches:  trunk
changeset: 997633:54e5a5492243
user:      tnn <tnn%NetBSD.org@localhost>
date:      Sun Mar 17 06:09:35 2019 +0000

description:
import the Spleen wscons fonts from OpenBSD

Spleen is a 2-clause BSD licensed font set designed by Frederic Cambus.
The 5x8 font is designed for low resolution displays, but the font
comes in a variety of sizes suitable for larger display too.

diffstat:

 sys/dev/wsfont/files.wsfont  |      7 +-
 sys/dev/wsfont/spleen12x24.h |   5645 +++++++++++++++
 sys/dev/wsfont/spleen16x32.h |   7437 ++++++++++++++++++++
 sys/dev/wsfont/spleen32x64.h |  14605 +++++++++++++++++++++++++++++++++++++++++
 sys/dev/wsfont/spleen5x8.h   |    909 ++
 sys/dev/wsfont/spleen8x16.h  |   3853 ++++++++++
 sys/dev/wsfont/wsfont.c      |     39 +-
 7 files changed, 32492 insertions(+), 3 deletions(-)

diffs (truncated from 32556 to 300 lines):

diff -r b5058e2b7b2c -r 54e5a5492243 sys/dev/wsfont/files.wsfont
--- a/sys/dev/wsfont/files.wsfont       Sun Mar 17 04:03:17 2019 +0000
+++ b/sys/dev/wsfont/files.wsfont       Sun Mar 17 06:09:35 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.wsfont,v 1.23 2017/05/22 19:04:34 christos Exp $
+#      $NetBSD: files.wsfont,v 1.24 2019/03/17 06:09:35 tnn Exp $
 
 defpseudo wsfont
 
@@ -28,5 +28,10 @@
                                FONT_DROID_SANS_MONO9x18
                                FONT_DROID_SANS_MONO19x36
                                FONT_GO_MONO12x23
+                               FONT_SPLEEN12x24
+                               FONT_SPLEEN16x32
+                               FONT_SPLEEN32x64
+                               FONT_SPLEEN5x8
+                               FONT_SPLEEN8x16
 
 file   dev/wsfont/wsfontdev.c  wsfont needs-flag
diff -r b5058e2b7b2c -r 54e5a5492243 sys/dev/wsfont/spleen12x24.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/dev/wsfont/spleen12x24.h      Sun Mar 17 06:09:35 2019 +0000
@@ -0,0 +1,5645 @@
+/*     $NetBSD: spleen12x24.h,v 1.1 2019/03/17 06:09:35 tnn Exp $ */
+/*     $OpenBSD: spleen12x24.h,v 1.2 2019/03/08 10:53:59 fcambus Exp $ */
+
+/*
+ * Copyright (c) 2018-2019 Frederic Cambus <fcambus%openbsd.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 spleen12x24_data[];
+
+struct wsdisplay_font spleen12x24 = {
+       "Spleen 12x24",                 /* typeface name */
+       ' ',                            /* firstchar */
+       256 - ' ',                      /* numchars */
+       WSDISPLAY_FONTENC_ISO,          /* encoding */
+       12,                             /* width */
+       24,                             /* height */
+       2,                              /* stride */
+       WSDISPLAY_FONTORDER_L2R,        /* bit order */
+       WSDISPLAY_FONTORDER_L2R,        /* byte order */
+       spleen12x24_data                /* data */
+};
+
+static u_char spleen12x24_data[] = {
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x7f, 0xe0,     /* .**********..... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x7f, 0xe0,     /* .**********..... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x1f, 0xe0,     /* ...********..... */
+       0x36, 0x00,     /* ..**.**......... */
+       0x66, 0x00,     /* .**..**......... */
+       0x66, 0x00,     /* .**..**......... */
+       0x66, 0x00,     /* .**..**......... */
+       0x66, 0x00,     /* .**..**......... */
+       0x36, 0x00,     /* ..**.**......... */
+       0x1f, 0x80,     /* ...******....... */
+       0x06, 0xc0,     /* .....**.**...... */
+       0x06, 0x60,     /* .....**..**..... */
+       0x06, 0x60,     /* .....**..**..... */
+       0x06, 0x60,     /* .....**..**..... */
+       0x06, 0x60,     /* .....**..**..... */
+       0x06, 0xc0,     /* .....**.**...... */
+       0x7f, 0x80,     /* .********....... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0xc0,     /* ........**...... */
+       0x38, 0xc0,     /* ..***...**...... */
+       0x6d, 0x80,     /* .**.**.**....... */
+       0x6d, 0x80,     /* .**.**.**....... */
+       0x3b, 0x00,     /* ..***.**........ */
+       0x03, 0x00,     /* ......**........ */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x0c, 0x00,     /* ....**.......... */
+       0x0d, 0xc0,     /* ....**.***...... */
+       0x1b, 0x60,     /* ...**.**.**..... */
+       0x1b, 0x60,     /* ...**.**.**..... */
+       0x31, 0xc0,     /* ..**...***...... */
+       0x30, 0x00,     /* ..**............ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x0f, 0x00,     /* ....****........ */
+       0x19, 0x80,     /* ...**..**....... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x30, 0xc0,     /* ..**....**...... */
+       0x19, 0x80,     /* ...**..**....... */
+       0x0f, 0x00,     /* ....****........ */
+       0x33, 0x00,     /* ..**..**........ */
+       0x61, 0xa0,     /* .**....**.*..... */
+       0x60, 0xe0,     /* .**.....***..... */
+       0x60, 0xc0,     /* .**.....**...... */
+       0x60, 0xc0,     /* .**.....**...... */
+       0x31, 0xe0,     /* ..**...****..... */
+       0x1f, 0x30,     /* ...*****..**.... */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x06, 0x00,     /* .....**......... */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x00, 0xe0,     /* ........***..... */
+       0x01, 0x80,     /* .......**....... */
+       0x03, 0x00,     /* ......**........ */
+       0x06, 0x00,     /* .....**......... */
+       0x0c, 0x00,     /* ....**.......... */
+       0x0c, 0x00,     /* ....**.......... */
+       0x18, 0x00,     /* ...**........... */
+       0x18, 0x00,     /* ...**........... */
+       0x18, 0x00,     /* ...**........... */
+       0x18, 0x00,     /* ...**........... */
+       0x18, 0x00,     /* ...**........... */
+       0x18, 0x00,     /* ...**........... */
+       0x18, 0x00,     /* ...**........... */
+       0x18, 0x00,     /* ...**........... */
+       0x0c, 0x00,     /* ....**.......... */
+       0x0c, 0x00,     /* ....**.......... */
+       0x06, 0x00,     /* .....**......... */
+       0x03, 0x00,     /* ......**........ */
+       0x01, 0x80,     /* .......**....... */
+       0x00, 0xe0,     /* ........***..... */
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+
+       0x00, 0x00,     /* ................ */
+       0x00, 0x00,     /* ................ */
+       0x70, 0x00,     /* .***............ */
+       0x18, 0x00,     /* ...**........... */
+       0x0c, 0x00,     /* ....**.......... */
+       0x06, 0x00,     /* .....**......... */



Home | Main Index | Thread Index | Old Index