/* $Id: font_6x8.h,v 1.3 2005/05/08 04:32:44 reinelt Exp $ * * 6x8 font * * Copyright (C) 1999, 2000, 2004 Michael Reinelt * Copyright (C) 2004 The LCD4Linux Team * * This file is part of LCD4Linux. * * LCD4Linux is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * LCD4Linux is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * * $Log: font_6x8.h,v $ * Revision 1.3 2005/05/08 04:32:44 reinelt * CodingStyle added and applied * * Revision 1.2 2005/01/18 06:30:23 reinelt * added (C) to all copyright statements * * Revision 1.1 2004/02/15 21:43:43 reinelt * T6963 driver nearly finished * framework for graphic displays done * i2c_sensors patch from Xavier * some more old generation files removed * */ #define ______ 0x00 #define _____O 0x01 #define ____O_ 0x02 #define ____OO 0x03 #define ___O__ 0x04 #define ___O_O 0x05 #define ___OO_ 0x06 #define ___OOO 0x07 #define __O___ 0x08 #define __O__O 0x09 #define __O_O_ 0x0a #define __O_OO 0x0b #define __OO__ 0x0c #define __OO_O 0x0d #define __OOO_ 0x0e #define __OOOO 0x0f #define _O____ 0x10 #define _O___O 0x11 #define _O__O_ 0x12 #define _O__OO 0x13 #define _O_O__ 0x14 #define _O_O_O 0x15 #define _O_OO_ 0x16 #define _O_OOO 0x17 #define _OO___ 0x18 #define _OO__O 0x19 #define _OO_O_ 0x1a #define _OO_OO 0x1b #define _OOO__ 0x1c #define _OOO_O 0x1d #define _OOOO_ 0x1e #define _OOOOO 0x1f unsigned char Font_6x8[256][8] = { [0x20] {______, ______, ______, ______, ______, ______, ______, ______}, [0x21] {___O__, ___O__, ___O__, ___O__, ______, ______, ___O__, ______}, [0x22] {__O_O_, __O_O_, __O_O_, ______, ______, ______, ______, ______}, [0x23] {__O_O_, __O_O_, _OOOOO, __O_O_, _OOOOO, __O_O_, __O_O_, ______}, [0x24] {___O__, __OOOO, _O_O__, __OOO_, ___O_O, _OOOO_, ___O__, ______}, [0x25] {_OO___, _OO__O, ____O_, ___O__, __O___, _O__OO, ____OO, ______}, [0x26] {__OO__, _O__O_, _O_O__, __O___, _O_O_O, _O__O_, __OO_O, ______}, [0x27] {__OO__, ___O__, __O___, ______, ______, ______, ______, ______}, [0x28] {____O_, ___O__, __O___, __O___, __O___, ___O__, ____O_, ______}, [0x29] {__O___, ___O__, ____O_, ____O_, ____O_, ___O__, __O___, ______}, [0x2a] {______, ___O__, _O_O_O, __OOO_, _O_O_O, ___O__, ______, ______}, [0x2b] {______, ___O__, ___O__, _OOOOO, ___O__, ___O__, ______, ______}, [0x2c] {______, ______, ______, ______, __OO__, ___O__, __O___, ______}, [0x2d] {______, ______, ______, _OOOOO, ______, ______, ______, ______}, [0x2e] {______, ______, ______, ______, ______, __OO__, __OO__, ______}, [0x2f] {______, _____O, ____O_, ___O__, __O___, _O____, ______, ______}, [0x30] {__OOO_, _O___O, _O__OO, _O_O_O, _OO__O, _O___O, __OOO_, ______}, [0x31] {___O__, __OO__, ___O__, ___O__, ___O__, ___O__, __OOO_, ______}, [0x32] {__OOO_, _O___O, _____O, ____O_, ___O__, __O___, _OOOOO, ______}, [0x33] {_OOOOO, ____O_, ___O__, ____O_, _____O, _O___O, __OOO_, ______}, [0x34] {____O_, ___OO_, __O_O_, _O__O_, _OOOOO, ____O_, ____O_, ______}, [0x35] {_OOOOO, _O____, _O____, _OOOO_, _____O, _O___O, __OOO_, ______}, [0x36] {___OO_, __O___, _O____, _OOOO_, _O___O, _O___O, __OOO_, ______}, [0x37] {_OOOOO, _____O, ____O_, ___O__, __O___, __O___, __O___, ______}, [0x38] {__OOO_, _O___O, _O___O, __OOO_, _O___O, _O___O, __OOO_, ______}, [0x39] {__OOO_, _O___O, _O___O, __OOOO, _____O, ____O_, __OO__, ______}, [0x3a] {______, __OO__, __OO__, ______, __OO__, __OO__, ______, ______}, [0x3b] {______, __OO__, __OO__, ______, __OO__, ___O__, __O___, ______}, [0x3c] {____O_, ___O__, __O___, _O____, __O___, ___O__, ____O_, ______}, [0x3d] {______, ______, _OOOOO, ______, _OOOOO, ______, ______, ______}, [0x3e] {_O____, __O___, ___O__, ____O_, ___O__, __O___, _O____, ______}, [0x3f] {__OOO_, _O___O, _____O, ____O_, ___O__, ______, ___O__, ______}, [0x40] {__OOO_, _O___O, _____O, __OO_O, _O_O_O, _O_O_O, __OOO_, ______}, [0x41] {__OOO_, _O___O, _O___O, _O___O, _OOOOO, _O___O, _O___O, ______}, [0x42] {_OOOO_, _O___O, _O___O, _OOOO_, _O___O, _O___O, _OOOO_, ______}, [0x43] {__OOO_, _O___O, _O____, _O____, _O____, _O___O, __OOO_, ______}, [0x44] {_OOO__, _O__O_, _O___O, _O___O, _O___O, _O__O_, _OOO__, ______}, [0x45] {_OOOOO, _O____, _O____, _OOOO_, _O____, _O____, _OOOOO, ______}, [0x46] {_OOOOO, _O____, _O____, _OOOO_, _O____, _O____, _O____, ______}, [0x47] {__OOO_, _O___O, _O____, _O_OOO, _O___O, _O___O, __OOOO, ______}, [0x48] {_O___O, _O___O, _O___O, _OOOOO, _O___O, _O___O, _O___O, ______}, [0x49] {__OOO_, ___O__, ___O__, ___O__, ___O__, ___O__, __OOO_, ______}, [0x4a] {___OOO, ____O_, ____O_, ____O_, ____O_, _O__O_, __OO__, ______}, [0x4b] {_O___O, _O__O_, _O_O__, _OO___, _O_O__, _O__O_, _O___O, ______}, [0x4c] {_O____, _O____, _O____, _O____, _O____, _O____, _OOOOO, __
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
#
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
# Written by Gary V. Vaughan, 2004
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.

