|
Packit Service |
50ad14 |
#ifndef _KDFONTOP_H
|
|
Packit Service |
50ad14 |
#define _KDFONTOP_H
|
|
Packit Service |
50ad14 |
/*
|
|
Packit Service |
50ad14 |
* Read kernel font into BUF with room for COUNT 32x32 glyphs.
|
|
Packit Service |
50ad14 |
* Return 0 on success -1 on failure.
|
|
Packit Service |
50ad14 |
* Sets number of glyphs in COUNT, glyph size in WIDTH and HEIGHT.
|
|
Packit Service |
50ad14 |
*/
|
|
Packit Service |
50ad14 |
extern int getfont(int fd, unsigned char *buf, int *count, int *width, int *height);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
/*
|
|
Packit Service |
50ad14 |
* Load kernel font of width WIDTH and pointsize HEIGHT from BUF
|
|
Packit Service |
50ad14 |
* with length COUNT.
|
|
Packit Service |
50ad14 |
* Return 0 on success, -1 on failure.
|
|
Packit Service |
50ad14 |
*/
|
|
Packit Service |
50ad14 |
extern int putfont(int fd, unsigned char *buf, int count, int width, int height);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
/*
|
|
Packit Service |
50ad14 |
* Find the maximum height of nonblank pixels
|
|
Packit Service |
50ad14 |
* (in the ((WIDTH+7)/8)*32*COUNT bytes of BUF).
|
|
Packit Service |
50ad14 |
*/
|
|
Packit Service |
50ad14 |
extern int font_charheight(unsigned char *buf, int count, int width);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
/*
|
|
Packit Service |
50ad14 |
* Find the size of the kernel font.
|
|
Packit Service |
50ad14 |
*/
|
|
Packit Service |
50ad14 |
extern int getfontsize(int fd);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
/*
|
|
Packit Service |
50ad14 |
* Restore font (doesn't work).
|
|
Packit Service |
50ad14 |
*/
|
|
Packit Service |
50ad14 |
extern int restorefont(int fd);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
#endif /* _KDFONTOP_H */
|