OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [net/] [vnc_server/] [current/] [src/] [fonts/] [symbol.c] - Blame information for rev 792

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
/*
2
 * Originally from BOGL - Ben's Own Graphics Library.
3
 * Written by Ben Pfaff <pfaffben@debian.org>.
4
 */
5
#include "device.h"
6
 
7
/* Symbol font definition. */
8
 
9
MWIMAGEBITS symbol_bits[] = {
10
/* Character 0x00:
11
   +--------------------------------+
12
   |                                |
13
   |                                |
14
   |*******                         |
15
   |*     *                         |
16
   |*     *                         |
17
   |*     *                         |
18
   |*     *                         |
19
   |*     *                         |
20
   |*******                         |
21
   |                                |
22
   |                                |
23
   |                                |
24
   +--------------------------------+ */
25
0x0000,
26
0x0000,
27
0xfe00,
28
0x8200,
29
0x8200,
30
0x8200,
31
0x8200,
32
0x8200,
33
0xfe00,
34
0x0000,
35
0x0000,
36
0x0000,
37
 
38
/* Character 0x01:
39
   +--------------------------------+
40
   |                                |
41
   |                                |
42
   |*******                         |
43
   |*     *                         |
44
   |* * * *                         |
45
   |*  *  *                         |
46
   |* * * *                         |
47
   |*     *                         |
48
   |*******                         |
49
   |                                |
50
   |                                |
51
   |                                |
52
   +--------------------------------+ */
53
0x0000,
54
0x0000,
55
0xfe00,
56
0x8200,
57
0xaa00,
58
0x9200,
59
0xaa00,
60
0x8200,
61
0xfe00,
62
0x0000,
63
0x0000,
64
0x0000,
65
 
66
/* Character 0x02:
67
   +--------------------------------+
68
   |                                |
69
   |                                |
70
   |  *                             |
71
   | ***                            |
72
   |*****                           |
73
   |  *                             |
74
   |  *                             |
75
   |  *                             |
76
   |  *                             |
77
   |                                |
78
   |                                |
79
   |                                |
80
   +--------------------------------+ */
81
0x0000,
82
0x0000,
83
0x2000,
84
0x7000,
85
0xf800,
86
0x2000,
87
0x2000,
88
0x2000,
89
0x2000,
90
0x0000,
91
0x0000,
92
0x0000,
93
 
94
/* Character 0x03:
95
   +--------------------------------+
96
   |                                |
97
   |                                |
98
   |  *                             |
99
   |  *                             |
100
   |  *                             |
101
   |  *                             |
102
   |*****                           |
103
   | ***                            |
104
   |  *                             |
105
   |                                |
106
   |                                |
107
   |                                |
108
   +--------------------------------+ */
109
0x0000,
110
0x0000,
111
0x2000,
112
0x2000,
113
0x2000,
114
0x2000,
115
0xf800,
116
0x7000,
117
0x2000,
118
0x0000,
119
0x0000,
120
0x0000,
121
 
122
};
123
 
124
static unsigned short symbol_offset[] = {
125
  0,     /* 0x00 */
126
  12,   /* 0x01 */
127
  24,   /* 0x02 */
128
  36,   /* 0x03 */
129
};
130
 
131
static unsigned char symbol_width[] = {
132
  8,    /* 0x00 */
133
  8,    /* 0x01 */
134
  5,    /* 0x02 */
135
  5,    /* 0x03 */
136
};
137
 
138
MWCFONT font_symbol = {
139
        "symbol",
140
        8,
141
        12,
142
        9,
143
        0,
144
        4,
145
        symbol_bits,
146
        symbol_offset,
147
        symbol_width,
148
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.