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 VT220 8x8 font with ISO-8859-1 chars whic...
details: https://anonhg.NetBSD.org/src/rev/18254dcb2665
branches: trunk
changeset: 756542:18254dcb2665
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu Jul 22 12:48:00 2010 +0000
description:
Add VT220 8x8 font with ISO-8859-1 chars which is converted from
sys/arch/atari/dev/font_8x8.c.
diffstat:
sys/dev/wsfont/files.wsfont | 3 +-
sys/dev/wsfont/vt220iso8x8.h | 2623 ++++++++++++++++++++++++++++++++++++++++++
sys/dev/wsfont/wsfont.c | 22 +-
3 files changed, 2643 insertions(+), 5 deletions(-)
diffs (truncated from 2709 to 300 lines):
diff -r f3af391924bf -r 18254dcb2665 sys/dev/wsfont/files.wsfont
--- a/sys/dev/wsfont/files.wsfont Thu Jul 22 03:19:02 2010 +0000
+++ b/sys/dev/wsfont/files.wsfont Thu Jul 22 12:48:00 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.wsfont,v 1.15 2007/02/02 02:10:24 ober Exp $
+# $NetBSD: files.wsfont,v 1.16 2010/07/22 12:48:00 tsutsui Exp $
defpseudo wsfont
@@ -14,6 +14,7 @@
FONT_VT220L8x8
FONT_VT220L8x10
FONT_VT220L8x16
+ FONT_VT220ISO8x8
FONT_VT220ISO8x16
FONT_VT220KOI8x10_KOI8_R
FONT_VT220KOI8x10_KOI8_U
diff -r f3af391924bf -r 18254dcb2665 sys/dev/wsfont/vt220iso8x8.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/dev/wsfont/vt220iso8x8.h Thu Jul 22 12:48:00 2010 +0000
@@ -0,0 +1,2623 @@
+/* $NetBSD: vt220iso8x8.h,v 1.1 2010/07/22 12:48:00 tsutsui Exp $ */
+
+/*
+ * Copyright (c) 1992, 1993, 1994 Hellmuth Michaelis and Joerg Wunsch
+ *
+ * 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.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by
+ * Hellmuth Michaelis and Joerg Wunsch
+ * 4. The name authors may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``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 AUTHORS 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.
+ */
+
+/*
+ * Translated into compiler and human readable for for the Atari-TT port of
+ * NetBSD by Leo Weppelman.
+ *
+ * Reorganized and edited some chars to fit the iso-8859-1 fontset
+ * by Thomas Gerner
+ *
+ * Translated into wsfont format from sys/arch/atari/dev/font_8x8.c rev 1.4
+ * by Izumi Tsutsui.
+ */
+
+static u_char vt220iso8x8_data[];
+
+static struct wsdisplay_font vt220iso8x8 = {
+ "vt220iso8x8", /* typeface name */
+ ' ', /* firstchar */
+ 0xff - ' ' + 1, /* numchars */
+ WSDISPLAY_FONTENC_ISO, /* encoding */
+ 8, /* width */
+ 8, /* height */
+ 1, /* stride */
+ WSDISPLAY_FONTORDER_L2R, /* bit order */
+ WSDISPLAY_FONTORDER_L2R, /* byte order */
+ vt220iso8x8_data /* data */
+};
+
+static u_char vt220iso8x8_data[] = {
+#if 0
+ /* 0x00 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* 0x01 */
+ 0x18, /* ...**... */
+ 0x3c, /* ..****.. */
+ 0x7e, /* .******. */
+ 0xff, /* ******** */
+ 0xff, /* ******** */
+ 0x7e, /* .******. */
+ 0x3c, /* ..****.. */
+ 0x18, /* ...**... */
+
+ /* 0x02 */
+ 0x5a, /* .*.**.*. */
+ 0x99, /* *..**..* */
+ 0x42, /* .*....*. */
+ 0x99, /* *..**..* */
+ 0x5a, /* .*.**.*. */
+ 0x81, /* *......* */
+ 0x5a, /* .*.**.*. */
+ 0x99, /* *..**..* */
+
+ /* 0x03 */
+ 0x44, /* .*...*.. */
+ 0x44, /* .*...*.. */
+ 0x7c, /* .*****.. */
+ 0x44, /* .*...*.. */
+ 0x3e, /* ..*****. */
+ 0x08, /* ....*... */
+ 0x08, /* ....*... */
+ 0x08, /* ....*... */
+
+ /* 0x04 */
+ 0x7c, /* .*****.. */
+ 0x40, /* .*...... */
+ 0x78, /* .****... */
+ 0x40, /* .*...... */
+ 0x3e, /* ..*****. */
+ 0x20, /* ..*..... */
+ 0x3c, /* ..****.. */
+ 0x20, /* ..*..... */
+
+ /* 0x05 */
+ 0x3c, /* ..****.. */
+ 0x40, /* .*...... */
+ 0x40, /* .*...... */
+ 0x3c, /* ..****.. */
+ 0x3c, /* ..****.. */
+ 0x22, /* ..*...*. */
+ 0x3c, /* ..****.. */
+ 0x26, /* ..*..**. */
+
+ /* 0x06 */
+ 0x40, /* .*...... */
+ 0x40, /* .*...... */
+ 0x40, /* .*...... */
+ 0x7c, /* .*****.. */
+ 0x3e, /* ..*****. */
+ 0x20, /* ..*..... */
+ 0x3c, /* ..****.. */
+ 0x20, /* ..*..... */
+
+ /* 0x07 */
+ 0x38, /* ..***... */
+ 0x6c, /* .**.**.. */
+ 0x6c, /* .**.**.. */
+ 0x38, /* ..***... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* 0x08 */
+ 0x30, /* ..**.... */
+ 0x30, /* ..**.... */
+ 0xfc, /* ******.. */
+ 0x30, /* ..**.... */
+ 0x30, /* ..**.... */
+ 0x00, /* ........ */
+ 0xfc, /* ******.. */
+ 0x00, /* ........ */
+
+ /* 0x09 */
+ 0x64, /* .**..*.. */
+ 0x54, /* .*.*.*.. */
+ 0x4c, /* .*..**.. */
+ 0x44, /* .*...*.. */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x20, /* ..*..... */
+ 0x3e, /* ..*****. */
+
+ /* 0x0A */
+ 0x44, /* .*...*.. */
+ 0x44, /* .*...*.. */
+ 0x28, /* ..*.*... */
+ 0x10, /* ...*.... */
+ 0x3e, /* ..*****. */
+ 0x08, /* ....*... */
+ 0x08, /* ....*... */
+ 0x08, /* ....*... */
+
+ /* 0x0B */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0xf8, /* *****... */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* 0x0C */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0xf8, /* *****... */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+
+ /* 0x0D */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x1f, /* ...***** */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+
+ /* 0x0E */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x1f, /* ...***** */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* 0x0F */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0xff, /* ******** */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+
+ /* 0x10 */
+ 0xff, /* ******** */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* 0x11 */
+ 0x00, /* ........ */
+ 0xff, /* ******** */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* 0x12 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0xff, /* ******** */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* 0x13 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0xff, /* ******** */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+
+ /* 0x14 */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0x00, /* ........ */
+ 0xff, /* ******** */
+
+ /* 0x15 */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
+ 0x1f, /* ...***** */
+ 0x18, /* ...**... */
+ 0x18, /* ...**... */
Home |
Main Index |
Thread Index |
Old Index