summaryrefslogtreecommitdiffstats
path: root/include/linux/font.h
blob: b49f44f1fe27a90161be860d61f116f709263d87 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
 * Font description structures
 *
 * Copyright (C) 2019  Patrick McDermott
 *
 * This file is part of fbcon2png.
 *
 * fbcon2png 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.
 *
 * fbcon2png 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 fbcon2png.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef LINUX_FONT_H
#define LINUX_FONT_H

struct font_desc {
	int                  idx;
	const char          *name;
	int                  width;
	int                  height;
	const unsigned char *data;
	int                  pref;
};

#define VGA8x8_IDX                   0
#define VGA8x16_IDX                  1
#define VGA6x11_IDX                  2
#define FONT7x14_IDX                 3
#define SUN8x16_IDX                  4
#define SUN12x22_IDX                 5
#define FONT10x18_IDX                6
#define ACORN8x8_IDX                 7
#define PEARL8x8_IDX                 8
#define MINI4x6_IDX                  9
#define FONT6x10_IDX                10
#define MPLUS_1MN_MEDIUM_10x14_IDX  11
#define MPLUS_1MN_REGULAR_12x17_IDX 12
#define MPLUS_1MN_REGULAR_14x19_IDX 13
#define MPLUS_1MN_REGULAR_16x22_IDX 14

extern const struct font_desc font_vga_8x8;
extern const struct font_desc font_vga_8x16;
extern const struct font_desc font_vga_6x11;
extern const struct font_desc font_7x14;
extern const struct font_desc font_sun_8x16;
extern const struct font_desc font_sun_12x22;
extern const struct font_desc font_10x18;
extern const struct font_desc font_acorn_8x8;
extern const struct font_desc font_pearl_8x8;
extern const struct font_desc font_mini_4x6;
extern const struct font_desc font_6x10;
extern const struct font_desc font_mplus_1mn_medium_10x14;
extern const struct font_desc font_mplus_1mn_regular_12x17;
extern const struct font_desc font_mplus_1mn_regular_14x19;
extern const struct font_desc font_mplus_1mn_regular_16x22;

#endif  /* LINUX_FONT_H */