src/consts.h
/* [<][>][^][v][top][bottom][index][help] */
FUNCTIONS
This source file includes following functions.
1 /*
2 * consts.h - a definition file for VFlib constants
3 * by Hirotsugu Kakugawa
4 *
5 */
6 /*
7 * Copyright (C) 1996-1999 Hirotsugu Kakugawa.
8 * All rights reserved.
9 *
10 * This file is part of the VFlib Library. This library is free
11 * software; you can redistribute it and/or modify it under the terms of
12 * the GNU Library General Public License as published by the Free
13 * Software Foundation; either version 2 of the License, or (at your
14 * option) any later version. This library is distributed in the hope
15 * that it will be useful, but WITHOUT ANY WARRANTY; without even the
16 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
17 * PURPOSE. See the GNU Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 */
22
23
24 /*
25 * Site specific runtime directory,
26 */
27 #ifndef VF_ENV_DIR_RUNTIME_SITE_LIB
28 # define VF_ENV_DIR_RUNTIME_SITE_LIB "VFLIB_RUNTIME_SITE_DIRECTORY"
29 #endif
30
31 /*
32 * Runtime directory
33 */
34 #ifndef VF_ENV_DIR_RUNTIME_LIB
35 # define VF_ENV_DIR_RUNTIME_LIB "VFLIB_RUNTIME_DIRECTORY"
36 #endif
37
38
39 /*
40 * vflibcap
41 */
42 #ifndef VF_DEFAULT_VFLIBCAP_FILE
43 # define VF_DEFAULT_VFLIBCAP_FILE "vflibcap"
44 #endif
45 #define VF_ENV_VFLIBCAP_PATH "VFLIB_VFLIBCAP_PATH"
46 #define VF_ENV_VFLIBCAP_DIR "VFLIB_VFLIBCAP_DIRECTORY"
47 #define VF_ENV_VFLIBCAP_PARAM_PREFIX "VFLIBCAP_PARAM_"
48
49
50 /*
51 * An env variable to cheange the CCV file directory
52 */
53 #define VF_ENV_CCV_DIR "VFLIB_CCV_DIRECTORY"
54
55
56 /*
57 * A font file hint database file, used for fast font file searching
58 */
59 #ifndef VF_FONT_FILE_HINT_DB
60 # define VF_FONT_FILE_HINT_DB "VFlib.fdb"
61 #endif
62
63
64 /*
65 * Max # of implicit font classes
66 */
67 #ifndef MAX_DEFAULT_IMPLICT_FONT_CLASSES
68 # define MAX_DEFAULT_IMPLICT_FONT_CLASSES 32
69 #endif
70
71
72 /*
73 * Max # of font open nestings.
74 * (This limits the number of depth of recursive VF_OpenFont() calls.)
75 */
76 #ifndef VF_MAX_OPEN_NESTING
77 # define VF_MAX_OPEN_NESTING 64
78 #endif
79
80
81 /*
82 * The maximum number of file descripters simultaneously opened
83 * for reading fonts
84 */
85 #ifndef VF_MAX_FILE_DESCRIPTERS
86 # define VF_MAX_FILE_DESCRIPTERS 8
87 #endif
88
89 /*
90 * An environment variable for to change value for VF_MAX_FILE_DESCRIPTERS
91 * on runtime.
92 */
93 #ifndef VF_ENV_MAX_FILE_DESCRIPTERS
94 # define VF_ENV_MAX_FILE_DESCRIPTERS "VFLIB_MAX_FD"
95 #endif
96
97
98 /*
99 * Envs for for debugging
100 */
101 #define VF_ENV_DEBUG_FONT_OPEN "VFLIB_DEBUG_FONT_OPEN"
102 #define VF_ENV_DEBUG_FONT_SEARCH "VFLIB_DEBUG_FONT_SEARCH"
103 #define VF_ENV_DEBUG_KPATHSEA "VFLIB_DEBUG_KPATHSEA"
104 #define VF_ENV_DEBUG_VFLIBCAP "VFLIB_DEBUG_VFLIBCAP"
105 #define VF_ENV_DEBUG_PARAMETERS "VFLIB_DEBUG_PARAMETERS"
106 #define VF_ENV_DEBUG_CCV "VFLIB_DEBUG_CCV"
107 #define VF_ENV_DEBUG_CCV_MAPPING "VFLIB_DEBUG_CCV_MAPPING"
108 #define VF_ENV_DEBUG_FILEMAN "VFLIB_DEBUG_FILEMAN"
109 #define VF_ENV_DEBUG_LOG "VFLIB_DEBUG_LOG"
110
111
112 /*
113 * Default resolusion
114 */
115 #ifndef VF_DEFAULT_DPI
116 # define VF_DEFAULT_DPI 300
117 #endif
118
119
120 /*
121 * The maximum path length
122 */
123 #ifndef MAXPATHLEN
124 # define MAXPATHLEN 1024
125 #endif
126
127
128 /*
129 * Directory delimeter. "/" for Unix and "\\" for MS-DOS
130 * Can be specified in vflibcap.
131 */
132 #ifndef VF_DIRECTORY_DELIMITER
133 # define VF_DIRECTORY_DELIMITER "/"
134 #endif
135
136
137 /*EOF*/