Add functions to check diacr/func existance
[platform/upstream/kbd.git] / src / psffontop.h
1 /* psffontop.h */
2
3 #ifndef _PSFFONTOP_H
4 #define _PSFFONTOP_H
5
6 /* Maximum font size that we try to handle */
7 #define MAXFONTSIZE 65536
8
9 typedef unsigned int unicode;
10
11 struct unicode_seq {
12         struct unicode_seq *next;
13         struct unicode_seq *prev;
14         unicode uc;
15 };
16
17 struct unicode_list {
18         struct unicode_list *next;
19         struct unicode_list *prev;
20         struct unicode_seq *seq;
21 };
22
23 extern int readpsffont(FILE *fontf, char **allbufp, int *allszp,
24                        char **fontbufp, int *fontszp,
25                        int *fontwidthp, int *fontlenp, int fontpos0,
26                        struct unicode_list **uclistheadsp);
27
28 extern int writepsffont(FILE *ofil, char *fontbuf,
29                          int width, int height, size_t fontlen, int psftype,
30                          struct unicode_list *uclistheads);
31
32 #define WPSFH_HASTAB    1
33 #define WPSFH_HASSEQ    2
34 extern void writepsffontheader(FILE *ofil, 
35                                int width, int height, int fontlen,
36                                int *psftype, int flags);
37
38 extern void appendunicode(FILE *fp, unsigned int uc, int utf8);
39 extern void appendseparator(FILE *fp, int seq, int utf8);
40
41 #endif  /* _PSFFONTOP_H */