rt-thread-official/rtgui/common/arial12font.c

229 lines
7.8 KiB
C
Raw Normal View History

/*
* File : arial16font.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date Author Notes
* 2010-01-21 Bernard first version
*/
#include <rtgui/font.h>
#ifdef RTGUI_USING_FONT12
const unsigned char arial12_font[]=
{
/*---char: ---*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
/*---char: ! ---*/
0x00,0x00,0x10,0x41,0x04,0x10,0x41,0x00,0x10,
/*---char: " ---*/
0x00,0x00,0x28,0xa2,0x80,0x00,0x00,0x00,0x00,
/*---char: # ---*/
0x00,0x00,0x05,0x17,0xf2,0x8a,0xfc,0xa5,0x14,
/*---char: $ ---*/
0x00,0x00,0x0e,0x55,0x45,0x0e,0x15,0x55,0x4e,
/*---char: % ---*/
0x00,0x00,0x0c,0x49,0x24,0xcd,0x04,0x20,0x84,
/*---char: & ---*/
0x00,0x00,0x06,0x24,0x92,0x8c,0x49,0x14,0x4e,
/*---char: ' ---*/
0x00,0x00,0x10,0x41,0x00,0x00,0x00,0x00,0x00,
/*---char: ( ---*/
0x00,0x00,0x04,0x20,0x84,0x10,0x41,0x04,0x08,
/*---char: ) ---*/
0x00,0x00,0x20,0x41,0x02,0x08,0x20,0x82,0x10,
/*---char: * ---*/
0x00,0x00,0x08,0xf8,0x85,0x00,0x00,0x00,0x00,
/*---char: + ---*/
0x00,0x00,0x00,0x00,0x41,0x1f,0x10,0x40,0x00,
/*---char: , ---*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,
/*---char: - ---*/
0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x00,0x00,
/*---char: . ---*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,
/*---char: / ---*/
0x00,0x00,0x08,0x21,0x04,0x10,0x41,0x08,0x20,
/*---char: 0 ---*/
0x00,0x00,0x0e,0x45,0x14,0x51,0x45,0x14,0x4e,
/*---char: 1 ---*/
0x00,0x00,0x04,0x31,0x41,0x04,0x10,0x41,0x04,
/*---char: 2 ---*/
0x00,0x00,0x0e,0x44,0x10,0x42,0x08,0x42,0x1f,
/*---char: 3 ---*/
0x00,0x00,0x0e,0x44,0x10,0x46,0x04,0x14,0x4e,
/*---char: 4 ---*/
0x00,0x00,0x02,0x18,0x62,0x8a,0x49,0xf0,0x82,
/*---char: 5 ---*/
0x00,0x00,0x0f,0x21,0x07,0x91,0x04,0x14,0x4e,
/*---char: 6 ---*/
0x00,0x00,0x0e,0x45,0x05,0x99,0x45,0x14,0x4e,
/*---char: 7 ---*/
0x00,0x00,0x1f,0x08,0x21,0x04,0x10,0x82,0x08,
/*---char: 8 ---*/
0x00,0x00,0x0e,0x45,0x14,0x4e,0x45,0x14,0x4e,
/*---char: 9 ---*/
0x00,0x00,0x0e,0x45,0x14,0x53,0x34,0x14,0x4e,
/*---char: : ---*/
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x10,
/*---char: ; ---*/
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x10,
/*---char: < ---*/
0x00,0x00,0x00,0x00,0x13,0x90,0x38,0x10,0x00,
/*---char: = ---*/
0x00,0x00,0x00,0x00,0x0f,0xc0,0x03,0xf0,0x00,
/*---char: > ---*/
0x00,0x00,0x00,0x01,0x03,0x81,0x39,0x00,0x00,
/*---char: ? ---*/
0x00,0x00,0x0e,0x45,0x10,0x42,0x10,0x40,0x04,
/*---char: @ ---*/
0x00,0x00,0x01,0x18,0x82,0x52,0x51,0x45,0x13,
/*---char: A ---*/
0x00,0x00,0x04,0x28,0xa2,0x91,0x7d,0x18,0x20,
/*---char: B ---*/
0x00,0x00,0x1f,0x41,0x04,0x1f,0x41,0x04,0x1f,
/*---char: C ---*/
0x00,0x00,0x07,0x21,0x04,0x10,0x41,0x02,0x07,
/*---char: D ---*/
0x00,0x00,0x1f,0x41,0x04,0x10,0x41,0x04,0x1f,
/*---char: E ---*/
0x00,0x00,0x1f,0x41,0x04,0x1f,0x41,0x04,0x1f,
/*---char: F ---*/
0x00,0x00,0x1f,0x41,0x04,0x1e,0x41,0x04,0x10,
/*---char: G ---*/
0x00,0x00,0x07,0x21,0x04,0x11,0x41,0x02,0x07,
/*---char: H ---*/
0x00,0x00,0x10,0x41,0x04,0x1f,0x41,0x04,0x10,
/*---char: I ---*/
0x00,0x00,0x10,0x41,0x04,0x10,0x41,0x04,0x10,
/*---char: J ---*/
0x00,0x00,0x02,0x08,0x20,0x82,0x0a,0x28,0x9c,
/*---char: K ---*/
0x00,0x00,0x10,0x41,0x14,0x94,0x69,0x14,0x10,
/*---char: L ---*/
0x00,0x00,0x10,0x41,0x04,0x10,0x41,0x04,0x1f,
/*---char: M ---*/
0x00,0x00,0x10,0x61,0x85,0x55,0x55,0x54,0x92,
/*---char: N ---*/
0x00,0x00,0x10,0x61,0x45,0x12,0x45,0x14,0x10,
/*---char: O ---*/
0x00,0x00,0x07,0x21,0x04,0x10,0x41,0x02,0x07,
/*---char: P ---*/
0x00,0x00,0x1f,0x41,0x04,0x1f,0x41,0x04,0x10,
/*---char: Q ---*/
0x00,0x00,0x07,0x21,0x04,0x10,0x41,0x32,0x07,
/*---char: R ---*/
0x00,0x00,0x1f,0x41,0x04,0x1f,0x45,0x04,0x10,
/*---char: S ---*/
0x00,0x00,0x0f,0x41,0x04,0x0f,0x01,0x04,0x0f,
/*---char: T ---*/
0x00,0x00,0x3f,0x10,0x41,0x04,0x10,0x41,0x04,
/*---char: U ---*/
0x00,0x00,0x10,0x41,0x04,0x10,0x41,0x02,0x07,
/*---char: V ---*/
0x00,0x00,0x20,0x81,0x14,0x51,0x28,0xa1,0x04,
/*---char: W ---*/
0x00,0x00,0x21,0x8a,0x24,0x94,0x51,0x42,0x08,
/*---char: X ---*/
0x00,0x00,0x20,0x45,0x12,0x84,0x29,0x14,0x60,
/*---char: Y ---*/
0x00,0x00,0x20,0x45,0x12,0x84,0x10,0x41,0x04,
/*---char: Z ---*/
0x00,0x00,0x1f,0x04,0x20,0x84,0x20,0x84,0x3f,
/*---char: [ ---*/
0x00,0x00,0x18,0x41,0x04,0x10,0x41,0x04,0x10,
/*---char: \ ---*/
0x00,0x00,0x20,0x81,0x04,0x10,0x41,0x02,0x08,
/*---char: ] ---*/
0x00,0x00,0x30,0x41,0x04,0x10,0x41,0x04,0x10,
/*---char: ^ ---*/
0x00,0x00,0x08,0x51,0x45,0x22,0x00,0x00,0x00,
/*---char: _ ---*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
/*---char: ` ---*/
0x00,0x00,0x10,0x20,0x00,0x00,0x00,0x00,0x00,
/*---char: a ---*/
0x00,0x00,0x00,0x00,0xe4,0x41,0x3d,0x14,0xcd,
/*---char: b ---*/
0x00,0x00,0x10,0x41,0x66,0x51,0x45,0x16,0x56,
/*---char: c ---*/
0x00,0x00,0x00,0x00,0xc4,0x90,0x41,0x04,0x8c,
/*---char: d ---*/
0x00,0x00,0x01,0x04,0xd4,0xd1,0x45,0x14,0x4f,
/*---char: e ---*/
0x00,0x00,0x00,0x00,0xe4,0x51,0x7d,0x04,0x4e,
/*---char: f ---*/
0x00,0x00,0x0c,0x43,0x84,0x10,0x41,0x04,0x10,
/*---char: g ---*/
0x00,0x00,0x00,0x00,0xd4,0xd1,0x45,0x14,0xcd,
/*---char: h ---*/
0x00,0x00,0x10,0x41,0x66,0x51,0x45,0x14,0x51,
/*---char: i ---*/
0x00,0x00,0x10,0x01,0x04,0x10,0x41,0x04,0x10,
/*---char: j ---*/
0x00,0x00,0x10,0x01,0x04,0x10,0x41,0x04,0x10,
/*---char: k ---*/
0x00,0x00,0x10,0x41,0x14,0x94,0x71,0x24,0x91,
/*---char: l ---*/
0x00,0x00,0x10,0x41,0x04,0x10,0x41,0x04,0x10,
/*---char: m ---*/
0x00,0x00,0x00,0x01,0x66,0x51,0x45,0x14,0x51,
/*---char: n ---*/
0x00,0x00,0x00,0x01,0x66,0x51,0x45,0x14,0x51,
/*---char: o ---*/
0x00,0x00,0x00,0x00,0xe4,0x51,0x45,0x14,0x4e,
/*---char: p ---*/
0x00,0x00,0x00,0x01,0x66,0x51,0x45,0x16,0x56,
/*---char: q ---*/
0x00,0x00,0x00,0x00,0xd4,0xd1,0x45,0x14,0xcd,
/*---char: r ---*/
0x00,0x00,0x00,0x01,0x46,0x10,0x41,0x04,0x10,
/*---char: s ---*/
0x00,0x00,0x00,0x00,0xe4,0x50,0x38,0x14,0x4e,
/*---char: t ---*/
0x00,0x00,0x10,0x43,0x84,0x10,0x41,0x04,0x18,
/*---char: u ---*/
0x00,0x00,0x00,0x01,0x14,0x51,0x45,0x14,0x4f,
/*---char: v ---*/
0x00,0x00,0x00,0x02,0x28,0x94,0x51,0x42,0x08,
/*---char: w ---*/
0x00,0x00,0x00,0x02,0x28,0x95,0x55,0x52,0x08,
/*---char: x ---*/
0x00,0x00,0x00,0x02,0x25,0x14,0x21,0x45,0x22,
/*---char: y ---*/
0x00,0x00,0x00,0x02,0x28,0x94,0x51,0x42,0x08,
/*---char: z ---*/
0x00,0x00,0x00,0x03,0xe1,0x04,0x21,0x04,0x3e,
/*---char: { ---*/
0x00,0x00,0x08,0x41,0x04,0x10,0x81,0x04,0x10,
/*---char: | ---*/
0x00,0x00,0x10,0x41,0x04,0x10,0x41,0x04,0x10,
/*---char: } ---*/
0x00,0x00,0x10,0x20,0x82,0x08,0x10,0x82,0x08,
/*---char: ~ ---*/
0x00,0x00,0x00,0x00,0x00,0x0c,0x4c,0x00,0x00
};
struct rtgui_font_bitmap arial12 =
{
(const rt_uint8_t*)arial12_font, /* bmp */
6, /* width */
12, /* height */
32, /* first char */
127 /* last char */
};
struct rtgui_font rtgui_font_arial12 =
{
"arial", /* family */
12, /* height */
1, /* refer count */
&bmp_font_engine, /* font engine */
&arial12, /* font private data */
};
#endif