Add pancyrillic font
[platform/upstream/kbd.git] / src / kdfontop.h
1 #ifndef _KDFONTOP_H
2 #define _KDFONTOP_H
3 /*
4  * Read kernel font into BUF with room for COUNT 32x32 glyphs.
5  * Return 0 on success -1 on failure.
6  * Sets number of glyphs in COUNT, glyph size in WIDTH and HEIGHT.
7  */
8 extern int getfont(int fd, unsigned char *buf, int *count, int *width, int *height);
9
10 /*
11  * Load kernel font of width WIDTH and pointsize HEIGHT from BUF
12  * with length COUNT.
13  * Return 0 on success, -1 on failure.
14  */
15 extern int putfont(int fd, unsigned char *buf, int count, int width, int height);
16
17 /*
18  * Find the maximum height of nonblank pixels
19  * (in the ((WIDTH+7)/8)*32*COUNT bytes of BUF).
20  */
21 extern int font_charheight(unsigned char *buf, int count, int width);
22
23 /*
24  * Find the size of the kernel font.
25  */
26 extern int getfontsize(int fd);
27
28 /*
29  * Restore font (doesn't work).
30  */
31 extern int restorefont(int fd);
32
33 #endif /* _KDFONTOP_H */