2
0

INSTALL.ANY 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. Instructions on how to build FreeType with your own build tool
  2. ==============================================================
  3. See the file `CUSTOMIZE' to learn how to customize FreeType to
  4. specific environments.
  5. I. Standard procedure
  6. ---------------------
  7. * DISABLE PRE-COMPILED HEADERS! This is very important for Visual
  8. C++, because FreeType uses lines like:
  9. #include FT_FREETYPE_H
  10. which are not correctly supported by this compiler while being ISO
  11. C compliant!
  12. * You need to add the directory `include' to your include path when
  13. compiling the library.
  14. * FreeType 2 is made of several components; each of them is located
  15. in a subdirectory of `freetype2/src'. For example,
  16. `freetype2/src/truetype/' contains the TrueType font driver.
  17. * DO NOT COMPILE ALL C FILES! Rather, compile the following ones.
  18. -- base components (required)
  19. src/base/ftsystem.c
  20. src/base/ftinit.c
  21. src/base/ftdebug.c
  22. src/base/ftbase.c
  23. src/base/ftbbox.c -- recommended, see <ftbbox.h>
  24. src/base/ftglyph.c -- recommended, see <ftglyph.h>
  25. src/base/ftbdf.c -- optional, see <ftbdf.h>
  26. src/base/ftbitmap.c -- optional, see <ftbitmap.h>
  27. src/base/ftcid.c -- optional, see <ftcid.h>
  28. src/base/ftfntfmt.c -- optional, see <ftfntfmt.h>
  29. src/base/ftfstype.c -- optional
  30. src/base/ftgasp.c -- optional, see <ftgasp.h>
  31. src/base/ftgxval.c -- optional, see <ftgxval.h>
  32. src/base/ftlcdfil.c -- optional, see <ftlcdfil.h>
  33. src/base/ftmm.c -- optional, see <ftmm.h>
  34. src/base/ftotval.c -- optional, see <ftotval.h>
  35. src/base/ftpatent.c -- optional
  36. src/base/ftpfr.c -- optional, see <ftpfr.h>
  37. src/base/ftstroke.c -- optional, see <ftstroke.h>
  38. src/base/ftsynth.c -- optional, see <ftsynth.h>
  39. src/base/fttype1.c -- optional, see <t1tables.h>
  40. src/base/ftwinfnt.c -- optional, see <ftwinfnt.h>
  41. src/base/ftmac.c -- only on the Macintosh
  42. -- font drivers (optional; at least one is needed)
  43. src/bdf/bdf.c -- BDF font driver
  44. src/cff/cff.c -- CFF/OpenType font driver
  45. src/cid/type1cid.c -- Type 1 CID-keyed font driver
  46. src/pcf/pcf.c -- PCF font driver
  47. src/pfr/pfr.c -- PFR/TrueDoc font driver
  48. src/sfnt/sfnt.c -- SFNT files support
  49. (TrueType & OpenType)
  50. src/truetype/truetype.c -- TrueType font driver
  51. src/type1/type1.c -- Type 1 font driver
  52. src/type42/type42.c -- Type 42 font driver
  53. src/winfonts/winfnt.c -- Windows FONT / FNT font driver
  54. -- rasterizers (optional; at least one is needed for vector
  55. formats)
  56. src/raster/raster.c -- monochrome rasterizer
  57. src/smooth/smooth.c -- anti-aliasing rasterizer
  58. -- auxiliary modules (optional)
  59. src/autofit/autofit.c -- auto hinting module
  60. src/cache/ftcache.c -- cache sub-system (in beta)
  61. src/gzip/ftgzip.c -- support for compressed fonts (.gz)
  62. src/lzw/ftlzw.c -- support for compressed fonts (.Z)
  63. src/bzip2/ftbzip2.c -- support for compressed fonts (.bz2)
  64. src/gxvalid/gxvalid.c -- TrueTypeGX/AAT table validation
  65. src/otvalid/otvalid.c -- OpenType table validation
  66. src/psaux/psaux.c -- PostScript Type 1 parsing
  67. src/pshinter/pshinter.c -- PS hinting module
  68. src/psnames/psnames.c -- PostScript glyph names support
  69. Notes:
  70. `ftcache.c' needs `ftglyph.c'
  71. `ftfstype.c' needs `fttype1.c'
  72. `ftglyph.c' needs `ftbitmap.c'
  73. `ftstroke.c' needs `ftglyph.c'
  74. `ftsynth.c' needs `ftbitmap.c'
  75. `cff.c' needs `sfnt.c', `pshinter.c', and `psnames.c'
  76. `truetype.c' needs `sfnt.c' and `psnames.c'
  77. `type1.c' needs `psaux.c' `pshinter.c', and `psnames.c'
  78. `type1cid.c' needs `psaux.c', `pshinter.c', and `psnames.c'
  79. `type42.c' needs `truetype.c'
  80. Please consult the central `include/freetype/config/ftoption.h'
  81. configuration file for details on additional libraries necessary
  82. for some optional features.
  83. Read the file `CUSTOMIZE' in case you want to compile only a subset
  84. of the drivers, renderers, and optional modules; a detailed
  85. description of the various base extension is given in the top-level
  86. file `modules.cfg'.
  87. You are done. In case of problems, see the archives of the FreeType
  88. development mailing list.
  89. II. Support for flat-directory compilation
  90. ------------------------------------------
  91. It is possible to put all FreeType 2 source files into a single
  92. directory, with the *exception* of the `include' hierarchy.
  93. 1. Copy all files in current directory
  94. cp freetype2/src/base/*.[hc] .
  95. cp freetype2/src/raster1/*.[hc] .
  96. cp freetype2/src/smooth/*.[hc] .
  97. etc.
  98. 2. Compile sources
  99. cc -c -Iinclude -DFT2_BUILD_LIBRARY ftsystem.c
  100. cc -c -Iinclude -DFT2_BUILD_LIBRARY ftinit.c
  101. cc -c -Iinclude -DFT2_BUILD_LIBRARY ftdebug.c
  102. cc -c -Iinclude -DFT2_BUILD_LIBRARY ftbase.c
  103. etc.
  104. You don't need to define the FT_FLAT_COMPILATION macro (as this
  105. was required in previous releases of FreeType 2).
  106. ----------------------------------------------------------------------
  107. Copyright 2003-2017 by
  108. David Turner, Robert Wilhelm, and Werner Lemberg.
  109. This file is part of the FreeType project, and may only be used,
  110. modified, and distributed under the terms of the FreeType project
  111. license, LICENSE.TXT. By continuing to use, modify, or distribute
  112. this file you indicate that you have read the license and understand
  113. and accept it fully.
  114. --- end of INSTALL.ANY ---