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 "bold16x32", a pixel doubled version of t...



details:   https://anonhg.NetBSD.org/src/rev/63c8f3c7a027
branches:  trunk
changeset: 998095:63c8f3c7a027
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Apr 07 13:48:27 2019 +0000

description:
Add "bold16x32", a pixel doubled version of the "bold8x16" font.

diffstat:

 sys/dev/wsfont/bold16x32.h  |  8689 +++++++++++++++++++++++++++++++++++++++++++
 sys/dev/wsfont/files.wsfont |     3 +-
 sys/dev/wsfont/wsfont.c     |    12 +-
 3 files changed, 8701 insertions(+), 3 deletions(-)

diffs (truncated from 8750 to 300 lines):

diff -r 6e7e7eee384a -r 63c8f3c7a027 sys/dev/wsfont/bold16x32.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/dev/wsfont/bold16x32.h        Sun Apr 07 13:48:27 2019 +0000
@@ -0,0 +1,8689 @@
+/*      $NetBSD: bold16x32.h,v 1.1 2019/04/07 13:48:27 jmcneill Exp $ */
+
+/*-
+ * Copyright (c) 1999-2019 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Andrew Doran.
+ *
+ * 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
+ */
+
+/*
+ * This font lives in the public domain. It it a PC font, IBM encoding,
+ * which was designed for use with syscons.
+ *
+ * This is a pixel doubled version of the bold8x16 font.
+ */
+static u_char bold16x32_data[];
+
+static struct wsdisplay_font bold16x32 = {
+       "Boldface 16x32",               /* typeface name */
+       1,                              /* firstchar */
+       254,                            /* numchars */
+       WSDISPLAY_FONTENC_IBM,          /* encoding */
+       16,                             /* width */
+       32,                             /* height */
+       2,                              /* stride */
+       WSDISPLAY_FONTORDER_L2R,        /* bit order */
+       WSDISPLAY_FONTORDER_L2R,        /* byte order */
+       bold16x32_data                  /* data */
+};
+
+static u_char bold16x32_data[] = {
+       /* 0x01 */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x0f, 0xf0,      /* ....********.... */
+       0x0f, 0xf0,      /* ....********.... */
+       0x30, 0x0c,      /* ..**........**.. */
+       0x30, 0x0c,      /* ..**........**.. */
+       0xc0, 0x03,      /* **............** */
+       0xc0, 0x03,      /* **............** */
+       0xfc, 0x3f,      /* ******....****** */
+       0xfc, 0x3f,      /* ******....****** */
+       0xcc, 0x33,      /* **..**....**..** */
+       0xcc, 0x33,      /* **..**....**..** */
+       0xc3, 0xc3,      /* **....****....** */
+       0xc3, 0xc3,      /* **....****....** */
+       0xc0, 0x03,      /* **............** */
+       0xc0, 0x03,      /* **............** */
+       0xc3, 0xc3,      /* **....****....** */
+       0xc3, 0xc3,      /* **....****....** */
+       0x30, 0x0c,      /* ..**........**.. */
+       0x30, 0x0c,      /* ..**........**.. */
+       0x0f, 0xf0,      /* ....********.... */
+       0x0f, 0xf0,      /* ....********.... */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+
+       /* 0x02 */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x0f, 0xf0,      /* ....********.... */
+       0x0f, 0xf0,      /* ....********.... */
+       0x3f, 0xfc,      /* ..************.. */
+       0x3f, 0xfc,      /* ..************.. */
+       0xff, 0xff,      /* **************** */
+       0xff, 0xff,      /* **************** */
+       0xc3, 0xc3,      /* **....****....** */
+       0xc3, 0xc3,      /* **....****....** */
+       0xf3, 0xcf,      /* ****..****..**** */
+       0xf3, 0xcf,      /* ****..****..**** */
+       0xfc, 0x3f,      /* ******....****** */
+       0xfc, 0x3f,      /* ******....****** */
+       0xff, 0xff,      /* **************** */
+       0xff, 0xff,      /* **************** */
+       0xfc, 0x3f,      /* ******....****** */
+       0xfc, 0x3f,      /* ******....****** */
+       0x3f, 0xfc,      /* ..************.. */
+       0x3f, 0xfc,      /* ..************.. */
+       0x0f, 0xf0,      /* ....********.... */
+       0x0f, 0xf0,      /* ....********.... */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+
+       /* 0x03 */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x3c, 0xf0,      /* ..****..****.... */
+       0x3c, 0xf0,      /* ..****..****.... */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x0f, 0xc0,      /* ....******...... */
+       0x0f, 0xc0,      /* ....******...... */
+       0x03, 0x00,      /* ......**........ */
+       0x03, 0x00,      /* ......**........ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+
+       /* 0x04 */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x03, 0x00,      /* ......**........ */
+       0x03, 0x00,      /* ......**........ */
+       0x0f, 0xc0,      /* ....******...... */
+       0x0f, 0xc0,      /* ....******...... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x0f, 0xc0,      /* ....******...... */
+       0x0f, 0xc0,      /* ....******...... */
+       0x03, 0x00,      /* ......**........ */
+       0x03, 0x00,      /* ......**........ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+
+       /* 0x05 */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x0f, 0xc0,      /* ....******...... */
+       0x0f, 0xc0,      /* ....******...... */
+       0x0f, 0xc0,      /* ....******...... */
+       0x0f, 0xc0,      /* ....******...... */
+       0x03, 0x00,      /* ......**........ */
+       0x03, 0x00,      /* ......**........ */
+       0xf3, 0x3c,      /* ****..**..****.. */
+       0xf3, 0x3c,      /* ****..**..****.. */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0xf3, 0x3c,      /* ****..**..****.. */
+       0xf3, 0x3c,      /* ****..**..****.. */
+       0x03, 0x00,      /* ......**........ */
+       0x03, 0x00,      /* ......**........ */
+       0x0f, 0xc0,      /* ....******...... */
+       0x0f, 0xc0,      /* ....******...... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+
+       /* 0x06 */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x03, 0x00,      /* ......**........ */
+       0x03, 0x00,      /* ......**........ */
+       0x0f, 0xc0,      /* ....******...... */
+       0x0f, 0xc0,      /* ....******...... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0xff, 0xfc,      /* **************.. */
+       0x33, 0x30,      /* ..**..**..**.... */
+       0x33, 0x30,      /* ..**..**..**.... */
+       0x03, 0x00,      /* ......**........ */
+       0x03, 0x00,      /* ......**........ */
+       0x0f, 0xc0,      /* ....******...... */
+       0x0f, 0xc0,      /* ....******...... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x3f, 0xf0,      /* ..**********.... */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+
+       /* 0x07 */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x00, 0x00,      /* ................ */
+       0x03, 0xc0,      /* ......****...... */
+       0x03, 0xc0,      /* ......****...... */
+       0x0f, 0xf0,      /* ....********.... */
+       0x0f, 0xf0,      /* ....********.... */
+       0x0f, 0xf0,      /* ....********.... */
+       0x0f, 0xf0,      /* ....********.... */
+       0x03, 0xc0,      /* ......****...... */
+       0x03, 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,      /* ................ */
+
+       /* 0x08 */
+       0xff, 0xff,      /* **************** */
+       0xff, 0xff,      /* **************** */
+       0xff, 0xff,      /* **************** */
+       0xff, 0xff,      /* **************** */



Home | Main Index | Thread Index | Old Index