1 #ifndef X_DISPLAY_MISSING
2 # include <FSlib.h>
3
4 struct fs_font {
5 Font font;
6 FSXFontInfoHeader fontHeader;
7 FSPropInfo propInfo;
8 FSPropOffset *propOffsets;
9 unsigned char *propData;
10
11 FSXCharInfo *extents;
12 FSOffset *offsets;
13 unsigned char *glyphs;
14
15 int maxenc,width,height;
16 FSXCharInfo **eindex;
17 unsigned char **gindex;
18 };
19
20 #else
21
22 typedef struct _FSXCharInfo {
23 short left;
24 short right;
25 short width;
26 short ascent;
27 short descent;
28 //unsigned short attributes;
29 } FSXCharInfo;
30
31 typedef struct _FSXFontInfoHeader {
32 //int flags;
33 //FSRange char_range;
34 //unsigned draw_direction;
35 //FSChar2b default_char;
36 FSXCharInfo min_bounds;
37 FSXCharInfo max_bounds;
38 short font_ascent;
39 short font_descent;
40 } FSXFontInfoHeader;
41
42 struct fs_font {
43 FSXFontInfoHeader fontHeader;
44 //unsigned char *propData;
45 FSXCharInfo *extents;
46 unsigned char *glyphs;
47 int maxenc,width,height;
48 FSXCharInfo **eindex;
49 unsigned char **gindex;
50 };
51
52 #endif
53
54 /* ------------------------------------------------------------------ */
55
56 int fs_init_fb(int white8);
57 void fs_render_fb(unsigned char *ptr, int pitch,
58 FSXCharInfo *charInfo, unsigned char *data);
59 int fs_puts(struct fs_font *f, unsigned int x, unsigned int y,
60 unsigned char *str);
61 int fs_textwidth(struct fs_font *f, unsigned char *str);
62 void fs_render_tty(FSXCharInfo *charInfo, unsigned char *data);
63
64 #ifndef X_DISPLAY_MISSING
65 int fs_connect(char *servername);
66 struct fs_font* fs_open(char *pattern);
67 #endif
68 struct fs_font* fs_consolefont(char **filename);
69 void fs_free(struct fs_font *f);
70
|
This page was automatically generated by the
LXR engine.
|