Debian Codegraph @

texk/dvipdfm-x/dpxfile.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 _DPXFILE_H_
24 #define _DPXFILE_H_
25
26 #define DPX_CONFIG_FILE "dvipdfmx.cfg"
27
28 typedef enum {
29 DPX_RES_TYPE_FONTMAP = 0,
30
31 DPX_RES_TYPE_T1FONT,
32 DPX_RES_TYPE_TTFONT,
33 DPX_RES_TYPE_OTFONT,
34 DPX_RES_TYPE_PKFONT,
35 DPX_RES_TYPE_DFONT,
36
37 DPX_RES_TYPE_ENC,
38 DPX_RES_TYPE_CMAP,
39 DPX_RES_TYPE_SFD,
40 DPX_RES_TYPE_AGL,
41
42 DPX_RES_TYPE_ICCPROFILE,
43
44 DPX_RES_TYPE_BINARY,
45 DPX_RES_TYPE_TEXT
46 } dpx_res_type;
47
48 #include "mfileio.h"
49 extern FILE *dpx_open_file (const char *filename, dpx_res_type type);
50
51 extern char * dpx_find_type1_file (const char *filename);
52 extern char * dpx_find_truetype_file (const char *filename);
53 extern char * dpx_find_opentype_file (const char *filename);
54 extern char * dpx_find_dfont_file (const char *filename);
55
56 #define DPXFOPEN(n,t) dpx_open_file((const char *)(n),(t))
57 #define DPXFCLOSE(f) MFCLOSE((f))
58
59 extern int dpx_file_apply_filter (const char *cmdtmpl,
60 const char *input, const char *output,
61 int version);
62 extern char *dpx_create_temp_file (void);
63 extern char *dpx_create_fix_temp_file (const char *filename);
64 extern void dpx_delete_old_cache (int life);
65 extern void dpx_delete_temp_file (char *tmp, int force); /* tmp freed here */
66
67 #endif /* _DPXFILE_H_ */