File: consts.h

package info (click to toggle)
vflib3 3.6.14.dfsg-3+nmu3
  • 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 (137 lines) | stat: -rw-r--r-- 3,443 bytes parent folder | download | duplicates (9)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/*
 * consts.h - a definition file for VFlib constants
 * by Hirotsugu Kakugawa
 *
 */
/*
 * Copyright (C) 1996-1999  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.
 */


/*
 * Site specific runtime directory, 
 */
#ifndef VF_ENV_DIR_RUNTIME_SITE_LIB
#  define VF_ENV_DIR_RUNTIME_SITE_LIB    "VFLIB_RUNTIME_SITE_DIRECTORY"
#endif

/*
 * Runtime directory
 */
#ifndef VF_ENV_DIR_RUNTIME_LIB
#  define VF_ENV_DIR_RUNTIME_LIB         "VFLIB_RUNTIME_DIRECTORY"
#endif


/*
 * vflibcap
 */
#ifndef VF_DEFAULT_VFLIBCAP_FILE
#  define VF_DEFAULT_VFLIBCAP_FILE         "vflibcap"
#endif
#define VF_ENV_VFLIBCAP_PATH             "VFLIB_VFLIBCAP_PATH"
#define VF_ENV_VFLIBCAP_DIR              "VFLIB_VFLIBCAP_DIRECTORY"
#define VF_ENV_VFLIBCAP_PARAM_PREFIX     "VFLIBCAP_PARAM_"


/* 
 * An env variable to cheange the CCV file directory
 */
#define VF_ENV_CCV_DIR                   "VFLIB_CCV_DIRECTORY"


/*
 * A font file hint database file, used for fast font file searching 
 */
#ifndef VF_FONT_FILE_HINT_DB 
#  define VF_FONT_FILE_HINT_DB           "VFlib.fdb"
#endif


/* 
 * Max # of implicit font classes
 */
#ifndef MAX_DEFAULT_IMPLICT_FONT_CLASSES
#  define  MAX_DEFAULT_IMPLICT_FONT_CLASSES  32
#endif


/*
 * Max # of font open nestings.
 * (This limits the number of depth of recursive VF_OpenFont() calls.)
 */
#ifndef VF_MAX_OPEN_NESTING
#  define VF_MAX_OPEN_NESTING  64
#endif


/*
 * The maximum number of file descripters simultaneously opened
 * for reading fonts
 */ 
#ifndef VF_MAX_FILE_DESCRIPTERS
#  define VF_MAX_FILE_DESCRIPTERS  8
#endif

/*
 * An environment variable for to change value for VF_MAX_FILE_DESCRIPTERS
 * on runtime.
 */ 
#ifndef VF_ENV_MAX_FILE_DESCRIPTERS
#  define VF_ENV_MAX_FILE_DESCRIPTERS   "VFLIB_MAX_FD"
#endif


/*
 * Envs for for debugging
 */
#define VF_ENV_DEBUG_FONT_OPEN    "VFLIB_DEBUG_FONT_OPEN"
#define VF_ENV_DEBUG_FONT_SEARCH  "VFLIB_DEBUG_FONT_SEARCH"
#define VF_ENV_DEBUG_KPATHSEA     "VFLIB_DEBUG_KPATHSEA"
#define VF_ENV_DEBUG_VFLIBCAP     "VFLIB_DEBUG_VFLIBCAP"
#define VF_ENV_DEBUG_PARAMETERS   "VFLIB_DEBUG_PARAMETERS"
#define VF_ENV_DEBUG_CCV          "VFLIB_DEBUG_CCV"
#define VF_ENV_DEBUG_CCV_MAPPING  "VFLIB_DEBUG_CCV_MAPPING"
#define VF_ENV_DEBUG_FILEMAN      "VFLIB_DEBUG_FILEMAN"
#define VF_ENV_DEBUG_LOG          "VFLIB_DEBUG_LOG"


/* 
 * Default resolusion
 */
#ifndef VF_DEFAULT_DPI
#  define VF_DEFAULT_DPI    300
#endif


/*
 * The maximum path length
 */ 
#ifndef MAXPATHLEN
#  define MAXPATHLEN  1024
#endif 


/*
 * Directory delimeter. "/" for Unix and "\\" for MS-DOS 
 * Can  be specified in vflibcap.
 */
#ifndef VF_DIRECTORY_DELIMITER 
#  define  VF_DIRECTORY_DELIMITER   "/"
#endif


/*EOF*/