Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wsfont Initial import of wsfont, an in-kernel font t...
details: https://anonhg.NetBSD.org/src/rev/b6ce49b6ce53
branches: trunk
changeset: 471840:b6ce49b6ce53
user: ad <ad%NetBSD.org@localhost>
date: Tue Apr 13 00:24:05 1999 +0000
description:
Initial import of wsfont, an in-kernel font table for wscons/rcons.
diffstat:
sys/dev/wsfont/Makefile | 7 +
sys/dev/wsfont/bold8x16.h | 4628 ++++++++++++++++++++++++++++++++++++++++
sys/dev/wsfont/courier11x18.h | 1927 ++++++++++++++++
sys/dev/wsfont/files.wsfont | 9 +
sys/dev/wsfont/gallant12x22.h | 2334 ++++++++++++++++++++
sys/dev/wsfont/iso8x16.h | 4648 +++++++++++++++++++++++++++++++++++++++++
sys/dev/wsfont/lucida16x29.h | 2987 ++++++++++++++++++++++++++
sys/dev/wsfont/qvss8x15.h | 1682 ++++++++++++++
sys/dev/wsfont/wsfont.c | 502 ++++
sys/dev/wsfont/wsfont.h | 78 +
10 files changed, 18802 insertions(+), 0 deletions(-)
diffs (truncated from 18842 to 300 lines):
diff -r 5f529990cfb7 -r b6ce49b6ce53 sys/dev/wsfont/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/dev/wsfont/Makefile Tue Apr 13 00:24:05 1999 +0000
@@ -0,0 +1,7 @@
+# $NetBSD: Makefile,v 1.1 1999/04/13 00:24:05 ad Exp $
+
+INCSDIR= /usr/include/dev/wsfont
+
+INCS= wsfont.h
+
+.include <bsd.kinc.mk>
diff -r 5f529990cfb7 -r b6ce49b6ce53 sys/dev/wsfont/bold8x16.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/dev/wsfont/bold8x16.h Tue Apr 13 00:24:05 1999 +0000
@@ -0,0 +1,4628 @@
+/* $NetBSD: bold8x16.h,v 1.1 1999/04/13 00:24:06 ad Exp $ */
+
+/*-
+ * Copyright (c) 1999 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Andy Doran <ad%NetBSD.org@localhost>.
+ *
+ * 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.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the NetBSD
+ * Foundation, Inc. and its contributors.
+ * 4. Neither the name of The NetBSD Foundation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * 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.
+ */
+extern u_char bold8x16_data[];
+
+struct wsdisplay_font bold8x16 = {
+ "Boldface", /* typeface name */
+ 1, /* firstchar */
+ 254, /* numchars */
+ WSDISPLAY_FONTENC_IBM, /* encoding */
+ 8, /* width */
+ 16, /* height */
+ 1, /* stride */
+ bold8x16_data /* data */
+};
+
+static u_char bold8x16_data[] = {
+ /* \01 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x3c, /* ..****.. */
+ 0x42, /* .*....*. */
+ 0x81, /* *......* */
+ 0xe7, /* ***..*** */
+ 0xa5, /* *.*..*.* */
+ 0x99, /* *..**..* */
+ 0x81, /* *......* */
+ 0x99, /* *..**..* */
+ 0x42, /* .*....*. */
+ 0x3c, /* ..****.. */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* \02 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x3c, /* ..****.. */
+ 0x7e, /* .******. */
+ 0xff, /* ******** */
+ 0x99, /* *..**..* */
+ 0xdb, /* **.**.** */
+ 0xe7, /* ***..*** */
+ 0xff, /* ******** */
+ 0xe7, /* ***..*** */
+ 0x7e, /* .******. */
+ 0x3c, /* ..****.. */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* \03 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x6c, /* .**.**.. */
+ 0xfe, /* *******. */
+ 0xfe, /* *******. */
+ 0xfe, /* *******. */
+ 0xfe, /* *******. */
+ 0xfe, /* *******. */
+ 0x7c, /* .*****.. */
+ 0x38, /* ..***... */
+ 0x10, /* ...*.... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* \04 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x10, /* ...*.... */
+ 0x38, /* ..***... */
+ 0x7c, /* .*****.. */
+ 0xfe, /* *******. */
+ 0x7c, /* .*****.. */
+ 0x38, /* ..***... */
+ 0x10, /* ...*.... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* \05 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x38, /* ..***... */
+ 0x38, /* ..***... */
+ 0x10, /* ...*.... */
+ 0xd6, /* **.*.**. */
+ 0xfe, /* *******. */
+ 0xd6, /* **.*.**. */
+ 0x10, /* ...*.... */
+ 0x38, /* ..***... */
+ 0x7c, /* .*****.. */
+ 0x7c, /* .*****.. */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* \06 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x10, /* ...*.... */
+ 0x38, /* ..***... */
+ 0x7c, /* .*****.. */
+ 0xfe, /* *******. */
+ 0xfe, /* *******. */
+ 0x54, /* .*.*.*.. */
+ 0x10, /* ...*.... */
+ 0x38, /* ..***... */
+ 0x7c, /* .*****.. */
+ 0x7c, /* .*****.. */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* \07 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x18, /* ...**... */
+ 0x3c, /* ..****.. */
+ 0x3c, /* ..****.. */
+ 0x18, /* ...**... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* \010 */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xe7, /* ***..*** */
+ 0xc3, /* **....** */
+ 0xc3, /* **....** */
+ 0xe7, /* ***..*** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+
+ /* \011 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x3c, /* ..****.. */
+ 0x66, /* .**..**. */
+ 0x42, /* .*....*. */
+ 0x42, /* .*....*. */
+ 0x66, /* .**..**. */
+ 0x3c, /* ..****.. */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* \012 */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xc3, /* **....** */
+ 0x99, /* *..**..* */
+ 0xbd, /* *.****.* */
+ 0xbd, /* *.****.* */
+ 0x99, /* *..**..* */
+ 0xc3, /* **....** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+
+ /* \013 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x1e, /* ...****. */
+ 0x0e, /* ....***. */
+ 0x1a, /* ...**.*. */
+ 0x30, /* ..**.... */
+ 0x78, /* .****... */
+ 0xcc, /* **..**.. */
+ 0xcc, /* **..**.. */
+ 0xcc, /* **..**.. */
+ 0xcc, /* **..**.. */
+ 0x78, /* .****... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* \014 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x3c, /* ..****.. */
+ 0x66, /* .**..**. */
+ 0x66, /* .**..**. */
+ 0x66, /* .**..**. */
+ 0x3c, /* ..****.. */
+ 0x18, /* ...**... */
+ 0x7e, /* .******. */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* \015 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x10, /* ...*.... */
+ 0x18, /* ...**... */
+ 0x14, /* ...*.*.. */
+ 0x14, /* ...*.*.. */
+ 0x14, /* ...*.*.. */
+ 0x10, /* ...*.... */
+ 0x10, /* ...*.... */
+ 0x30, /* ..**.... */
+ 0x70, /* .***.... */
+ 0x20, /* ..*..... */
Home |
Main Index |
Thread Index |
Old Index