From 00666832a756014eef48c4f5bd8484cc1299bdf0 Mon Sep 17 00:00:00 2001
From: marha
Date: Fri, 20 Aug 2010 07:57:52 +0000
Subject: Updated to freetype 2.4.2
---
freetype/ChangeLog | 126 ++++++
freetype/Jamfile | 2 +-
freetype/README | 8 +-
freetype/builds/unix/config.guess | 4 +-
freetype/builds/unix/configure | 20 +-
freetype/builds/unix/configure.ac | 4 +-
freetype/builds/unix/configure.raw | 2 +-
freetype/builds/unix/ftconfig.in | 2 +-
freetype/builds/win32/vc2005/freetype.vcproj | 12 +-
freetype/builds/win32/vc2005/index.html | 10 +-
freetype/builds/win32/vc2008/freetype.vcproj | 12 +-
freetype/builds/win32/vc2008/index.html | 10 +-
freetype/builds/win32/visualc/freetype.dsp | 20 +-
freetype/builds/win32/visualc/freetype.vcproj | 12 +-
freetype/builds/win32/visualc/index.html | 10 +-
freetype/builds/win32/visualce/freetype.dsp | 20 +-
freetype/builds/win32/visualce/freetype.vcproj | 84 ++--
freetype/builds/win32/visualce/index.html | 10 +-
freetype/builds/wince/vc2005-ce/freetype.vcproj | 76 ++--
freetype/builds/wince/vc2005-ce/index.html | 10 +-
freetype/builds/wince/vc2008-ce/freetype.vcproj | 76 ++--
freetype/builds/wince/vc2008-ce/index.html | 10 +-
freetype/devel/ftoption.h | 23 +-
freetype/docs/CHANGES | 23 +
freetype/docs/VERSION.DLL | 1 +
freetype/docs/reference/ft2-base_interface.html | 99 ++--
freetype/docs/reference/ft2-basic_types.html | 4 +-
freetype/docs/reference/ft2-bdf_fonts.html | 4 +-
freetype/docs/reference/ft2-bitmap_handling.html | 4 +-
freetype/docs/reference/ft2-cache_subsystem.html | 4 +-
freetype/docs/reference/ft2-cid_fonts.html | 4 +-
freetype/docs/reference/ft2-computations.html | 4 +-
freetype/docs/reference/ft2-font_formats.html | 4 +-
freetype/docs/reference/ft2-gasp_table.html | 4 +-
freetype/docs/reference/ft2-glyph_management.html | 4 +-
freetype/docs/reference/ft2-glyph_stroker.html | 4 +-
freetype/docs/reference/ft2-glyph_variants.html | 4 +-
freetype/docs/reference/ft2-gx_validation.html | 4 +-
freetype/docs/reference/ft2-gzip.html | 4 +-
.../docs/reference/ft2-header_file_macros.html | 4 +-
freetype/docs/reference/ft2-incremental.html | 4 +-
freetype/docs/reference/ft2-index.html | 496 ++++++++++-----------
freetype/docs/reference/ft2-lcd_filtering.html | 4 +-
freetype/docs/reference/ft2-list_processing.html | 4 +-
freetype/docs/reference/ft2-lzw.html | 4 +-
freetype/docs/reference/ft2-mac_specific.html | 4 +-
freetype/docs/reference/ft2-module_management.html | 55 ++-
freetype/docs/reference/ft2-multiple_masters.html | 4 +-
freetype/docs/reference/ft2-ot_validation.html | 4 +-
.../docs/reference/ft2-outline_processing.html | 4 +-
freetype/docs/reference/ft2-pfr_fonts.html | 4 +-
freetype/docs/reference/ft2-quick_advance.html | 4 +-
freetype/docs/reference/ft2-raster.html | 4 +-
freetype/docs/reference/ft2-sfnt_names.html | 4 +-
freetype/docs/reference/ft2-sizes_management.html | 4 +-
freetype/docs/reference/ft2-system_interface.html | 4 +-
freetype/docs/reference/ft2-toc.html | 6 +-
freetype/docs/reference/ft2-truetype_engine.html | 4 +-
freetype/docs/reference/ft2-truetype_tables.html | 4 +-
freetype/docs/reference/ft2-type1_tables.html | 4 +-
freetype/docs/reference/ft2-user_allocation.html | 4 +-
freetype/docs/reference/ft2-version.html | 6 +-
freetype/docs/reference/ft2-winfnt_fonts.html | 4 +-
freetype/include/freetype/config/ftconfig.h | 2 +-
freetype/include/freetype/freetype.h | 36 +-
freetype/include/freetype/ftlcdfil.h | 2 +-
freetype/include/freetype/ftmodapi.h | 35 ++
freetype/include/freetype/internal/ftobjs.h | 31 +-
freetype/src/base/ftobjs.c | 126 ++++--
freetype/src/base/ftstream.c | 2 +-
freetype/src/cff/cffgload.c | 90 ++--
freetype/src/raster/ftraster.c | 11 +-
freetype/src/truetype/ttinterp.c | 103 ++---
freetype/src/truetype/ttinterp.h | 2 +-
freetype/src/type42/t42parse.c | 13 +-
packages.txt | 2 +-
76 files changed, 1142 insertions(+), 694 deletions(-)
diff --git a/freetype/ChangeLog b/freetype/ChangeLog
index 72d7dd7e6..4136f9f26 100644
--- a/freetype/ChangeLog
+++ b/freetype/ChangeLog
@@ -1,3 +1,129 @@
+2010-08-06 Werner Lemberg
+
+ * Version 2.4.2 released.
+ =========================
+
+
+ Tag sources with `VER-2-4-2'.
+
+ * docs/CHANGES: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.2
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.1/2.4.2/, s/241/242/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
+
+ * builds/unix/configure.raw (version_info): Set to 12:0:6.
+
+2010-08-06 suzuki toshiya
+
+ Fix Savannah bug #30648.
+
+ * src/base/ftobjs.c (FT_Done_Library): Specify the order of font
+ drivers during the face closing process. Type42 faces should be
+ closed before TrueType faces, because a Type42 face refers to
+ another internal TrueType face which is created from sfnt[] array on
+ the memory.
+
+2010-08-06 Yuriy Kaminskiy
+
+ [raster] Fix valgrind warning.
+
+ * src/raster/ftraster.c (Decompose_Curve) : Access point[0]
+ only if we don't hit `limit'.
+
+2010-08-06 suzuki toshiya
+
+ Fix Savannah bug #30658.
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Check that the total
+ length of collected POST segments does not overrun the allocated
+ buffer.
+
+2010-08-06 Yuriy Kaminskiy
+
+ Fix conditional usage of FT_MulFix_i386.
+ With -ansi flag, gcc does not define `i386', only `__i386__'.
+
+ * include/freetype/config/ftconfig.h, builds/unix/ftconfig.in:
+ s/i386/__i386__/.
+
+2010-08-05 Werner Lemberg
+
+ Fix Savannah bug #30657.
+
+ * src/truetype/ttinterp.c (BOUNDSL): New macro.
+ Change `BOUNDS' to `BOUNDSL' where appropriate.
+
+ * src/truetype/ttinterp.h (TT_ExecContextRec): Fix type of
+ `cvtSize'.
+
+2010-08-05 Werner Lemberg
+
+ Fix Savannah bug #30656.
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Protect against negative
+ string_size.
+ Fix comparison.
+
+2010-08-05 suzuki toshiya
+
+ [cff] Don't use any values in decoder after parsing error.
+
+ * src/cff/cffgload.c (cff_slot_load): Skip the evaluations
+ of the values in decoder, if cff_decoder_parse_charstrings()
+ returns any error.
+
+2010-08-04 Werner Lemberg
+
+ Fix Savannah bug #30644.
+
+ * src/base/ftstream.c (FT_Stream_EnterFrame): Fix comparison.
+
+2010-08-04 Werner Lemberg
+
+ `make devel' fails if FT_CONFIG_OPTION_OLD_INTERNALS is set.
+
+ * devel/ftoption.h: Synchronize with
+ include/freetype/config/ftoption.h.
+
+2010-08-04 suzuki toshiya
+
+ [cff] Improve stack overflow test.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Check stack
+ after execution of operations too.
+
+2010-07-18 Werner Lemberg
+
+ Add reference counters and to FT_Library and FT_Face objects.
+
+ * include/freetype/freetype.h (FT_Reference_Face): New function.
+ * include/freetype/ftmodapi.h (FT_Rererence_Library): New function.
+
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec,
+ FT_LibraryRec): New field `refcount'.
+
+ * src/base/ftobjs.c (FT_Open_Face, FT_New_Library): Handle
+ `refcount'.
+ (FT_Reference_Face, FT_Reference_Library): Implement new functions.
+ (FT_Done_Face, FT_Done_Library): Handle `refcount'.
+
+ * docs/CHANGES: Updated.
+
2010-07-18 Werner Lemberg
* Version 2.4.1 released.
diff --git a/freetype/Jamfile b/freetype/Jamfile
index 9276de42c..8f5aaf7aa 100644
--- a/freetype/Jamfile
+++ b/freetype/Jamfile
@@ -194,7 +194,7 @@ rule RefDoc
actions RefDoc
{
- python $(FT2_SRC)/tools/docmaker/docmaker.py --prefix=ft2 --title=FreeType-2.4.1 --output=$(DOC_DIR) $(FT2_INCLUDE)/freetype/*.h $(FT2_INCLUDE)/freetype/config/*.h
+ python $(FT2_SRC)/tools/docmaker/docmaker.py --prefix=ft2 --title=FreeType-2.4.2 --output=$(DOC_DIR) $(FT2_INCLUDE)/freetype/*.h $(FT2_INCLUDE)/freetype/config/*.h
}
RefDoc refdoc ;
diff --git a/freetype/README b/freetype/README
index f4efb0ab1..25bf72b1f 100644
--- a/freetype/README
+++ b/freetype/README
@@ -9,7 +9,7 @@
is called `libttf'. They are *not* compatible!
- FreeType 2.4.1
+ FreeType 2.4.2
==============
Please read the docs/CHANGES file, it contains IMPORTANT
@@ -26,9 +26,9 @@
and download one of the following files.
- freetype-doc-2.4.1.tar.bz2
- freetype-doc-2.4.1.tar.gz
- ftdoc241.zip
+ freetype-doc-2.4.2.tar.bz2
+ freetype-doc-2.4.2.tar.gz
+ ftdoc242.zip
Bugs
diff --git a/freetype/builds/unix/config.guess b/freetype/builds/unix/config.guess
index 115f944a6..4e621ac4a 100644
--- a/freetype/builds/unix/config.guess
+++ b/freetype/builds/unix/config.guess
@@ -4,7 +4,7 @@
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
# Free Software Foundation, Inc.
-timestamp='2010-04-03'
+timestamp='2010-07-29'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -552,7 +552,7 @@ EOF
echo rs6000-ibm-aix3.2
fi
exit ;;
- *:AIX:*:[456])
+ *:AIX:*:[4567])
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
IBM_ARCH=rs6000
diff --git a/freetype/builds/unix/configure b/freetype/builds/unix/configure
index e04d6d9bf..0469daafa 100644
--- a/freetype/builds/unix/configure
+++ b/freetype/builds/unix/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.65 for FreeType 2.4.1.
+# Generated by GNU Autoconf 2.65 for FreeType 2.4.2.
#
# Report bugs to .
#
@@ -701,8 +701,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='FreeType'
PACKAGE_TARNAME='freetype'
-PACKAGE_VERSION='2.4.1'
-PACKAGE_STRING='FreeType 2.4.1'
+PACKAGE_VERSION='2.4.2'
+PACKAGE_STRING='FreeType 2.4.2'
PACKAGE_BUGREPORT='freetype@nongnu.org'
PACKAGE_URL=''
@@ -1409,7 +1409,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures FreeType 2.4.1 to adapt to many kinds of systems.
+\`configure' configures FreeType 2.4.2 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1474,7 +1474,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of FreeType 2.4.1:";;
+ short | recursive ) echo "Configuration of FreeType 2.4.2:";;
esac
cat <<\_ACEOF
@@ -1585,7 +1585,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-FreeType configure 2.4.1
+FreeType configure 2.4.2
generated by GNU Autoconf 2.65
Copyright (C) 2009 Free Software Foundation, Inc.
@@ -2173,7 +2173,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by FreeType $as_me 2.4.1, which was
+It was created by FreeType $as_me 2.4.2, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ $0 $@
@@ -2528,7 +2528,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
# Don't forget to update docs/VERSION.DLL!
-version_info='11:1:5'
+version_info='12:0:6'
ft_version=`echo $version_info | tr : .`
@@ -12318,7 +12318,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by FreeType $as_me 2.4.1, which was
+This file was extended by FreeType $as_me 2.4.2, which was
generated by GNU Autoconf 2.65. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -12384,7 +12384,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-FreeType config.status 2.4.1
+FreeType config.status 2.4.2
configured by $0, generated by GNU Autoconf 2.65,
with options \\"\$ac_cs_config\\"
diff --git a/freetype/builds/unix/configure.ac b/freetype/builds/unix/configure.ac
index 1a237d5e2..6ffddd069 100644
--- a/freetype/builds/unix/configure.ac
+++ b/freetype/builds/unix/configure.ac
@@ -11,13 +11,13 @@
# indicate that you have read the license and understand and accept it
# fully.
-AC_INIT([FreeType], [2.4.1], [freetype@nongnu.org], [freetype])
+AC_INIT([FreeType], [2.4.2], [freetype@nongnu.org], [freetype])
AC_CONFIG_SRCDIR([ftconfig.in])
# Don't forget to update docs/VERSION.DLL!
-version_info='11:1:5'
+version_info='12:0:6'
AC_SUBST([version_info])
ft_version=`echo $version_info | tr : .`
AC_SUBST([ft_version])
diff --git a/freetype/builds/unix/configure.raw b/freetype/builds/unix/configure.raw
index 4ef9521d7..0622127d6 100644
--- a/freetype/builds/unix/configure.raw
+++ b/freetype/builds/unix/configure.raw
@@ -17,7 +17,7 @@ AC_CONFIG_SRCDIR([ftconfig.in])
# Don't forget to update docs/VERSION.DLL!
-version_info='11:1:5'
+version_info='12:0:6'
AC_SUBST([version_info])
ft_version=`echo $version_info | tr : .`
AC_SUBST([ft_version])
diff --git a/freetype/builds/unix/ftconfig.in b/freetype/builds/unix/ftconfig.in
index c5e4e46b4..4c81187e5 100644
--- a/freetype/builds/unix/ftconfig.in
+++ b/freetype/builds/unix/ftconfig.in
@@ -313,7 +313,7 @@ FT_BEGIN_HEADER
#endif /* __arm__ && !__thumb__ */
-#if defined( i386 )
+#if defined( __i386__ )
#define FT_MULFIX_ASSEMBLER FT_MulFix_i386
static __inline__ FT_Int32
diff --git a/freetype/builds/win32/vc2005/freetype.vcproj b/freetype/builds/win32/vc2005/freetype.vcproj
index cfed996b8..f6f26b95a 100644
--- a/freetype/builds/win32/vc2005/freetype.vcproj
+++ b/freetype/builds/win32/vc2005/freetype.vcproj
@@ -16,7 +16,7 @@
-
+
@@ -33,7 +33,7 @@
-
+
@@ -50,7 +50,7 @@
-
+
@@ -67,7 +67,7 @@
-
+
@@ -84,7 +84,7 @@
-
+
@@ -101,7 +101,7 @@
-
+
diff --git a/freetype/builds/win32/vc2005/index.html b/freetype/builds/win32/vc2005/index.html
index 446a63ef6..ad80514f3 100644
--- a/freetype/builds/win32/vc2005/index.html
+++ b/freetype/builds/win32/vc2005/index.html
@@ -11,14 +11,14 @@
This directory contains project files for Visual C++, named
freetype.vcproj, and Visual Studio, called freetype.sln. It
-compiles the following libraries from the FreeType 2.4.1 sources:
+compiles the following libraries from the FreeType 2.4.2 sources:
- freetype241.lib - release build; single threaded
- freetype241_D.lib - debug build; single threaded
- freetype241MT.lib - release build; multi-threaded
- freetype241MT_D.lib - debug build; multi-threaded
+ freetype242.lib - release build; single threaded
+ freetype242_D.lib - debug build; single threaded
+ freetype242MT.lib - release build; multi-threaded
+ freetype242MT_D.lib - debug build; multi-threaded
Be sure to extract the files with the Windows (CR+LF) line endings. ZIP
diff --git a/freetype/builds/win32/vc2008/freetype.vcproj b/freetype/builds/win32/vc2008/freetype.vcproj
index d5a6577b7..2fe5d1dc2 100644
--- a/freetype/builds/win32/vc2008/freetype.vcproj
+++ b/freetype/builds/win32/vc2008/freetype.vcproj
@@ -70,7 +70,7 @@
/>
This directory contains project files for Visual C++, named
freetype.vcproj, and Visual Studio, called freetype.sln. It
-compiles the following libraries from the FreeType 2.4.1 sources:
+compiles the following libraries from the FreeType 2.4.2 sources:
- freetype241.lib - release build; single threaded
- freetype241_D.lib - debug build; single threaded
- freetype241MT.lib - release build; multi-threaded
- freetype241MT_D.lib - debug build; multi-threaded
+ freetype242.lib - release build; single threaded
+ freetype242_D.lib - debug build; single threaded
+ freetype242MT.lib - release build; multi-threaded
+ freetype242MT_D.lib - debug build; multi-threaded
Be sure to extract the files with the Windows (CR+LF) line endings. ZIP
diff --git a/freetype/builds/win32/visualc/freetype.dsp b/freetype/builds/win32/visualc/freetype.dsp
index 86a8444da..e09b1b882 100644
--- a/freetype/builds/win32/visualc/freetype.dsp
+++ b/freetype/builds/win32/visualc/freetype.dsp
@@ -54,7 +54,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype241.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype242.lib"
!ELSEIF "$(CFG)" == "freetype - Win32 Debug"
@@ -78,7 +78,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype241_D.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype242_D.lib"
!ELSEIF "$(CFG)" == "freetype - Win32 Debug Multithreaded"
@@ -102,8 +102,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
-# ADD BASE LIB32 /nologo /out:"lib\freetype241_D.lib"
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype241MT_D.lib"
+# ADD BASE LIB32 /nologo /out:"lib\freetype242_D.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype242MT_D.lib"
!ELSEIF "$(CFG)" == "freetype - Win32 Release Multithreaded"
@@ -126,8 +126,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
-# ADD BASE LIB32 /nologo /out:"lib\freetype241.lib"
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype241MT.lib"
+# ADD BASE LIB32 /nologo /out:"lib\freetype242.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype242MT.lib"
!ELSEIF "$(CFG)" == "freetype - Win32 Release Singlethreaded"
@@ -151,8 +151,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
-# ADD BASE LIB32 /nologo /out:"..\..\..\objs\freetype241.lib"
-# ADD LIB32 /out:"..\..\..\objs\freetype241ST.lib"
+# ADD BASE LIB32 /nologo /out:"..\..\..\objs\freetype242.lib"
+# ADD LIB32 /out:"..\..\..\objs\freetype242ST.lib"
# SUBTRACT LIB32 /nologo
!ELSEIF "$(CFG)" == "freetype - Win32 Debug Singlethreaded"
@@ -177,8 +177,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
-# ADD BASE LIB32 /nologo /out:"..\..\..\objs\freetype241_D.lib"
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype241ST_D.lib"
+# ADD BASE LIB32 /nologo /out:"..\..\..\objs\freetype242_D.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype242ST_D.lib"
!ENDIF
diff --git a/freetype/builds/win32/visualc/freetype.vcproj b/freetype/builds/win32/visualc/freetype.vcproj
index c144bfc36..1a60d5789 100644
--- a/freetype/builds/win32/visualc/freetype.vcproj
+++ b/freetype/builds/win32/visualc/freetype.vcproj
@@ -69,7 +69,7 @@
/>
This directory contains project files for Visual C++, named
freetype.dsp, and Visual Studio, called freetype.sln. It
-compiles the following libraries from the FreeType 2.4.1 sources:
+compiles the following libraries from the FreeType 2.4.2 sources:
- freetype241.lib - release build; single threaded
- freetype241_D.lib - debug build; single threaded
- freetype241MT.lib - release build; multi-threaded
- freetype241MT_D.lib - debug build; multi-threaded
+ freetype242.lib - release build; single threaded
+ freetype242_D.lib - debug build; single threaded
+ freetype242MT.lib - release build; multi-threaded
+ freetype242MT_D.lib - debug build; multi-threaded
Be sure to extract the files with the Windows (CR+LF) line endings. ZIP
diff --git a/freetype/builds/win32/visualce/freetype.dsp b/freetype/builds/win32/visualce/freetype.dsp
index 86a8444da..e09b1b882 100644
--- a/freetype/builds/win32/visualce/freetype.dsp
+++ b/freetype/builds/win32/visualce/freetype.dsp
@@ -54,7 +54,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype241.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype242.lib"
!ELSEIF "$(CFG)" == "freetype - Win32 Debug"
@@ -78,7 +78,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype241_D.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype242_D.lib"
!ELSEIF "$(CFG)" == "freetype - Win32 Debug Multithreaded"
@@ -102,8 +102,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
-# ADD BASE LIB32 /nologo /out:"lib\freetype241_D.lib"
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype241MT_D.lib"
+# ADD BASE LIB32 /nologo /out:"lib\freetype242_D.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype242MT_D.lib"
!ELSEIF "$(CFG)" == "freetype - Win32 Release Multithreaded"
@@ -126,8 +126,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
-# ADD BASE LIB32 /nologo /out:"lib\freetype241.lib"
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype241MT.lib"
+# ADD BASE LIB32 /nologo /out:"lib\freetype242.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype242MT.lib"
!ELSEIF "$(CFG)" == "freetype - Win32 Release Singlethreaded"
@@ -151,8 +151,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
-# ADD BASE LIB32 /nologo /out:"..\..\..\objs\freetype241.lib"
-# ADD LIB32 /out:"..\..\..\objs\freetype241ST.lib"
+# ADD BASE LIB32 /nologo /out:"..\..\..\objs\freetype242.lib"
+# ADD LIB32 /out:"..\..\..\objs\freetype242ST.lib"
# SUBTRACT LIB32 /nologo
!ELSEIF "$(CFG)" == "freetype - Win32 Debug Singlethreaded"
@@ -177,8 +177,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
-# ADD BASE LIB32 /nologo /out:"..\..\..\objs\freetype241_D.lib"
-# ADD LIB32 /nologo /out:"..\..\..\objs\freetype241ST_D.lib"
+# ADD BASE LIB32 /nologo /out:"..\..\..\objs\freetype242_D.lib"
+# ADD LIB32 /nologo /out:"..\..\..\objs\freetype242ST_D.lib"
!ENDIF
diff --git a/freetype/builds/win32/visualce/freetype.vcproj b/freetype/builds/win32/visualce/freetype.vcproj
index be58cd8ba..4da9c7d13 100644
--- a/freetype/builds/win32/visualce/freetype.vcproj
+++ b/freetype/builds/win32/visualce/freetype.vcproj
@@ -87,7 +87,7 @@
/>
PPC/SP WM6 (Windows Mobile 6)
-It compiles the following libraries from the FreeType 2.4.1 sources:
+It compiles the following libraries from the FreeType 2.4.2 sources:
- freetype241.lib - release build; single threaded
- freetype241_D.lib - debug build; single threaded
- freetype241MT.lib - release build; multi-threaded
- freetype241MT_D.lib - debug build; multi-threaded
+ freetype242.lib - release build; single threaded
+ freetype242_D.lib - debug build; single threaded
+ freetype242MT.lib - release build; multi-threaded
+ freetype242MT_D.lib - debug build; multi-threaded
Be sure to extract the files with the Windows (CR+LF) line endings. ZIP
diff --git a/freetype/builds/wince/vc2005-ce/freetype.vcproj b/freetype/builds/wince/vc2005-ce/freetype.vcproj
index 4a1fdb21d..1016ddee2 100644
--- a/freetype/builds/wince/vc2005-ce/freetype.vcproj
+++ b/freetype/builds/wince/vc2005-ce/freetype.vcproj
@@ -21,7 +21,7 @@
-
+
@@ -41,7 +41,7 @@
-
+
@@ -61,7 +61,7 @@
-
+
@@ -81,7 +81,7 @@
-
+
@@ -101,7 +101,7 @@
-
+
@@ -121,7 +121,7 @@
-
+
@@ -141,7 +141,7 @@
-
+
@@ -161,7 +161,7 @@
-
+
@@ -181,7 +181,7 @@
-
+
@@ -201,7 +201,7 @@
-
+
@@ -221,7 +221,7 @@
-
+
@@ -241,7 +241,7 @@
-
+
@@ -261,7 +261,7 @@
-
+
@@ -281,7 +281,7 @@
-
+
@@ -301,7 +301,7 @@
-
+
@@ -321,7 +321,7 @@
-
+
@@ -341,7 +341,7 @@
-
+
@@ -361,7 +361,7 @@
-
+
@@ -381,7 +381,7 @@
-
+
@@ -401,7 +401,7 @@
-
+
@@ -421,7 +421,7 @@
-
+
@@ -441,7 +441,7 @@
-
+
@@ -461,7 +461,7 @@
-
+
@@ -481,7 +481,7 @@
-
+
@@ -501,7 +501,7 @@
-
+
@@ -521,7 +521,7 @@
-
+
@@ -541,7 +541,7 @@
-
+
@@ -561,7 +561,7 @@
-
+
@@ -581,7 +581,7 @@
-
+
@@ -601,7 +601,7 @@
-
+
@@ -621,7 +621,7 @@
-
+
@@ -641,7 +641,7 @@
-
+
@@ -661,7 +661,7 @@
-
+
@@ -681,7 +681,7 @@
-
+
@@ -701,7 +701,7 @@
-
+
@@ -721,7 +721,7 @@
-
+
@@ -741,7 +741,7 @@
-
+
@@ -758,7 +758,7 @@
-
+
diff --git a/freetype/builds/wince/vc2005-ce/index.html b/freetype/builds/wince/vc2005-ce/index.html
index c3e692095..c13e86e06 100644
--- a/freetype/builds/wince/vc2005-ce/index.html
+++ b/freetype/builds/wince/vc2005-ce/index.html
@@ -21,14 +21,14 @@ the following targets:
PPC/SP WM6 (Windows Mobile 6)
-It compiles the following libraries from the FreeType 2.4.1 sources:
+It compiles the following libraries from the FreeType 2.4.2 sources:
- freetype241.lib - release build; single threaded
- freetype241_D.lib - debug build; single threaded
- freetype241MT.lib - release build; multi-threaded
- freetype241MT_D.lib - debug build; multi-threaded
+ freetype242.lib - release build; single threaded
+ freetype242_D.lib - debug build; single threaded
+ freetype242MT.lib - release build; multi-threaded
+ freetype242MT_D.lib - debug build; multi-threaded
Be sure to extract the files with the Windows (CR+LF) line endings. ZIP
diff --git a/freetype/builds/wince/vc2008-ce/freetype.vcproj b/freetype/builds/wince/vc2008-ce/freetype.vcproj
index 76b63876d..1e4c00fb8 100644
--- a/freetype/builds/wince/vc2008-ce/freetype.vcproj
+++ b/freetype/builds/wince/vc2008-ce/freetype.vcproj
@@ -88,7 +88,7 @@
/>
PPC/SP WM6 (Windows Mobile 6)
-It compiles the following libraries from the FreeType 2.4.1 sources:
+It compiles the following libraries from the FreeType 2.4.2 sources:
- freetype241.lib - release build; single threaded
- freetype241_D.lib - debug build; single threaded
- freetype241MT.lib - release build; multi-threaded
- freetype241MT_D.lib - debug build; multi-threaded
+ freetype242.lib - release build; single threaded
+ freetype242_D.lib - debug build; single threaded
+ freetype242MT.lib - release build; multi-threaded
+ freetype242MT_D.lib - debug build; multi-threaded
Be sure to extract the files with the Windows (CR+LF) line endings. ZIP
diff --git a/freetype/devel/ftoption.h b/freetype/devel/ftoption.h
index 058601e4c..32dd25aa7 100644
--- a/freetype/devel/ftoption.h
+++ b/freetype/devel/ftoption.h
@@ -689,7 +689,28 @@ FT_BEGIN_HEADER
* is recommended to disable the macro since it reduces the library's code
* size and activates a few memory-saving optimizations as well.
*/
-/* #define FT_CONFIG_OPTION_OLD_INTERNALS */
+#define FT_CONFIG_OPTION_OLD_INTERNALS
+
+
+ /*
+ * To detect legacy cache-lookup call from a rogue client (<= 2.1.7),
+ * we restrict the number of charmaps in a font. The current API of
+ * FTC_CMapCache_Lookup() takes cmap_index & charcode, but old API
+ * takes charcode only. To determine the passed value is for cmap_index
+ * or charcode, the possible cmap_index is restricted not to exceed
+ * the minimum possible charcode by a rogue client. It is also very
+ * unlikely that a rogue client is interested in Unicode values 0 to 15.
+ *
+ * NOTE: The original threshold was 4 deduced from popular number of
+ * cmap subtables in UCS-4 TrueType fonts, but now it is not
+ * irregular for OpenType fonts to have more than 4 subtables,
+ * because variation selector subtables are available for Apple
+ * and Microsoft platforms.
+ */
+
+#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
+#define FT_MAX_CHARMAP_CACHEABLE 15
+#endif
/*
diff --git a/freetype/docs/CHANGES b/freetype/docs/CHANGES
index cc38a756c..56ed7ad9a 100644
--- a/freetype/docs/CHANGES
+++ b/freetype/docs/CHANGES
@@ -1,3 +1,26 @@
+CHANGES BETWEEN 2.4.1 and 2.4.2
+
+ I. IMPORTANT BUG FIXES
+
+ - A stack overflow in CFF Type2 CharStrings interpreter is fixed.
+
+ - Handling Type 42 font deallocation was broken; additionally, the
+ library is now more robust against malformed Type 42 fonts.
+
+
+ II. MISCELLANEOUS
+
+ - Two new functions, `FT_Reference_Library' (in FT_MODULE_H) and
+ `FT_Reference_Face' (in FT_FREETYPE_H), have been added to
+ simplify life-cycle management. A counter gets initialized to 1
+ at the time an FT_Library (or FT_Face) structure is created.
+ The two new functions increment the respective counter.
+ `FT_Done_Library' and `FT_Done_Face' then only destroy a library
+ or face if the counter is 1, otherwise they simply decrement the
+ counter.
+
+
+======================================================================
CHANGES BETWEEN 2.4.0 and 2.4.1
diff --git a/freetype/docs/VERSION.DLL b/freetype/docs/VERSION.DLL
index e5877ae6f..d4450dbf0 100644
--- a/freetype/docs/VERSION.DLL
+++ b/freetype/docs/VERSION.DLL
@@ -53,6 +53,7 @@ systems, but not all of them:
release libtool so
-------------------------------
+ 2.4.2 12.0.6 6.6.0
2.4.1 11.1.5 6.5.1
2.4.0 11.0.5 6.5.0
2.3.12 10.0.4 6.4.0
diff --git a/freetype/docs/reference/ft2-base_interface.html b/freetype/docs/reference/ft2-base_interface.html
index b59f6bc48..411bcfdf8 100644
--- a/freetype/docs/reference/ft2-base_interface.html
+++ b/freetype/docs/reference/ft2-base_interface.html
@@ -3,7 +3,7 @@
-FreeType-2.4.1 API Reference
+FreeType-2.4.2 API Reference