2 * font.h -- `Soft' font definitions
4 * Created 1995 by Geert Uytterhoeven
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file COPYING in the main directory of this archive
14 #include <linux/types.h>
26 #define PEARL8x8_IDX 2
28 #define FONT7x14_IDX 4
29 #define FONT10x18_IDX 5
31 #define SUN12x22_IDX 7
32 #define ACORN8x8_IDX 8
34 #define FONT6x10_IDX 10
35 #define TER16x32_IDX 11
37 extern const struct font_desc font_vga_8x8,
50 /* Find a font with a specific name */
52 extern const struct font_desc *find_font(const char *name);
54 /* Get the default font for a specific screen size */
56 extern const struct font_desc *get_default_font(int xres, int yres,
57 u32 font_w, u32 font_h);
59 /* Max. length for the name of a predefined font */
60 #define MAX_FONT_NAME 32
62 /* Extra word getters */
63 #define REFCOUNT(fd) (((int *)(fd))[-1])
64 #define FNTSIZE(fd) (((int *)(fd))[-2])
65 #define FNTCHARCNT(fd) (((int *)(fd))[-3])
66 #define FNTSUM(fd) (((int *)(fd))[-4])
68 #define FONT_EXTRA_WORDS 4
71 unsigned int extra[FONT_EXTRA_WORDS];
72 const unsigned char data[];
75 #endif /* _VIDEO_FONT_H */