File: fsearch.h

package info (click to toggle)
vflib3 3.6.14.dfsg-3%2Bnmu3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 11,536 kB
  • ctags: 3,710
  • sloc: ansic: 35,811; sh: 10,357; asm: 3,290; makefile: 962; lisp: 123; perl: 109; awk: 43
file content (63 lines) | stat: -rw-r--r-- 2,432 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 * fsearch.h - search a file 
 *
 */
/*
 * Copyright (C) 1996-1998  Hirotsugu Kakugawa. 
 * All rights reserved.
 *
 * This file is part of the VFlib Library.  This library is free
 * software; you can redistribute it and/or modify it under the terms of
 * the GNU Library General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your
 * option) any later version.  This library is distributed in the hope
 * that it will be useful, but WITHOUT ANY WARRANTY; without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU Library General Public License for more details.
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */


#ifndef __VFLIB_FSEARCH_H__
#define __VFLIB_FSEARCH_H__

#include "VFsys.h"
#include "sexp.h"
#include "vflpaths.h"

#define   DEFAULT_KPS_SWITCH         FALSE
#define   DEFAULT_KPS_MODE           "cx"
#define   DEFAULT_KPS_DPI            300
#define   DEFAULT_KPS_PROGRAM_PATH   VFLSERVER_PATH
#define   DEFAULT_KPS_PROGRAM_NAME   "vflserver"

#define   FSEARCH_FORMAT_TYPE_GF         1
#define   FSEARCH_FORMAT_TYPE_PK         2
#define   FSEARCH_FORMAT_TYPE_VF         3  /* searches vf and ofm */
#define   FSEARCH_FORMAT_TYPE_TFM        4  /* searches tfm and ofm */
#define   FSEARCH_FORMAT_TYPE_OFM        5  /* searches ofm only */
#define   FSEARCH_FORMAT_TYPE_OVF        6  /* searches ovf only */
#define   FSEARCH_FORMAT_TYPE_TTF       10
#define   FSEARCH_FORMAT_TYPE_TYPE1     11
#define   FSEARCH_FORMAT_TYPE_TYPE42    12
#define   FSEARCH_FORMAT_TYPE_AFM       13
#define   FSEARCH_FORMAT_TYPE_PSHEADER  14


extern void  vf_kpathsea_init(char *prog, char *mode, int dpi, int sw);

extern int   vf_add_uncompresser_alist(SEXP);
extern FILE* vf_open_uncompress_stream(char*,char*);
extern int   vf_close_uncompress_stream(FILE*);

extern char* vf_search_file(char *name, int opt_arg1, char *opt_arg2,
			    int use_kpathsea, int kpathsea_file_format,
			    SEXP_LIST dir_list, 
			    SEXP_LIST compressed_ext_list, 
			    char **p_uncomp_prog);
extern char* vf_find_file_in_directory(char *name, char *dir);
extern int   vf_tex_make_glyph(int type, char *font_name, int dpi, double mag);

#endif /*__VFLIB_FSEARCH_H__*/