modules.cfg 6.34 KB
Newer Older
Werner Lemberg's avatar
 
Werner Lemberg committed
1
2
# modules.cfg
#
Werner Lemberg's avatar
Werner Lemberg committed
3
# Copyright (C) 2005-2022 by
Werner Lemberg's avatar
 
Werner Lemberg committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
# indicate that you have read the license and understand and accept it
# fully.
#
#
# In case you compile the FreeType library with GNU make or makepp, this
# file controls which components are built into the library.  Otherwise,
# please read this file for information on the various modules and its
# dependencies, then follow the instructions in the file `docs/INSTALL.ANY'.
#
# To deactivate a module, simply comment out the corresponding line.  To
# activate a module, remove the comment character.
#
# Note that many modules and components are further controlled with macros
22
# in the file `include/freetype/config/ftoption.h'.
Werner Lemberg's avatar
 
Werner Lemberg committed
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43


####
#### font modules -- at least one is required
####
####   The order given here (from top to down) is the order used for testing
####   font formats in the compiled library.
####

# TrueType font driver.
#
# This driver needs the `sfnt' module.
FONT_MODULES += truetype

# PostScript Type 1 font driver.
#
# This driver needs the `psaux', `pshinter', and `psnames' modules.
FONT_MODULES += type1

# CFF/OpenType font driver.
#
44
# This driver needs the `sfnt', `psaux', `pshinter', and `psnames' modules.
Werner Lemberg's avatar
 
Werner Lemberg committed
45
46
47
48
49
50
51
52
53
54
55
56
FONT_MODULES += cff

# Type 1 CID-keyed font driver.
#
# This driver needs the `psaux', `pshinter', and `psnames' modules.
FONT_MODULES += cid

# PFR/TrueDoc font driver.  See optional extension ftpfr.c below also.
FONT_MODULES += pfr

# PostScript Type 42 font driver.
#
57
# This driver needs the `truetype' and `psaux' modules.
Werner Lemberg's avatar
 
Werner Lemberg committed
58
59
60
61
62
63
FONT_MODULES += type42

# Windows FONT/FNT font driver.  See optional extension ftwinfnt.c below
# also.
FONT_MODULES += winfonts

64
# PCF font driver.  If debugging and tracing is enabled, needs `ftbitmap.c'.
Werner Lemberg's avatar
 
Werner Lemberg committed
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
FONT_MODULES += pcf

# BDF font driver.  See optional extension ftbdf.c below also.
FONT_MODULES += bdf

# SFNT files support.  If used without `truetype' or `cff', it supports
# bitmap-only fonts within an SFNT wrapper.
#
# This driver needs the `psnames' module.
FONT_MODULES += sfnt


####
#### hinting modules
####

# FreeType's auto hinter.
HINTING_MODULES += autofit

# PostScript hinter.
HINTING_MODULES += pshinter

# The TrueType hinting engine doesn't have a module of its own but is
88
# controlled in file include/freetype/config/ftoption.h
Werner Lemberg's avatar
 
Werner Lemberg committed
89
90
91
92
93
94
95
96
97
98
# (TT_CONFIG_OPTION_BYTECODE_INTERPRETER and friends).


####
#### raster modules -- at least one is required for vector font formats
####

# Anti-aliasing rasterizer.
RASTER_MODULES += smooth

99
100
101
# Monochrome rasterizer.
RASTER_MODULES += raster

102
103
104
# OT-SVG.
RASTER_MODULES += svg

Anuj Verma's avatar
Anuj Verma committed
105
106
107
# Signed distance field rasterizer.
RASTER_MODULES += sdf

Werner Lemberg's avatar
 
Werner Lemberg committed
108
109
110
111
112
113
114

####
#### auxiliary modules
####

# FreeType's cache sub-system (quite stable but still in beta -- this means
# that its public API is subject to change if necessary).  See
115
# include/freetype/ftcache.h.  Needs `ftglyph.c'.
Werner Lemberg's avatar
 
Werner Lemberg committed
116
117
AUX_MODULES += cache

118
# TrueType GX/AAT table validation.  Needs `ftgxval.c' below.
119
#
Werner Lemberg's avatar
 
Werner Lemberg committed
120
121
122
123
# AUX_MODULES += gxvalid

# Support for streams compressed with gzip (files with suffix .gz).
#
124
# See include/freetype/ftgzip.h for the API.
Werner Lemberg's avatar
 
Werner Lemberg committed
125
126
127
128
AUX_MODULES += gzip

# Support for streams compressed with LZW (files with suffix .Z).
#
129
# See include/freetype/ftlzw.h for the API.
Werner Lemberg's avatar
 
Werner Lemberg committed
130
131
AUX_MODULES += lzw

132
133
# Support for streams compressed with bzip2 (files with suffix .bz2).
#
134
# See include/freetype/ftbzip2.h for the API.
135
136
AUX_MODULES += bzip2

137
# OpenType table validation.  Needs `ftotval.c' below.
Werner Lemberg's avatar
 
Werner Lemberg committed
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#
# AUX_MODULES += otvalid

# Auxiliary PostScript driver component to share common code.
#
# This module depends on `psnames'.
AUX_MODULES += psaux

# Support for PostScript glyph names.
#
# This module can be controlled in ftconfig.h
# (FT_CONFIG_OPTION_POSTSCRIPT_NAMES).
AUX_MODULES += psnames


####
#### base module extensions
####

