Debian Codegraph @

texk/xdvipsk/otflib/dpxfile.h

raw
1 /* This is xdvipsk, an eXtended version of dvips(k) by Tomas Rokicki.
2
3 Copyright (C) 2016 by VTeX Ltd (www.vtex.lt),
4 the xdvipsk project team - Sigitas Tolusis and Arunas Povilaitis.
5
6 Program original code copyright (C) 2007-2014 by Jin-Hwan Cho and
7 Shunsaku Hirata, the dvipdfmx project team.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
22 */
23
24 #ifndef _DPXFILE_H_
25 #define _DPXFILE_H_
26
27 #define DPX_CONFIG_FILE "dvipdfmx.cfg"
28
29 typedef enum {
30 DPX_RES_TYPE_FONTMAP = 0,
31
32 DPX_RES_TYPE_T1FONT,
33 DPX_RES_TYPE_TTFONT,
34 DPX_RES_TYPE_OTFONT,
35 DPX_RES_TYPE_PKFONT,
36 DPX_RES_TYPE_DFONT,
37
38 DPX_RES_TYPE_ENC,
39 DPX_RES_TYPE_CMAP,
40 DPX_RES_TYPE_SFD,
41 DPX_RES_TYPE_AGL,
42
43 DPX_RES_TYPE_ICCPROFILE,
44
45 DPX_RES_TYPE_BINARY,
46 DPX_RES_TYPE_TEXT
47 } dpx_res_type;
48
49 #include "mfileio.h"
50 extern FILE *dpx_open_file (const char *filename, dpx_res_type type);
51
52 extern char * dpx_find_type1_file (const char *filename);
53 extern char * dpx_find_truetype_file (const char *filename);
54 extern char * dpx_find_opentype_file (const char *filename);
55 extern char * dpx_find_dfont_file (const char *filename);
56
57 #define DPXFOPEN(n,t) dpx_open_file((const char *)(n),(t))
58 #define DPXFCLOSE(f) MFCLOSE((f))
59
60 extern int keep_cache;
61 #endif /* _DPXFILE_H_ */