1 #ifndef FZ_CONFIG_H
2 
3 #define FZ_CONFIG_H
4 
5 /**
6 	Enable the following for spot (and hence overprint/overprint
7 	simulation) capable rendering. This forces FZ_PLOTTERS_N on.
8 */
9 /* #define FZ_ENABLE_SPOT_RENDERING 1 */
10 
11 /**
12 	Choose which plotters we need.
13 	By default we build all the plotters in. To avoid building
14 	plotters in that aren't needed, define the unwanted
15 	FZ_PLOTTERS_... define to 0.
16 */
17 /* #define FZ_PLOTTERS_G 1 */
18 /* #define FZ_PLOTTERS_RGB 1 */
19 /* #define FZ_PLOTTERS_CMYK 1 */
20 /* #define FZ_PLOTTERS_N 1 */
21 
22 /**
23 	Choose which document agents to include.
24 	By default all are enabled. To avoid building unwanted
25 	ones, define FZ_ENABLE_... to 0.
26 */
27 /* #define FZ_ENABLE_PDF 1 */
28 /* #define FZ_ENABLE_XPS 1 */
29 /* #define FZ_ENABLE_SVG 1 */
30 /* #define FZ_ENABLE_CBZ 1 */
31 /* #define FZ_ENABLE_IMG 1 */
32 /* #define FZ_ENABLE_HTML 1 */
33 /* #define FZ_ENABLE_EPUB 1 */
34 
35 /**
36 	Choose whether to enable ICC color profiles.
37 */
38 /* #define FZ_ENABLE_ICC 1 */
39 
40 /**
41 	Choose whether to enable JPEG2000 decoding.
42 	By default, it is enabled, but due to frequent security
43 	issues with the third party libraries we support disabling
44 	it with this flag.
45 */
46 /* #define FZ_ENABLE_JPX 1 */
47 
48 /**
49 	Choose whether to enable JavaScript.
50 	By default JavaScript is enabled both for mutool and PDF
51 	interactivity.
52 */
53 /* #define FZ_ENABLE_JS 1 */
54 
55 /**
56 	Choose which fonts to include.
57 	By default we include the base 14 PDF fonts,
58 	DroidSansFallback from Android for CJK, and
59 	Charis SIL from SIL for epub/html.
60 	Enable the following defines to AVOID including
61 	unwanted fonts.
62 */
63 /* To avoid all noto fonts except CJK, enable: */
64 /* #define TOFU */
65 
66 /* To skip the CJK font, enable: (this implicitly enables TOFU_CJK_EXT
67  * and TOFU_CJK_LANG) */
68 /* #define TOFU_CJK */
69 
70 /* To skip CJK Extension A, enable: (this implicitly enables
71  * TOFU_CJK_LANG) */
72 /* #define TOFU_CJK_EXT */
73 
74 /* To skip CJK language specific fonts, enable: */
75 /* #define TOFU_CJK_LANG */
76 
77 /* To skip the Emoji font, enable: */
78 /* #define TOFU_EMOJI */
79 
80 /* To skip the ancient/historic scripts, enable: */
81 /* #define TOFU_HISTORIC */
82 
83 /* To skip the symbol font, enable: */
84 /* #define TOFU_SYMBOL */
85 
86 /* To skip the SIL fonts, enable: */
87 /* #define TOFU_SIL */
88 
89 /* To skip the Base14 fonts, enable: */
90 /* #define TOFU_BASE14 */
91 /* (You probably really don't want to do that except for measurement
92  * purposes!) */
93 
94 /* ---------- DO NOT EDIT ANYTHING UNDER THIS LINE ---------- */
95 
96 #ifndef FZ_ENABLE_SPOT_RENDERING
97 #define FZ_ENABLE_SPOT_RENDERING 1
98 #endif
99 
100 #if FZ_ENABLE_SPOT_RENDERING
101 #undef FZ_PLOTTERS_N
102 #define FZ_PLOTTERS_N 1
103 #endif /* FZ_ENABLE_SPOT_RENDERING */
104 
105 #ifndef FZ_PLOTTERS_G
106 #define FZ_PLOTTERS_G 1
107 #endif /* FZ_PLOTTERS_G */
108 
109 #ifndef FZ_PLOTTERS_RGB
110 #define FZ_PLOTTERS_RGB 1
111 #endif /* FZ_PLOTTERS_RGB */
112 
113 #ifndef FZ_PLOTTERS_CMYK
114 #define FZ_PLOTTERS_CMYK 1
115 #endif /* FZ_PLOTTERS_CMYK */
116 
117 #ifndef FZ_PLOTTERS_N
118 #define FZ_PLOTTERS_N 1
119 #endif /* FZ_PLOTTERS_N */
120 
121 /* We need at least 1 plotter defined */
122 #if FZ_PLOTTERS_G == 0 && FZ_PLOTTERS_RGB == 0 && FZ_PLOTTERS_CMYK == 0
123 #undef FZ_PLOTTERS_N
124 #define FZ_PLOTTERS_N 1
125 #endif
126 
127 #ifndef FZ_ENABLE_PDF
128 #define FZ_ENABLE_PDF 1
129 #endif /* FZ_ENABLE_PDF */
130 
131 #ifndef FZ_ENABLE_XPS
132 #define FZ_ENABLE_XPS 1
133 #endif /* FZ_ENABLE_XPS */
134 
135 #ifndef FZ_ENABLE_SVG
136 #define FZ_ENABLE_SVG 1
137 #endif /* FZ_ENABLE_SVG */
138 
139 #ifndef FZ_ENABLE_CBZ
140 #define FZ_ENABLE_CBZ 1
141 #endif /* FZ_ENABLE_CBZ */
142 
143 #ifndef FZ_ENABLE_IMG
144 #define FZ_ENABLE_IMG 1
145 #endif /* FZ_ENABLE_IMG */
146 
147 #ifndef FZ_ENABLE_HTML
148 #define FZ_ENABLE_HTML 1
149 #endif /* FZ_ENABLE_HTML */
150 
151 #ifndef FZ_ENABLE_EPUB
152 #define FZ_ENABLE_EPUB 1
153 #endif /* FZ_ENABLE_EPUB */
154 
155 #ifndef FZ_ENABLE_JPX
156 #define FZ_ENABLE_JPX 1
157 #endif /* FZ_ENABLE_JPX */
158 
159 #ifndef FZ_ENABLE_JS
160 #define FZ_ENABLE_JS 1
161 #endif /* FZ_ENABLE_JS */
162 
163 #ifndef FZ_ENABLE_ICC
164 #define FZ_ENABLE_ICC 1
165 #endif /* FZ_ENABLE_ICC */
166 
167 /* If Epub and HTML are both disabled, disable SIL fonts */
168 #if FZ_ENABLE_HTML == 0 && FZ_ENABLE_EPUB == 0
169 #undef TOFU_SIL
170 #define TOFU_SIL
171 #endif
172 
173 #endif /* FZ_CONFIG_H */
174