shithub: freetype+ttf2subf

Download patch

ref: 1639c7948231b4dcba4e00b6b9db1bbc3fb929e9
parent: 4f3b5bbd958a4abe05f7d3831b103bb72b9b9488
author: Werner Lemberg <[email protected]>
date: Sat May 6 12:44:58 EDT 2006

* include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.

* builds/unix/configure.ac (version_info): Set to 9:10:3.

* builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj, builds/freetype.mk (refdoc),
Jamfile (RefDoc), README: s/220/221/, s/2.2.0/2.2.1/.
Minor updates.

* docs/CHANGES, docs/VERSION.DLL, docs/PROBLEMS, README.CVS:
Updated.

* builds/unix/install-sh: Updated from `texinfo' CVS module at
savannah.gnu.org.

* devel/ftoption.h: Synchronize with
include/freetype/config/ftoption.h.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+2006-05-06  Werner Lemberg  <[email protected]>
+
+	* include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+
+	* builds/unix/configure.ac (version_info): Set to 9:10:3.
+
+	* builds/win32/visualc/index.html,
+	builds/win32/visualc/freetype.dsp,
+	builds/win32/visualc/freetype.vcproj, builds/freetype.mk (refdoc),
+	Jamfile (RefDoc), README: s/220/221/, s/2.2.0/2.2.1/.
+	Minor updates.
+
+	* docs/CHANGES, docs/VERSION.DLL, docs/PROBLEMS, README.CVS:
+	Updated.
+
+	* builds/unix/install-sh: Updated from `texinfo' CVS module at
+	savannah.gnu.org.
+
+	* devel/ftoption.h: Synchronize with
+	include/freetype/config/ftoption.h.
+
 2006-05-04  Werner Lemberg  <[email protected]>
 
 	* src/lzw/ftlzw2.c: Renamed to...
