-
Notifications
You must be signed in to change notification settings - Fork 1
/
font.c
35 lines (30 loc) · 5.5 KB
/
font.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
This program 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 of the License, or
(at your option) any later version.
This program 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.
*/
#define FNT_CHAR_WIDTH 8
#define FNT_CHAR_HEIGHT 8
#define FNT_CHARS 96
#define FNT_MIN_CHAR 32
#define FNT_MAX_CHAR FNT_MIN_CHAR+FNT_CHARS
#define FNT_BAD_CHAR 95
static byte bFont[768] = {
0x00, 0x18, 0x6C, 0x6C, 0x18, 0x4C, 0x70, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x7C, 0x18, 0x7C, 0x7C, 0xC6, 0xFE, 0x7C, 0xFE, 0x7C, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x7C, 0x7C, 0xFC, 0x7C, 0xFC, 0xFE, 0xFE, 0x7C, 0xC6, 0x3C, 0x06, 0xC6, 0xC0, 0xC6, 0xC6, 0x7C, 0xFC, 0x7C, 0xFC, 0x7C, 0x7E, 0xC6, 0xC6, 0xC6, 0xC6, 0x66, 0xFE, 0x38, 0xC0, 0x1C, 0x38, 0x00, 0x18, 0x00, 0xC0, 0x00, 0x06, 0x00, 0x3C, 0x00, 0xC0, 0x18, 0x18, 0xC0, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00,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00, 0x7E, 0xFC, 0x7E, 0x7E, 0x7C, 0x60, 0x06, 0xC6, 0x18, 0x18, 0xC6, 0x3C, 0xD6, 0xC6, 0x7C, 0xFC, 0x7E, 0xC0, 0xFC, 0x3C, 0x7C, 0x38, 0x7C, 0x66, 0x06, 0xFE, 0x0C, 0x18, 0x30, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};