# serial 6 ltsugar.m4

# This is to help aclocal find these macros, as it can't see m4_define.
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])


# lt_join(SEP, ARG1, [ARG2...])
# -----------------------------
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
# associated separator.
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
# versions in m4sugar had bugs.
m4_define([lt_join],
[m4_if([$#], [1], [],
       [$#], [2], [[$2]],
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
m4_define([_lt_join],
[m4_if([$#$2], [2], [],
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])


# lt_car(LIST)
# lt_cdr(LIST)
# ------------
# Manipulate m4 lists.
# These macros are necessary as long as will still need to support
# Autoconf-2.59 which quotes differently.
m4_define([lt_car], [[$1]])
m4_define([lt_cdr],
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
       [$#], 1, [],
       [m4_dquote(m4_shift($@))])])
m4_define([lt_unquote], $1)


# lt_append(MACRO-NAME, STRING, [SEPARATOR])
# ------------------------------------------
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
# Note that neither SEPARATOR nor STRING are expanded; they are appended
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
# than defined and empty).
#
# This macro is needed until we can rely on Autoconf 2.62, since earlier
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
m4_define([lt_append],
[m4_define([$1],
	   m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])



# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
# ----------------------------------------------------------
# Produce a SEP delimited list of all paired combinations of elements of
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
# has the form PREFIXmINFIXSUFFIXn.
# Needed until we can rely on m4_combine added in Autoconf 2.62.
m4_define([lt_combine],
[m4_if(m4_eval([$# > 3]), [1],
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
[[m4_foreach([_Lt_prefix], [$2],
	     [m4_foreach([_Lt_suffix],
		]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
	[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])


# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
# -----------------------------------------------------------------------
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
m4_define([lt_if_append_uniq],
[m4_ifdef([$1],
	  [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
		 [lt_append([$1], [$2], [$3])$4],
		 [$5])],
	  [lt_append([$1], [$2], [$3])$4])])


# lt_dict_add(DICT, KEY, VALUE)
# -----------------------------
m4_define([lt_dict_add],
[m4_define([$1($2)], [$3])])


# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
# --------------------------------------------
m4_define([lt_dict_add_subkey],
[m4_define([$1($2:$3)], [$4])])


# lt_dict_fetch(DICT, KEY, [SUBKEY])
# ----------------------------------
m4_define([lt_dict_fetch],
[m4_ifval([$3],
	m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])


# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
# -----------------------------------------------------------------
m4_define([lt_if_dict_fetch],
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
	[$5],
    [$6])])


# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
# --------------------------------------------------------------
m4_define([lt_dict_filter],
[m4_if([$5], [], [],
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
])