--- a/Jamfile
+++ b/Jamfile
@@ -193,7 +193,7 @@
 
 actions RefDoc
 {
-  python $(FT2_SRC)/tools/docmaker/docmaker.py --prefix=ft2 --title=FreeType-2.2 --output=$(DOC_DIR)  $(FT2_INCLUDE)/freetype/*.h  $(FT2_INCLUDE)/freetype/config/*.h  $(FT2_INCLUDE)/freetype/cache/*.h
+  python $(FT2_SRC)/tools/docmaker/docmaker.py --prefix=ft2 --title=FreeType-2.2.1 --output=$(DOC_DIR) $(FT2_INCLUDE)/freetype/*.h $(FT2_INCLUDE)/freetype/config/*.h
 }
 
 RefDoc  refdoc ;
--- a/README
+++ b/README
@@ -9,8 +9,8 @@
   is called `libttf'.  They are *not* compatible!
 
 
-  FreeType 2.2
-  ============
+  FreeType 2.2.1
+  ==============
 
   Please   read   the  docs/CHANGES   file,   it  contains   IMPORTANT
   INFORMATION.
@@ -24,9 +24,9 @@
 
   and download one of the following files.
 
-    freetype-doc-2.2.tar.bz2
-    freetype-doc-2.2.tar.gz
-    ftdoc22.zip
+    freetype-doc-2.2.1.tar.bz2
+    freetype-doc-2.2.1.tar.gz
+    ftdoc221.zip
 
 
   Bugs
--- a/README.CVS
+++ b/README.CVS
@@ -1,4 +1,4 @@
-The CVS archive doesn't contain pre-built configuration scripts for
+The CVS  archive doesn't  contain pre-built configuration  scripts for
 UNIXish platforms.  To generate them say
 
   sh autogen.sh
@@ -5,15 +5,15 @@
 
 which in turn depends on the following packages:
 
-  automake (1.9.4)
-  libtool (1.5.16)
-  autoconf (2.59b)
+  automake (1.9.6)
+  libtool (1.5.22)
+  autoconf (2.59c)
 
-The versions given in parentheses are known to work.  Note that autogen.sh
-also sets up proper file permissions for the configure and auxiliary
-scripts.
+The  versions given  in  parentheses  are known  to  work.  Note  that
+autogen.sh also sets up proper  file permissions for the configure and
+auxiliary scripts.
 
-For static builds which don't use platform specific optimizations no
+For static builds which  don't use platform specific optimizations, no
 configure script is necessary at all; saying
 
   make setup ansi
--- a/builds/freetype.mk
+++ b/builds/freetype.mk
@@ -270,7 +270,7 @@
 refdoc:
 	python $(SRC_DIR)/tools/docmaker/docmaker.py \
                --prefix=ft2                          \
-               --title=FreeType-2.2                  \
+               --title=FreeType-2.2.1                \
                --output=$(DOC_DIR)                   \
                $(PUBLIC_DIR)/*.h                     \
                $(PUBLIC_DIR)/config/*.h              \
--- a/builds/toplevel.mk
+++ b/builds/toplevel.mk
@@ -17,18 +17,18 @@
 #
 # It works as follows:
 #
-# - When invoked for the first time, this Makefile will include the rules
-#   found in `PROJECT/builds/detect.mk'.  They are in charge of detecting
-#   the current platform.
+# - When invoked for the first time, this Makefile includes the rules found
+#   in `PROJECT/builds/detect.mk'.  They are in charge of detecting the
+#   current platform.
 #
-#   A summary of the detection will be displayed, and the file `config.mk'
-#   will be created in the current directory.
+#   A summary of the detection is displayed, and the file `config.mk' is
+#   created in the current directory.
 #
-# - When invoked later, this Makefile will include the rules found in
-#   `config.mk'.  This sub-Makefile will define some system-specific
-#   variables (like compiler, compilation flags, object suffix, etc.), then
-#   include the rules found in `PROJECT/builds/PROJECT.mk', used to build
-#   the library.
+# - When invoked later, this Makefile includes the rules found in
+#   `config.mk'.  This sub-Makefile defines some system-specific variables
+#   (like compiler, compilation flags, object suffix, etc.), then includes
+#   the rules found in `PROJECT/builds/PROJECT.mk', used to build the
+#   library.
 #
 # See the comments in `builds/detect.mk' and `builds/PROJECT.mk' for more
 # details on host platform detection and library builds.
@@ -56,7 +56,7 @@
 
 
 # FTMODULE_H, as its name suggests, indicates where the FreeType module
-# classes resides.
+# class file resides.
 #
 FTMODULE_H ?= $(OBJ_DIR)/ftmodule.h
 
--- a/builds/unix/configure.ac
+++ b/builds/unix/configure.ac
@@ -17,7 +17,7 @@
 
 # Don't forget to update docs/VERSION.DLL!
 
-version_info='9:9:3'
+version_info='9:10:3'
 AC_SUBST([version_info])
 ft_version=`echo $version_info | tr : .`
 AC_SUBST([ft_version])
--- a/builds/unix/install-sh
+++ b/builds/unix/install-sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 # install - install a program, script, or datafile
 
-scriptversion=2006-01-12.21
+scriptversion=2006-04-25.22
 
 # This originates from X11R5 (mit/util/scripts/install.sh), which was
 # later released in X11R6 (xc/config/util/install.sh) with the
@@ -109,7 +109,7 @@
   CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
 "
 
-while test -n "$1"; do
+while test $# -ne 0; do
   case $1 in
     -c) shift
         continue;;
@@ -150,25 +150,33 @@
 
     --version) echo "$0 $scriptversion"; exit $?;;
 
-    *)  # When -d is used, all remaining arguments are directories to create.
-	# When -t is used, the destination is already specified.
-	test -n "$dir_arg$dstarg" && break
-        # Otherwise, the last argument is the destination.  Remove it from $@.
-	for arg
-	do
-          if test -n "$dstarg"; then
-	    # $@ is not empty: it contains at least $arg.
-	    set fnord "$@" "$dstarg"
-	    shift # fnord
-	  fi
-	  shift # arg
-	  dstarg=$arg
-	done
+    --)	shift
 	break;;
+
+    -*)	echo "$0: invalid option: $1" >&2
+	exit 1;;
+
+    *)  break;;
   esac
 done
 
-if test -z "$1"; then
+if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
+  # When -d is used, all remaining arguments are directories to create.
+  # When -t is used, the destination is already specified.
+  # Otherwise, the last argument is the destination.  Remove it from $@.
+  for arg
+  do
+    if test -n "$dstarg"; then
+      # $@ is not empty: it contains at least $arg.
+      set fnord "$@" "$dstarg"
+      shift # fnord
+    fi
+    shift # arg
+    dstarg=$arg
+  done
+fi
+
+if test $# -eq 0; then
   if test -z "$dir_arg"; then
     echo "$0: no input file specified." >&2
     exit 1
@@ -230,8 +238,7 @@
 	expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 	     X"$dst" : 'X\(//\)[^/]' \| \
 	     X"$dst" : 'X\(//\)$' \| \
-	     X"$dst" : 'X\(/\)' \| \
-	     .       : '\(.\)' 2>/dev/null ||
+	     X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
 	echo X"$dst" |
 	    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 		   s//\1/
--- a/builds/win32/visualc/freetype.dsp
+++ b/builds/win32/visualc/freetype.dsp
@@ -54,7 +54,7 @@
 # ADD BSC32 /nologo
 LIB32=link.exe -lib
 # ADD BASE LIB32 /nologo
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype220.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype221.lib"
 
 !ELSEIF  "$(CFG)" == "freetype - Win32 Debug"
 
@@ -78,7 +78,7 @@
 # ADD BSC32 /nologo
 LIB32=link.exe -lib
 # ADD BASE LIB32 /nologo
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype220_D.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype221_D.lib"
 
 !ELSEIF  "$(CFG)" == "freetype - Win32 Debug Multithreaded"
 
@@ -103,7 +103,7 @@
 # ADD BSC32 /nologo
 LIB32=link.exe -lib
 # ADD BASE LIB32 /nologo /out:"lib\freetype200b8_D.lib"
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype220MT_D.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype221MT_D.lib"
 
 !ELSEIF  "$(CFG)" == "freetype - Win32 Release Multithreaded"
 
@@ -127,7 +127,7 @@
 # ADD BSC32 /nologo
 LIB32=link.exe -lib
 # ADD BASE LIB32 /nologo /out:"lib\freetype200b8.lib"
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype220MT.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype221MT.lib"
 
 !ELSEIF  "$(CFG)" == "freetype - Win32 Release Singlethreaded"
 
@@ -152,7 +152,7 @@
 # ADD BSC32 /nologo
 LIB32=link.exe -lib
 # ADD BASE LIB32 /nologo /out:"..\..\..\objs\freetype206.lib"
-# ADD LIB32 /out:"..\..\..\objs\freetype220ST.lib"
+# ADD LIB32 /out:"..\..\..\objs\freetype221ST.lib"
 # SUBTRACT LIB32 /nologo
 
 !ELSEIF  "$(CFG)" == "freetype - Win32 Debug Singlethreaded"
@@ -178,7 +178,7 @@
 # ADD BSC32 /nologo
 LIB32=link.exe -lib
 # ADD BASE LIB32 /nologo /out:"..\..\..\objs\freetype206_D.lib"
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype220ST_D.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype221ST_D.lib"
 
 !ENDIF 
 
--- a/builds/win32/visualc/freetype.vcproj
+++ b/builds/win32/visualc/freetype.vcproj
@@ -41,7 +41,7 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLibrarianTool"
-				OutputFile="..\..\..\objs\freetype220.lib"
+				OutputFile="..\..\..\objs\freetype221.lib"
 				SuppressStartupBanner="TRUE"/>
 			<Tool
 				Name="VCMIDLTool"/>
@@ -94,7 +94,7 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLibrarianTool"
-				OutputFile="..\..\..\objs\freetype220MT.lib"
+				OutputFile="..\..\..\objs\freetype221MT.lib"
 				SuppressStartupBanner="TRUE"/>
 			<Tool
 				Name="VCMIDLTool"/>
@@ -147,7 +147,7 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLibrarianTool"
-				OutputFile="..\..\..\objs\freetype220ST.lib"/>
+				OutputFile="..\..\..\objs\freetype221ST.lib"/>
 			<Tool
 				Name="VCMIDLTool"/>
 			<Tool
@@ -197,7 +197,7 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLibrarianTool"
-				OutputFile="..\..\..\objs\freetype220_D.lib"
+				OutputFile="..\..\..\objs\freetype221_D.lib"
 				SuppressStartupBanner="TRUE"/>
 			<Tool
 				Name="VCMIDLTool"/>
@@ -248,7 +248,7 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLibrarianTool"
-				OutputFile="..\..\..\objs\freetype220ST_D.lib"
+				OutputFile="..\..\..\objs\freetype221ST_D.lib"
 				SuppressStartupBanner="TRUE"/>
 			<Tool
 				Name="VCMIDLTool"/>
@@ -300,7 +300,7 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLibrarianTool"
-				OutputFile="..\..\..\objs\freetype220MT_D.lib"
+				OutputFile="..\..\..\objs\freetype221MT_D.lib"
 				SuppressStartupBanner="TRUE"/>
 			<Tool
 				Name="VCMIDLTool"/>
--- a/builds/win32/visualc/index.html
+++ b/builds/win32/visualc/index.html
@@ -12,14 +12,14 @@
 
 <p>This directory contains project files for Visual C++, named
 <tt>freetype.dsp</tt>, and Visual Studio, called <tt>freetype.sln</tt>.  It
-will compile the following libraries from the FreeType 2.2.0 sources:</p>
+will compile the following libraries from the FreeType 2.2.1 sources:</p>
 
 <ul>
   <pre>
-    freetype220.lib     - release build; single threaded
-    freetype220_D.lib   - debug build;   single threaded
-    freetype220MT.lib   - release build; multi-threaded
-    freetype220MT_D.lib - debug build;   multi-threaded</pre>
+    freetype221.lib     - release build; single threaded
+    freetype221_D.lib   - debug build;   single threaded
+    freetype221MT.lib   - release build; multi-threaded
+    freetype221MT_D.lib - debug build;   multi-threaded</pre>
 </ul>
 
 <p>Be sure to extract the files with the Windows (CR+LF) line endings.  ZIP
--- a/devel/ftoption.h
+++ b/devel/ftoption.h
@@ -582,20 +582,6 @@
 
 
   /*
-   * This temporary macro is used to control whether we are going to compile
-   * certain functions like ft_mem_alloc in a way that prevents recent GCC
-   * releases from emitting zillions of `strict aliasing' warning messages
-   * each time a memory-management function is called.
-   *
-   * Note that it shouldn't be activated when building the library with
-   * a C++ compiler.
-   */
-#ifndef __cplusplus
-#define FT_STRICT_ALIASING
-#endif
-
-
-  /*
    * Define this variable if you want to keep the layout of internal
    * structures that was used prior to FreeType 2.2.  This also compiles in
    * a few obsolete functions to avoid linking problems on typical Unix
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -1,5 +1,19 @@
+LATEST CHANGES BETWEEN 2.2.1 and 2.2
+
+  I. IMPORTANT BUG FIXES
+
+    - Various integer overflows have been fixed.
+
+    - PFB fonts with MacOS resource fork weren't  handled correctly on
+      non-MacOS platforms.
+
+
+======================================================================
+
 LATEST CHANGES BETWEEN 2.2 and 2.1.10
 
+(not released officially)
+
   I. IMPORTANT BUG FIXES
 
     - Vertical metrics for SFNT fonts were incorrect sometimes.
@@ -128,7 +142,8 @@
       the face.
 
     - The demo programs  `ftview' and  `ftstring' have been  rewritten
-      for better readability.
+      for better readability.   `ftview' has a new switch `-p' to test
+      FT_New_Memory_Face (instead of FT_New_Face).
 
     - FreeType now honours bit 1 in the `head' table of TrueType fonts
       (meaning `left sidebearing point at x=0').  This helps with some
--- a/docs/PROBLEMS
+++ b/docs/PROBLEMS
@@ -1,8 +1,8 @@
-This file describes various problems that have been encountered in
-compiling, installing and running FreeType 2.  Suggestions for additions or
-other improvements to this file are welcome.
+This  file describes various  problems that  have been  encountered in
+compiling,  installing  and   running  FreeType  2.   Suggestions  for
+additions or other improvements to this file are welcome.
 
----------------------------------------------------------------------------
+----------------------------------------------------------------------
 
 
 Compilation Problems
@@ -9,8 +9,8 @@
 ====================
 
 
-* I get an `internal compilation error' (ICE) while compiling FreeType 2.2.0
-  with Intel C++.
+* I get an `internal compilation error' (ICE) while compiling FreeType
+  2.2.1 with Intel C++.
 
 This has been reported for the following compiler version:
 
@@ -33,4 +33,4 @@
        ftc_inode_new,
 
 
----------------------------------------------------------------------------
+----------------------------------------------------------------------
--- a/docs/VERSION.DLL
+++ b/docs/VERSION.DLL
@@ -13,7 +13,7 @@
 For each new  public release of FreeType 2,  there are generally *three*
 distinct `version' numbers to consider:
 
-  * The official FT2 release number, like 2.0.9, or 2.1.3.
+  * The official FreeType 2 release number, like 2.0.9 or 2.1.3.
 
   * The libtool (and Unix) specific version number, like 9.2.3.  This is
     what `freetype-config --version' returns.
@@ -53,6 +53,7 @@
 
     release    libtool      so
   -------------------------------
+     2.2.1      9.10.3    6.3.10
      2.2.0      9.9.3     6.3.9
      2.1.10     9.8.3     6.3.8
      2.1.9      9.7.3     6.3.7
@@ -78,8 +79,8 @@
   - 2.0.9  was  a  bug-fix  release  of  the  `stable'  branch,  and  we
     incorrectly increased its libtool number.
 
-  - 2.1.4 is  still in  the `development' branch,  however it  is stable
-    enough to be the basis of an upcoming 2.2.0 release.
+  - 2.1.4 was a development version, however it was stable  enough to be
+    the basis of the 2.2.0 release.
 
 
 3. Autoconf Code Fragment
@@ -111,7 +112,7 @@
 
 ------------------------------------------------------------------------
 
-Copyright 2002, 2003, 2004, 2005 by
+Copyright 2002, 2003, 2004, 2005, 2006 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This  file is  part  of the  FreeType  project, and  may  only be  used,
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -44,7 +44,7 @@
   /*                                                                       */
 #define FREETYPE_MAJOR 2
 #define FREETYPE_MINOR 2
-#define FREETYPE_PATCH 0
+#define FREETYPE_PATCH 1
 
 
 #include <ft2build.h>