# Exact bounding box calculation.
#
159
# See include/freetype/ftbbox.h for the API.
Werner Lemberg's avatar
 
Werner Lemberg committed
160
161
162
163
BASE_EXTENSIONS += ftbbox.c

# Access BDF-specific strings.  Needs BDF font driver.
#
164
# See include/freetype/ftbdf.h for the API.
Werner Lemberg's avatar
 
Werner Lemberg committed
165
166
BASE_EXTENSIONS += ftbdf.c

Werner Lemberg's avatar
   
Werner Lemberg committed
167
168
169
# Utility functions for converting 1bpp, 2bpp, 4bpp, and 8bpp bitmaps into
# 8bpp format, and for emboldening of bitmap glyphs.
#
170
# See include/freetype/ftbitmap.h for the API.
Werner Lemberg's avatar
   
Werner Lemberg committed
171
172
BASE_EXTENSIONS += ftbitmap.c

Werner Lemberg's avatar
   
Werner Lemberg committed
173
174
# Access CID font information.
#
175
# See include/freetype/ftcid.h for the API.
Werner Lemberg's avatar
   
Werner Lemberg committed
176
177
BASE_EXTENSIONS += ftcid.c

178
# Access FSType information.  Needs `fttype1.c'.
Werner Lemberg's avatar
 
Werner Lemberg committed
179
#
180
# See include/freetype/freetype.h for the API.
Werner Lemberg's avatar
   
Werner Lemberg committed
181
BASE_EXTENSIONS += ftfstype.c
Werner Lemberg's avatar
 
Werner Lemberg committed
182

Werner Lemberg's avatar
   
Werner Lemberg committed
183
184
# Support for GASP table queries.
#
185
# See include/freetype/ftgasp.h for the API.
Werner Lemberg's avatar
   
Werner Lemberg committed
186
187
BASE_EXTENSIONS += ftgasp.c

188
# Convenience functions to handle glyphs.  Needs `ftbitmap.c'.
Werner Lemberg's avatar
 
Werner Lemberg committed
189
#
190
# See include/freetype/ftglyph.h for the API.
Werner Lemberg's avatar
 
Werner Lemberg committed
191
192
BASE_EXTENSIONS += ftglyph.c

Werner Lemberg's avatar
   
Werner Lemberg committed
193
# Interface for gxvalid module.
Werner Lemberg's avatar
 
Werner Lemberg committed
194
#
195
# See include/freetype/ftgxval.h for the API.
196
BASE_EXTENSIONS += ftgxval.c
Werner Lemberg's avatar
 
Werner Lemberg committed
197
198
199

# Multiple Master font interface.
#
200
# See include/freetype/ftmm.h for the API.
Werner Lemberg's avatar
 
Werner Lemberg committed
201
202
BASE_EXTENSIONS += ftmm.c

Werner Lemberg's avatar
   
Werner Lemberg committed
203
# Interface for otvalid module.
Werner Lemberg's avatar
 
Werner Lemberg committed
204
#
205
# See include/freetype/ftotval.h for the API.
206
BASE_EXTENSIONS += ftotval.c
Werner Lemberg's avatar
 
Werner Lemberg committed
207

Werner Lemberg's avatar
   
Werner Lemberg committed
208
209
# Support for FT_Face_CheckTrueTypePatents.
#
210
# See include/freetype/freetype.h for the API.
Werner Lemberg's avatar
   
Werner Lemberg committed
211
212
BASE_EXTENSIONS += ftpatent.c

Werner Lemberg's avatar
 
Werner Lemberg committed
213
214
# Interface for accessing PFR-specific data.  Needs PFR font driver.
#
215
# See include/freetype/ftpfr.h for the API.
Werner Lemberg's avatar
 
Werner Lemberg committed
216
217
BASE_EXTENSIONS += ftpfr.c

218
# Path stroker.  Needs `ftglyph.c'.
Werner Lemberg's avatar
 
Werner Lemberg committed
219
#
220
# See include/freetype/ftstroke.h for the API.
Werner Lemberg's avatar
 
Werner Lemberg committed
221
222
BASE_EXTENSIONS += ftstroke.c

223
224
# Support for synthetic emboldening and slanting of fonts.  Needs
# `ftbitmap.c'.
Werner Lemberg's avatar
 
Werner Lemberg committed
225
#
226
# See include/freetype/ftsynth.h for the API.
Werner Lemberg's avatar
 
Werner Lemberg committed
227
228
229
230
231
BASE_EXTENSIONS += ftsynth.c

# Interface to access data specific to PostScript Type 1 and Type 2 (CFF)
# fonts.
#
232
# See include/freetype/t1tables.h for the API.
Werner Lemberg's avatar
 
Werner Lemberg committed
233
234
235
236
237
BASE_EXTENSIONS += fttype1.c

# Interface for accessing data specific to Windows FNT files.  Needs winfnt
# driver.
#
238
# See include/freetype/ftwinfnt.h for the API.
Werner Lemberg's avatar
 
Werner Lemberg committed
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
BASE_EXTENSIONS += ftwinfnt.c

####
#### The components `ftsystem.c' (for memory allocation and stream I/O
#### management) and `ftdebug.c' (for emitting debug messages to the user)
#### are controlled with the following variables.
####
####   ftsystem.c:  $(FTSYS_SRC)
####   ftdebug.c:   $(FTDEBUG_SRC)
####
#### Please refer to docs/CUSTOMIZE for details.
####


# EOF