Debian Codegraph @

texk/dvipdfm-x/agl.h

raw
1 /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
2
3 Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata,
4 the dvipdfmx project team.
5
6 Copyright (C) 1998, 1999 by Mark A. Wicks <[email protected]>
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21 */
22
23 #ifndef _AGL_H_
24 #define _AGL_H_
25
26 #define AGL_DEFAULT_LISTFILE "glyphlist.txt"
27 #define AGL_PREDEF_LISTFILE "pdfglyphlist.txt"
28 #define AGL_EXTRA_LISTFILE "texglyphlist.txt"
29
30 #define AGL_MAX_UNICODES 16
31 struct agl_name {
32 char *name;
33 char *suffix;
34 int n_components;
35 int32_t unicodes[AGL_MAX_UNICODES];
36 struct agl_name *alternate;
37 int is_predef;
38 };
39 typedef struct agl_name agl_name;
40
41 extern char *agl_chop_suffix (const char *glyphname, char **suffix);
42
43 extern int32_t agl_sput_UTF16BE (const char *name,
44 unsigned char **dstpp,
45 unsigned char *limptr, int *num_fails);
46
47 extern int agl_get_unicodes (const char *glyphstr,
48 int32_t *unicodes, int max_uncodes);
49
50 extern int agl_name_is_unicode (const char *glyphname);
51 extern int32_t agl_name_convert_unicode (const char *glyphname);
52
53 extern const char *agl_suffix_to_otltag (const char *suffix);
54
55 extern agl_name *agl_lookup_list (const char *glyphname);
56
57 #if 0
58 extern int agl_select_listfile (const char *mapfile);
59 #endif
60
61 extern void agl_init_map (void);
62 extern void agl_close_map (void);
63
64 #endif /* _AGL_H_ */