src/fsearch.h

/* [<][>]
[^][v][top][bottom][index][help] */

FUNCTIONS

This source file includes following functions.

   1 /*
   2  * fsearch.h - search a file 
   3  *
   4  */
   5 /*
   6  * Copyright (C) 1996-1998  Hirotsugu Kakugawa. 
   7  * All rights reserved.
   8  *
   9  * This file is part of the VFlib Library.  This library is free
  10  * software; you can redistribute it and/or modify it under the terms of
  11  * the GNU Library General Public License as published by the Free
  12  * Software Foundation; either version 2 of the License, or (at your
  13  * option) any later version.  This library is distributed in the hope
  14  * that it will be useful, but WITHOUT ANY WARRANTY; without even the
  15  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  16  * PURPOSE.  See the GNU Library General Public License for more details.
  17  * You should have received a copy of the GNU Library General Public
  18  * License along with this library; if not, write to the Free Software
  19  * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  20  */
  21 
  22 
  23 #ifndef __VFLIB_FSEARCH_H__
  24 #define __VFLIB_FSEARCH_H__
  25 
  26 #include "VFsys.h"
  27 #include "sexp.h"
  28 #include "vflpaths.h"
  29 
  30 #define   DEFAULT_KPS_SWITCH         FALSE
  31 #define   DEFAULT_KPS_MODE           "cx"
  32 #define   DEFAULT_KPS_DPI            300
  33 #define   DEFAULT_KPS_PROGRAM_PATH   VFLSERVER_PATH
  34 #define   DEFAULT_KPS_PROGRAM_NAME   "vflserver"
  35 
  36 #define   FSEARCH_FORMAT_TYPE_GF         1
  37 #define   FSEARCH_FORMAT_TYPE_PK         2
  38 #define   FSEARCH_FORMAT_TYPE_VF         3  /* searches vf and ofm */
  39 #define   FSEARCH_FORMAT_TYPE_TFM        4  /* searches tfm and ofm */
  40 #define   FSEARCH_FORMAT_TYPE_OFM        5  /* searches ofm only */
  41 #define   FSEARCH_FORMAT_TYPE_OVF        6  /* searches ovf only */
  42 #define   FSEARCH_FORMAT_TYPE_TTF       10
  43 #define   FSEARCH_FORMAT_TYPE_TYPE1     11
  44 #define   FSEARCH_FORMAT_TYPE_TYPE42    12
  45 #define   FSEARCH_FORMAT_TYPE_AFM       13
  46 #define   FSEARCH_FORMAT_TYPE_PSHEADER  14
  47 
  48 
  49 extern void  vf_kpathsea_init(char *prog, char *mode, int dpi, int sw);
  50 
  51 extern int   vf_add_uncompresser_alist(SEXP);
  52 extern FILE* vf_open_uncompress_stream(char*,char*);
  53 extern int   vf_close_uncompress_stream(FILE*);
  54 
  55 extern char* vf_search_file(char *name, int opt_arg1, char *opt_arg2,
  56                             int use_kpathsea, int kpathsea_file_format,
  57                             SEXP_LIST dir_list, 
  58                             SEXP_LIST compressed_ext_list, 
  59                             char **p_uncomp_prog);
  60 extern char* vf_find_file_in_directory(char *name, char *dir);
  61 extern int   vf_tex_make_glyph(int type, char *font_name, int dpi, double mag);
  62 
  63 #endif /*__VFLIB_FSEARCH_H__*/

/* [<][>][^][v][top][bottom][index][help] */