2003-04-21 17:30:27 +04:00
|
|
|
Instructions on how to build FreeType with your own build tool
|
|
|
|
==============================================================
|
2003-03-20 10:04:40 +03:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
See the file `CUSTOMIZE' to learn how to customize FreeType to specific
|
|
|
|
environments.
|
2003-03-20 10:04:40 +03:00
|
|
|
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
I. Standard procedure
|
|
|
|
---------------------
|
2003-03-20 10:04:40 +03:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
* DISABLE PRE-COMPILED HEADERS! This is very important for Visual
|
2003-03-20 10:04:40 +03:00
|
|
|
C++, because FreeType uses lines like:
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
#include FT_FREETYPE_H
|
2003-03-20 10:04:40 +03:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
which are not correctly supported by this compiler while being ISO C
|
|
|
|
compliant!
|
2003-03-20 10:04:40 +03:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
* You need to add the directories `freetype2/include' to your include
|
|
|
|
path when compiling the library.
|
2003-03-20 10:04:40 +03:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
* FreeType 2 is made of several components; each of them is located in
|
|
|
|
a subdirectory of `freetype2/src'. For example,
|
2005-08-10 17:24:51 +04:00
|
|
|
`freetype2/src/truetype/' contains the TrueType font driver.
|
2003-03-20 10:04:40 +03:00
|
|
|
|
|
|
|
* DO NOT COMPILE ALL C FILES! Rather, compile the following ones:
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
-- base components (required)
|
|
|
|
|
|
|
|
src/base/ftsystem.c
|
|
|
|
src/base/ftinit.c
|
|
|
|
src/base/ftdebug.c
|
2005-08-10 17:24:51 +04:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
src/base/ftbase.c
|
2005-08-10 17:24:51 +04:00
|
|
|
|
|
|
|
src/base/ftbbox.c -- recommended, see <freetype/ftbbox.h>
|
|
|
|
src/base/ftglyph.c -- recommended, see <freetype/ftglyph.h>
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
src/base/ftbdf.c -- optional, see <freetype/ftbdf.h>
|
2005-08-10 17:24:51 +04:00
|
|
|
src/base/ftbitmap.c -- optional, see <freetype/ftbitmap.h>
|
2005-12-12 10:40:58 +03:00
|
|
|
src/base/ftgxval.c -- optional, see <freetype/ftgxval.h>
|
2005-08-10 17:24:51 +04:00
|
|
|
src/base/ftmm.c -- optional, see <freetype/ftmm.h>
|
2005-12-12 10:40:58 +03:00
|
|
|
src/base/ftotval.c -- optional, see <freetype/ftotval.h>
|
2005-08-10 17:24:51 +04:00
|
|
|
src/base/ftpfr.c -- optional, see <freetype/ftpfr.h>
|
2005-12-12 10:40:58 +03:00
|
|
|
src/base/ftstroke.c -- optional, see <freetype/ftstroke.h>
|
|
|
|
src/base/ftsynth.c -- optional, see <freetype/ftsynth.h>
|
|
|
|
src/base/fttype1.c -- optional, see <freetype/t1tables.h>
|
2003-04-21 17:30:27 +04:00
|
|
|
src/base/ftwinfnt.c -- optional, see <freetype/ftwinfnt.h>
|
|
|
|
|
|
|
|
src/base/ftmac.c -- only on the Macintosh
|
|
|
|
|
2005-10-15 09:49:31 +04:00
|
|
|
-- font drivers (optional; at least one is needed)
|
2003-04-21 17:30:27 +04:00
|
|
|
|
|
|
|
src/bdf/bdf.c -- BDF font driver
|
2005-08-10 17:24:51 +04:00
|
|
|
src/cff/cff.c -- CFF/OpenType font driver
|
|
|
|
src/cid/type1cid.c -- Type 1 CID-keyed font driver
|
2003-04-21 17:30:27 +04:00
|
|
|
src/pcf/pcf.c -- PCF font driver
|
2005-08-10 17:24:51 +04:00
|
|
|
src/pfr/pfr.c -- PFR/TrueDoc font driver
|
|
|
|
src/sfnt/sfnt.c -- SFNT files support
|
|
|
|
(TrueType & OpenType)
|
2003-04-21 17:30:27 +04:00
|
|
|
src/truetype/truetype.c -- TrueType font driver
|
|
|
|
src/type1/type1.c -- Type 1 font driver
|
2005-08-10 17:24:51 +04:00
|
|
|
src/type42/type42.c -- Type 42 font driver
|
2003-04-21 17:30:27 +04:00
|
|
|
src/winfonts/winfonts.c -- Windows FONT / FNT font driver
|
2005-08-10 17:24:51 +04:00
|
|
|
|
2005-10-15 09:49:31 +04:00
|
|
|
-- rasterizers (optional; at least one is needed for vector formats)
|
2005-08-10 17:24:51 +04:00
|
|
|
|
2005-10-15 09:49:31 +04:00
|
|
|
src/raster/raster.c -- monochrome rasterizer
|
2003-04-21 17:30:27 +04:00
|
|
|
src/smooth/smooth.c -- anti-aliasing rasterizer
|
|
|
|
|
2005-08-10 17:24:51 +04:00
|
|
|
-- auxiliary modules (optional)
|
|
|
|
|
|
|
|
src/autofit/autofit.c -- auto hinting module
|
|
|
|
src/cache/ftcache.c -- cache sub-system (in beta)
|
|
|
|
src/gzip/ftgzip.c -- support for compressed fonts (.gz)
|
|
|
|
src/lzw/ftlzw.c -- support for compressed fonts (.Z)
|
2005-08-24 08:31:31 +04:00
|
|
|
src/gxvalid/gxvalid.c -- TrueTypeGX/AAT table validation
|
2005-08-10 17:24:51 +04:00
|
|
|
src/otvalid/otvalid.c -- OpenType table validation
|
|
|
|
src/psaux/psaux.c -- PostScript Type 1 parsing
|
|
|
|
src/pshinter/pshinter.c -- PS hinting module
|
|
|
|
src/psnames/psnames.c -- PostScript glyph names support
|
|
|
|
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
Notes:
|
2003-03-20 10:04:40 +03:00
|
|
|
|
2005-08-10 17:24:51 +04:00
|
|
|
`cff.c' needs `sfnt.c', `pshinter.c', and `psnames.c'
|
2003-03-20 10:04:40 +03:00
|
|
|
`truetype.c' needs `sfnt.c' and `psnames.c'
|
2005-08-10 17:24:51 +04:00
|
|
|
`type1.c' needs `psaux.c' `pshinter.c', and `psnames.c'
|
|
|
|
`type1cid.c' needs `psaux.c', `pshinter.c', and `psnames.c'
|
|
|
|
`type42.c' needs `truetype.c'
|
2003-03-20 10:04:40 +03:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
Read the file `CUSTOMIZE' in case you want to compile only a subset of
|
|
|
|
the drivers, renderers, and optional modules.
|
|
|
|
|
|
|
|
You are done. In case of problems, see the archives of the FreeType
|
2003-04-21 17:30:27 +04:00
|
|
|
development mailing list.
|
2003-03-20 10:04:40 +03:00
|
|
|
|
|
|
|
|
|
|
|
II. Support for flat-directory compilation
|
|
|
|
------------------------------------------
|
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
It is possible to put all FreeType 2 source files into a single
|
2003-03-20 10:04:40 +03:00
|
|
|
directory, with the *exception* of the `include' hierarchy.
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
1. Copy all files in current directory
|
|
|
|
|
|
|
|
cp freetype2/src/base/*.[hc] .
|
|
|
|
cp freetype2/src/raster1/*.[hc] .
|
|
|
|
cp freetype2/src/smooth/*.[hc] .
|
|
|
|
etc.
|
2003-03-20 10:04:40 +03:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
2. Compile sources
|
2003-03-20 10:04:40 +03:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
cc -c -Ifreetype2/include ftsystem.c
|
|
|
|
cc -c -Ifreetype2/include ftinit.c
|
|
|
|
cc -c -Ifreetype2/include ftdebug.c
|
|
|
|
cc -c -Ifreetype2/include ftbase.c
|
|
|
|
etc.
|
2003-03-20 10:04:40 +03:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
You don't need to define the FT_FLAT_COMPILATION macro (as this was
|
|
|
|
required in previous releases of FreeType 2).
|
2003-03-20 10:04:40 +03:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
------------------------------------------------------------------------
|
2005-06-05 03:00:25 +04:00
|
|
|
|
|
|
|
Copyright 2003, 2005 by
|
|
|
|
David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
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.
|
2005-06-05 03:00:25 +04:00
|
|
|
|
2003-03-20 10:04:40 +03:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
--- end of INSTALL.ANY ---
|