2000-10-05 04:53:31 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
FreeType 2 compilation how-to
|
|
|
|
=============================
|
2000-10-05 04:53:31 +00:00
|
|
|
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
Introduction
|
|
|
|
------------
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
Welcome to the FreeType 2 library. You'll find in this document
|
|
|
|
instructions on how to compile the library on your favorite platform.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
|
|
|
|
2000-10-05 04:53:31 +00:00
|
|
|
I. QUICK COMMAND-LINE GUIDE
|
|
|
|
---------------------------
|
2000-07-08 00:41:13 +00:00
|
|
|
|
* builds/win32/detekt.mk: Fix .PHONY target for Intel compiler.
Renamed "ftnames.h" to "ftsnames.h", and FT_NAMES_H to
FT_SFNT_NAMES_H.
* docs/docmaker.py: Added generation of INDEX link in table of
contents.
* INSTALL, docs/BUILD: Updated documentation to indicate that the
compilation process has changed slightly (no more `src' required in
* builds/*/*-def.mk: Changed the objects directory from "obj" to
"objs".
* include/freetype/config/ftheader.h: Removed obsolete macros like
FT_SOURCE_FILE, etc. and added cache-specific macro definitions that
were previously defined in <freetype/ftcache.h>. Added comments to
be included in a new API Reference section.
* src/*/*: Removed the use of FT_SOURCE_FILE, etc. Now, each
component needs to add its own directory to the include path at
compile time. Modified all "rules.mk" and "descrip.mms"
accordingly.
* src/cid/cidobjs.c, src/cid/cidload.c, src/pcf/pcfread.c,
src/type1/t1load.c, src/type1/t1objs.c: Added a few casts to remove
compiler warnings in pedantic modes.
* include/config/ft2build.h, include/config/ftheader.h: The file
top-level <ft2build.h>.
* include/config/ftheader.h: Added new section describing the #include
macros.
the Type 2 glyph charstring (used by conversion programs).
* docs/docmaker.py: Added cross-references generation as well as
seac emulation provided by the Type 2 endchar operator.
* src/cid/cidafm.c, src/cid/cidafm.h: removed un-needed files,
Added support for clipped direct rendering in the smooth renderer.
* src/cff/t2objs.c (T2_Init_Face): For pure CFF fonts, set
2001-03-20 22:58:56 +00:00
|
|
|
THE FOLLOWING WILL ONLY WORK WITH GNU MAKE, IT WILL FAIL MISERABLY
|
|
|
|
WITH OTHER MAKE TOOLS, FOR EXAMPLE "BSD MAKE".
|
2001-03-20 14:50:04 +00:00
|
|
|
|
2001-03-12 22:33:52 +00:00
|
|
|
Install GNU Make (version 3.78.1 or newer), then try the following
|
|
|
|
on Unix or any system with gcc:
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
make // this will setup the build
|
|
|
|
make // this will build the library
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-05 04:53:31 +00:00
|
|
|
On Win32 + Visual C++:
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
make setup visualc // setup the build for VisualC++ on Win32
|
|
|
|
make // build the library
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
Then, go to the `demos' directory and type
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
make
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-08-22 23:15:23 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
Note that on Unix, the first `make' invocation will run a configure
|
|
|
|
script (which is located in `freetype2/builds/unix/'. You can also
|
2000-08-22 23:15:23 +00:00
|
|
|
pass parameters to this script with the CFG variable, as in:
|
2000-10-31 20:42:18 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
make CFG="--prefix=/usr/local"
|
|
|
|
make
|
2000-08-22 23:15:23 +00:00
|
|
|
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-05 04:53:31 +00:00
|
|
|
If this doesn't work, read the following.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
|
|
|
|
2000-10-05 04:53:31 +00:00
|
|
|
II. COMMAND-LINE COMPILATION
|
|
|
|
----------------------------
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
Note that if you do not want to compile FreeType 2 from a command
|
|
|
|
line shell, please skip to section III below (DETAILED COMPILATION).
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
FreeType 2 includes a powerful and flexible build system that allows
|
|
|
|
you to easily compile it on a great variety of platforms from the
|
|
|
|
command line. To do so, just follow these simple instructions:
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
a. Install GNU Make
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
Because GNU Make is the only Make tool supported to compile
|
|
|
|
FreeType 2, you should install it on your machine.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
The FreeType 2 build system relies on many features special to GNU
|
|
|
|
Make -- trying to build the library with any other Make tool will
|
|
|
|
*fail*.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
* builds/win32/detekt.mk: Fix .PHONY target for Intel compiler.
Renamed "ftnames.h" to "ftsnames.h", and FT_NAMES_H to
FT_SFNT_NAMES_H.
* docs/docmaker.py: Added generation of INDEX link in table of
contents.
* INSTALL, docs/BUILD: Updated documentation to indicate that the
compilation process has changed slightly (no more `src' required in
* builds/*/*-def.mk: Changed the objects directory from "obj" to
"objs".
* include/freetype/config/ftheader.h: Removed obsolete macros like
FT_SOURCE_FILE, etc. and added cache-specific macro definitions that
were previously defined in <freetype/ftcache.h>. Added comments to
be included in a new API Reference section.
* src/*/*: Removed the use of FT_SOURCE_FILE, etc. Now, each
component needs to add its own directory to the include path at
compile time. Modified all "rules.mk" and "descrip.mms"
accordingly.
* src/cid/cidobjs.c, src/cid/cidload.c, src/pcf/pcfread.c,
src/type1/t1load.c, src/type1/t1objs.c: Added a few casts to remove
compiler warnings in pedantic modes.
* include/config/ft2build.h, include/config/ftheader.h: The file
top-level <ft2build.h>.
* include/config/ftheader.h: Added new section describing the #include
macros.
the Type 2 glyph charstring (used by conversion programs).
* docs/docmaker.py: Added cross-references generation as well as
seac emulation provided by the Type 2 endchar operator.
* src/cid/cidafm.c, src/cid/cidafm.h: removed un-needed files,
Added support for clipped direct rendering in the smooth renderer.
* src/cff/t2objs.c (T2_Init_Face): For pure CFF fonts, set
2001-03-20 22:58:56 +00:00
|
|
|
NEARLY ALL OTHER MAKE TOOLS WILL FAIL, INCLUDING "BSD MAKE", SO
|
|
|
|
REALLY INSTALL A RECENT VERSION OF GNU MAKE ON YOUR SYSTEM!
|
2001-03-20 14:50:04 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
Make sure that you are invoking GNU Make from the command line, by
|
|
|
|
typing something like:
|
2000-10-31 20:42:18 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
make -v
|
2000-10-31 20:42:18 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
to display its version number.
|
2000-10-31 20:42:18 +00:00
|
|
|
|
* builds/win32/detekt.mk: Fix .PHONY target for Intel compiler.
Renamed "ftnames.h" to "ftsnames.h", and FT_NAMES_H to
FT_SFNT_NAMES_H.
* docs/docmaker.py: Added generation of INDEX link in table of
contents.
* INSTALL, docs/BUILD: Updated documentation to indicate that the
compilation process has changed slightly (no more `src' required in
* builds/*/*-def.mk: Changed the objects directory from "obj" to
"objs".
* include/freetype/config/ftheader.h: Removed obsolete macros like
FT_SOURCE_FILE, etc. and added cache-specific macro definitions that
were previously defined in <freetype/ftcache.h>. Added comments to
be included in a new API Reference section.
* src/*/*: Removed the use of FT_SOURCE_FILE, etc. Now, each
component needs to add its own directory to the include path at
compile time. Modified all "rules.mk" and "descrip.mms"
accordingly.
* src/cid/cidobjs.c, src/cid/cidload.c, src/pcf/pcfread.c,
src/type1/t1load.c, src/type1/t1objs.c: Added a few casts to remove
compiler warnings in pedantic modes.
* include/config/ft2build.h, include/config/ftheader.h: The file
top-level <ft2build.h>.
* include/config/ftheader.h: Added new section describing the #include
macros.
the Type 2 glyph charstring (used by conversion programs).
* docs/docmaker.py: Added cross-references generation as well as
seac emulation provided by the Type 2 endchar operator.
* src/cid/cidafm.c, src/cid/cidafm.h: removed un-needed files,
Added support for clipped direct rendering in the smooth renderer.
* src/cff/t2objs.c (T2_Init_Face): For pure CFF fonts, set
2001-03-20 22:58:56 +00:00
|
|
|
VERSION 3.78.1 OR NEWER IS NEEDED!
|
2001-03-07 21:20:48 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
b. Invoke `make'
|
2000-10-03 17:51:29 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
Go to the root directory of FreeType 2, then simply invoke GNU
|
|
|
|
Make from the command line. This will launch the FreeType 2 host
|
|
|
|
platform detection routines. A summary will be displayed, for
|
|
|
|
example, on Win32:
|
2000-07-08 00:41:13 +00:00
|
|
|
|
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
==============================================================
|
2000-07-08 00:41:13 +00:00
|
|
|
FreeType build system -- automatic system detection
|
|
|
|
|
|
|
|
The following settings are used:
|
|
|
|
|
|
|
|
platform win32
|
|
|
|
compiler gcc
|
|
|
|
configuration directory ./builds/win32
|
|
|
|
configuration rules ./builds/win32/w32-gcc.mk
|
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
If this does not correspond to your system or settings please
|
|
|
|
remove the file 'config.mk' from this directory then read the
|
|
|
|
INSTALL file for help.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
|
|
|
Otherwise, simply type 'make' again to build the library.
|
2000-10-14 15:24:39 +00:00
|
|
|
=============================================================
|
2000-07-08 00:41:13 +00:00
|
|
|
|
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
If the detected settings correspond to your platform and compiler,
|
|
|
|
skip to step e. Note that if your platform is completely alien to
|
|
|
|
the build system, the detected platform will be `ansi'.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
c. Configure the build system for a different compiler
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
If the build system correctly detected your platform, but you want
|
|
|
|
to use a different compiler than the one specified in the summary
|
|
|
|
(for most platforms, gcc is the defaut compiler), invoke GNU Make
|
|
|
|
with
|
2000-07-08 00:41:13 +00:00
|
|
|
|
|
|
|
make setup <compiler>
|
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
For example:
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
to use Visual C++ on Win32, type: "make setup visualc"
|
|
|
|
to use LCC-Win32 on Win32, type: "make setup lcc"
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
The <compiler> name to use is platform-dependent. The list of
|
|
|
|
available compilers for your system is available in the file
|
|
|
|
`builds/<system>/detect.mk' (note that we hope to make the list
|
|
|
|
displayed at user demand in the final release).
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
If you are satisfied by the new configuration summary, skip to
|
|
|
|
step e.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
d. Configure the build system for an unknown platform/compiler
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
The auto-detection/setup phase of the build system copies a file
|
|
|
|
to the current directory under the name `config.mk'.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
For example, on OS/2+gcc, it would simply copy
|
|
|
|
`builds/os2/os2-gcc.mk' to `./config.mk'.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
If for some reason your platform isn't correctly detected, copy
|
|
|
|
manually the configuration sub-makefile to `./config.mk' and go to
|
|
|
|
step e.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
Note that this file is a sub-Makefile used to specify Make
|
|
|
|
variables for compiler and linker invocation during the build.
|
|
|
|
You can easily create your own version from one of the existing
|
|
|
|
configuration files, then copy it to the current directory under
|
|
|
|
the name `./config.mk'.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
e. Build the library
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
The auto-detection/setup phase should have copied a file in the
|
|
|
|
current directory, called `./config.mk'. This file contains
|
|
|
|
definitions of various Make variables used to invoke the compiler
|
|
|
|
and linker during the build.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
To launch the build, simply invoke GNU Make again: The top
|
|
|
|
Makefile will detect the configuration file and run the build with
|
|
|
|
it.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
f. Build the demonstration programs
|
2000-07-08 00:41:13 +00:00
|
|
|
|
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
III. DETAILED COMPILATION PROCEDURE
|
2000-07-08 00:41:13 +00:00
|
|
|
-----------------------------------
|
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
If you don't want to compile FreeType 2 from the command-line (for
|
|
|
|
example if you use a graphical IDE on a Mac or Windows), you will
|
|
|
|
need to understand how the FreeType files are organized.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
FreeType 2 has a very modular design, and it is made of several
|
|
|
|
components. Each component must be compiled as a stand-alone object
|
|
|
|
file, even if it is really made of several C source files. For
|
|
|
|
example, the `base layer' component is made of the following C
|
|
|
|
files:
|
2000-07-08 00:41:13 +00:00
|
|
|
|
|
|
|
src/
|
|
|
|
base/
|
|
|
|
ftcalc.c - computations
|
2000-10-14 15:24:39 +00:00
|
|
|
ftextend.c - extensions support
|
2000-07-08 00:41:13 +00:00
|
|
|
ftlist.c - simple list management
|
2000-10-14 15:24:39 +00:00
|
|
|
ftobjs.c - object management
|
2000-07-08 00:41:13 +00:00
|
|
|
ftoutln.c - simple outline processing
|
2000-10-14 15:24:39 +00:00
|
|
|
ftstream.c - stream input
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
However, you can create a single object file by compiling the file
|
|
|
|
`src/base/ftbase.c', which basically contains
|
|
|
|
|
2001-03-20 14:50:04 +00:00
|
|
|
#include "ftcalc.c"
|
|
|
|
#include "ftobjs.c"
|
|
|
|
#include "ftstream.c"
|
|
|
|
#include "ftlist.c"
|
|
|
|
#include "ftoutln.c"
|
|
|
|
#include "ftextend.c"
|
2000-10-14 15:24:39 +00:00
|
|
|
|
|
|
|
Similarly, each component has a single `englobing' C file to compile
|
|
|
|
it as a stand-alone object:
|
|
|
|
|
|
|
|
src/autohint/autohint.c - the autohinting module
|
|
|
|
src/base/ftbase.c - the base layer, high-level interface
|
|
|
|
src/cache/ftcache.c - a glyph and image caching system
|
|
|
|
(still experimental)
|
|
|
|
src/cff/cff.c - the OpenType font driver
|
|
|
|
src/cid/type1cid.c - the CID-keyed font driver
|
|
|
|
src/psaux/psaux.c - the PS support module
|
|
|
|
src/psnames/psnames.c - a support module to handle PS glyph
|
|
|
|
names
|
|
|
|
src/raster1/raster1.c - the monochrome raster module
|
|
|
|
src/sfnt/sfnt.c - the `sfnt' module
|
|
|
|
src/smooth/smooth.c - the anti-aliasing raster module
|
|
|
|
src/truetype/truetype.c - the TrueType font driver
|
2000-10-28 17:10:06 +00:00
|
|
|
src/type1/type1.c - the Type 1 font driver
|
2000-10-14 15:24:39 +00:00
|
|
|
|
* builds/win32/detekt.mk: Fix .PHONY target for Intel compiler.
Renamed "ftnames.h" to "ftsnames.h", and FT_NAMES_H to
FT_SFNT_NAMES_H.
* docs/docmaker.py: Added generation of INDEX link in table of
contents.
* INSTALL, docs/BUILD: Updated documentation to indicate that the
compilation process has changed slightly (no more `src' required in
* builds/*/*-def.mk: Changed the objects directory from "obj" to
"objs".
* include/freetype/config/ftheader.h: Removed obsolete macros like
FT_SOURCE_FILE, etc. and added cache-specific macro definitions that
were previously defined in <freetype/ftcache.h>. Added comments to
be included in a new API Reference section.
* src/*/*: Removed the use of FT_SOURCE_FILE, etc. Now, each
component needs to add its own directory to the include path at
compile time. Modified all "rules.mk" and "descrip.mms"
accordingly.
* src/cid/cidobjs.c, src/cid/cidload.c, src/pcf/pcfread.c,
src/type1/t1load.c, src/type1/t1objs.c: Added a few casts to remove
compiler warnings in pedantic modes.
* include/config/ft2build.h, include/config/ftheader.h: The file
top-level <ft2build.h>.
* include/config/ftheader.h: Added new section describing the #include
macros.
the Type 2 glyph charstring (used by conversion programs).
* docs/docmaker.py: Added cross-references generation as well as
seac emulation provided by the Type 2 endchar operator.
* src/cid/cidafm.c, src/cid/cidafm.h: removed un-needed files,
Added support for clipped direct rendering in the smooth renderer.
* src/cff/t2objs.c (T2_Init_Face): For pure CFF fonts, set
2001-03-20 22:58:56 +00:00
|
|
|
The last module of FreeType 2, `winfonts' (implementing support for
|
2000-10-14 15:24:39 +00:00
|
|
|
Windows FNT format), is a single file.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
|
|
|
To compile one component, do the following:
|
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
- Add the top-level `include' directory to your compilation
|
|
|
|
include path
|
2000-07-08 00:41:13 +00:00
|
|
|
|
* builds/win32/detekt.mk: Fix .PHONY target for Intel compiler.
Renamed "ftnames.h" to "ftsnames.h", and FT_NAMES_H to
FT_SFNT_NAMES_H.
* docs/docmaker.py: Added generation of INDEX link in table of
contents.
* INSTALL, docs/BUILD: Updated documentation to indicate that the
compilation process has changed slightly (no more `src' required in
* builds/*/*-def.mk: Changed the objects directory from "obj" to
"objs".
* include/freetype/config/ftheader.h: Removed obsolete macros like
FT_SOURCE_FILE, etc. and added cache-specific macro definitions that
were previously defined in <freetype/ftcache.h>. Added comments to
be included in a new API Reference section.
* src/*/*: Removed the use of FT_SOURCE_FILE, etc. Now, each
component needs to add its own directory to the include path at
compile time. Modified all "rules.mk" and "descrip.mms"
accordingly.
* src/cid/cidobjs.c, src/cid/cidload.c, src/pcf/pcfread.c,
src/type1/t1load.c, src/type1/t1objs.c: Added a few casts to remove
compiler warnings in pedantic modes.
* include/config/ft2build.h, include/config/ftheader.h: The file
top-level <ft2build.h>.
* include/config/ftheader.h: Added new section describing the #include
macros.
the Type 2 glyph charstring (used by conversion programs).
* docs/docmaker.py: Added cross-references generation as well as
seac emulation provided by the Type 2 endchar operator.
* src/cid/cidafm.c, src/cid/cidafm.h: removed un-needed files,
Added support for clipped direct rendering in the smooth renderer.
* src/cff/t2objs.c (T2_Init_Face): For pure CFF fonts, set
2001-03-20 22:58:56 +00:00
|
|
|
- Add the `src/<component>' directory to your compilation include
|
|
|
|
path, or simply `cd' to the component's source directory.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
- Compile the component `source' file (see list below); you don't
|
* builds/win32/detekt.mk: Fix .PHONY target for Intel compiler.
Renamed "ftnames.h" to "ftsnames.h", and FT_NAMES_H to
FT_SFNT_NAMES_H.
* docs/docmaker.py: Added generation of INDEX link in table of
contents.
* INSTALL, docs/BUILD: Updated documentation to indicate that the
compilation process has changed slightly (no more `src' required in
* builds/*/*-def.mk: Changed the objects directory from "obj" to
"objs".
* include/freetype/config/ftheader.h: Removed obsolete macros like
FT_SOURCE_FILE, etc. and added cache-specific macro definitions that
were previously defined in <freetype/ftcache.h>. Added comments to
be included in a new API Reference section.
* src/*/*: Removed the use of FT_SOURCE_FILE, etc. Now, each
component needs to add its own directory to the include path at
compile time. Modified all "rules.mk" and "descrip.mms"
accordingly.
* src/cid/cidobjs.c, src/cid/cidload.c, src/pcf/pcfread.c,
src/type1/t1load.c, src/type1/t1objs.c: Added a few casts to remove
compiler warnings in pedantic modes.
* include/config/ft2build.h, include/config/ftheader.h: The file
top-level <ft2build.h>.
* include/config/ftheader.h: Added new section describing the #include
macros.
the Type 2 glyph charstring (used by conversion programs).
* docs/docmaker.py: Added cross-references generation as well as
seac emulation provided by the Type 2 endchar operator.
* src/cid/cidafm.c, src/cid/cidafm.h: removed un-needed files,
Added support for clipped direct rendering in the smooth renderer.
* src/cff/t2objs.c (T2_Init_Face): For pure CFF fonts, set
2001-03-20 22:58:56 +00:00
|
|
|
need to be in the component's directory if you added
|
|
|
|
`src/<component>' to your include path.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
For example, the following line can be used to compile the truetype
|
|
|
|
driver on Unix:
|
2000-07-08 00:41:13 +00:00
|
|
|
|
|
|
|
cd freetype2/
|
* builds/win32/detekt.mk: Fix .PHONY target for Intel compiler.
Renamed "ftnames.h" to "ftsnames.h", and FT_NAMES_H to
FT_SFNT_NAMES_H.
* docs/docmaker.py: Added generation of INDEX link in table of
contents.
* INSTALL, docs/BUILD: Updated documentation to indicate that the
compilation process has changed slightly (no more `src' required in
* builds/*/*-def.mk: Changed the objects directory from "obj" to
"objs".
* include/freetype/config/ftheader.h: Removed obsolete macros like
FT_SOURCE_FILE, etc. and added cache-specific macro definitions that
were previously defined in <freetype/ftcache.h>. Added comments to
be included in a new API Reference section.
* src/*/*: Removed the use of FT_SOURCE_FILE, etc. Now, each
component needs to add its own directory to the include path at
compile time. Modified all "rules.mk" and "descrip.mms"
accordingly.
* src/cid/cidobjs.c, src/cid/cidload.c, src/pcf/pcfread.c,
src/type1/t1load.c, src/type1/t1objs.c: Added a few casts to remove
compiler warnings in pedantic modes.
* include/config/ft2build.h, include/config/ftheader.h: The file
top-level <ft2build.h>.
* include/config/ftheader.h: Added new section describing the #include
macros.
the Type 2 glyph charstring (used by conversion programs).
* docs/docmaker.py: Added cross-references generation as well as
seac emulation provided by the Type 2 endchar operator.
* src/cid/cidafm.c, src/cid/cidafm.h: removed un-needed files,
Added support for clipped direct rendering in the smooth renderer.
* src/cff/t2objs.c (T2_Init_Face): For pure CFF fonts, set
2001-03-20 22:58:56 +00:00
|
|
|
cc -c -Iinclude -Isrc/truetype src/truetype/truetype.c
|
2000-07-08 00:41:13 +00:00
|
|
|
|
|
|
|
Alternatively:
|
|
|
|
|
|
|
|
cd freetype2/src/truetype
|
2001-03-20 14:50:04 +00:00
|
|
|
cc -c -I../../include truetype.c
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
Finally, FreeType 2 contains some other components:
|
|
|
|
|
|
|
|
src/base/ftsystem.c - system-specific memory and i/o support
|
|
|
|
src/base/ftinit.c - initialization layer
|
|
|
|
src/base/ftdebug.c - debugging component (empty in release
|
|
|
|
build)
|
|
|
|
src/base/ftglyph.c - optional convenience functions
|
|
|
|
|
|
|
|
All font drivers are optional. The `sfnt', `psaux', and `psnames'
|
|
|
|
modules are mandatory for certain drivers. However, you may need to
|
|
|
|
update the list of drivers that are statically linked to the
|
|
|
|
library, which is located in the configuration file
|
|
|
|
`include/freetype/config/ftmodule.h'.
|
|
|
|
|
|
|
|
|
|
|
|
IV. Support for flat-directory compilation
|
|
|
|
------------------------------------------
|
|
|
|
|
* builds/win32/detekt.mk: Fix .PHONY target for Intel compiler.
Renamed "ftnames.h" to "ftsnames.h", and FT_NAMES_H to
FT_SFNT_NAMES_H.
* docs/docmaker.py: Added generation of INDEX link in table of
contents.
* INSTALL, docs/BUILD: Updated documentation to indicate that the
compilation process has changed slightly (no more `src' required in
* builds/*/*-def.mk: Changed the objects directory from "obj" to
"objs".
* include/freetype/config/ftheader.h: Removed obsolete macros like
FT_SOURCE_FILE, etc. and added cache-specific macro definitions that
were previously defined in <freetype/ftcache.h>. Added comments to
be included in a new API Reference section.
* src/*/*: Removed the use of FT_SOURCE_FILE, etc. Now, each
component needs to add its own directory to the include path at
compile time. Modified all "rules.mk" and "descrip.mms"
accordingly.
* src/cid/cidobjs.c, src/cid/cidload.c, src/pcf/pcfread.c,
src/type1/t1load.c, src/type1/t1objs.c: Added a few casts to remove
compiler warnings in pedantic modes.
* include/config/ft2build.h, include/config/ftheader.h: The file
top-level <ft2build.h>.
* include/config/ftheader.h: Added new section describing the #include
macros.
the Type 2 glyph charstring (used by conversion programs).
* docs/docmaker.py: Added cross-references generation as well as
seac emulation provided by the Type 2 endchar operator.
* src/cid/cidafm.c, src/cid/cidafm.h: removed un-needed files,
Added support for clipped direct rendering in the smooth renderer.
* src/cff/t2objs.c (T2_Init_Face): For pure CFF fonts, set
2001-03-20 22:58:56 +00:00
|
|
|
It is possible to put all FreeType 2 source files into a single
|
2000-10-14 15:24:39 +00:00
|
|
|
directory, with the exception of the `include' hierarchy.
|
|
|
|
|
|
|
|
1. Copy all files in current directory:
|
2000-10-31 20:42:18 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
cp freetype2/src/base/*.[hc] .
|
|
|
|
cp freetype2/src/raster1/*.[hc] .
|
|
|
|
cp freetype2/src/smooth/*.[hc] .
|
|
|
|
etc.
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
2. Compile sources:
|
2000-10-31 20:42:18 +00:00
|
|
|
|
2001-03-20 14:50:04 +00: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
|
2000-10-14 15:24:39 +00:00
|
|
|
etc.
|
|
|
|
|
* builds/win32/detekt.mk: Fix .PHONY target for Intel compiler.
Renamed "ftnames.h" to "ftsnames.h", and FT_NAMES_H to
FT_SFNT_NAMES_H.
* docs/docmaker.py: Added generation of INDEX link in table of
contents.
* INSTALL, docs/BUILD: Updated documentation to indicate that the
compilation process has changed slightly (no more `src' required in
* builds/*/*-def.mk: Changed the objects directory from "obj" to
"objs".
* include/freetype/config/ftheader.h: Removed obsolete macros like
FT_SOURCE_FILE, etc. and added cache-specific macro definitions that
were previously defined in <freetype/ftcache.h>. Added comments to
be included in a new API Reference section.
* src/*/*: Removed the use of FT_SOURCE_FILE, etc. Now, each
component needs to add its own directory to the include path at
compile time. Modified all "rules.mk" and "descrip.mms"
accordingly.
* src/cid/cidobjs.c, src/cid/cidload.c, src/pcf/pcfread.c,
src/type1/t1load.c, src/type1/t1objs.c: Added a few casts to remove
compiler warnings in pedantic modes.
* include/config/ft2build.h, include/config/ftheader.h: The file
top-level <ft2build.h>.
* include/config/ftheader.h: Added new section describing the #include
macros.
the Type 2 glyph charstring (used by conversion programs).
* docs/docmaker.py: Added cross-references generation as well as
seac emulation provided by the Type 2 endchar operator.
* src/cid/cidafm.c, src/cid/cidafm.h: removed un-needed files,
Added support for clipped direct rendering in the smooth renderer.
* src/cff/t2objs.c (T2_Init_Face): For pure CFF fonts, set
2001-03-20 22:58:56 +00:00
|
|
|
You don't need to define the FT_FLAT_COMPILATION macro (as this was
|
|
|
|
required in previous releases of FreeType 2).
|
2000-07-08 00:41:13 +00:00
|
|
|
|
2000-10-14 15:24:39 +00:00
|
|
|
End of file
|