tizen 2.4 release
[framework/graphics/freetype.git] / ChangeLog
index 9afc1aa..5a857ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
-2012-03-08  Werner Lemberg  <wl@gnu.org>
+2014-12-30  Werner Lemberg  <wl@gnu.org>
 
-       * Version 2.4.9 released.
+       * Version 2.5.5 released.
        =========================
 
 
-       Tag sources with `VER-2-4-9'.
-
-       * docs/CHANGES: Updated.
+       Tag sources with `VER-2-5-5'.
 
        * docs/VERSION.DLL: Update documentation and bump version number to
-       2.4.9.
-
-       * 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/vc2010/freetype.vcxproj, builds/win32/vc2010/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,
+       2.5.5.
+
+       * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+       builds/windows/vc2005/index.html,
+       builds/windows/vc2008/freetype.vcproj,
+       builds/windows/vc2008/index.html,
+       builds/windows/vc2010/freetype.vcxproj,
+       builds/windows/vc2010/index.html,
+       builds/windows/visualc/freetype.dsp,
+       builds/windows/visualc/freetype.vcproj,
+       builds/windows/visualc/index.html,
+       builds/windows/visualce/freetype.dsp,
+       builds/windows/visualce/freetype.vcproj,
+       builds/windows/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.8/2.4.9/, s/248/249/.
+       builds/wince/vc2008-ce/index.html: s/2.5.4/2.5.5/, s/254/255/.
 
-       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 9.
+       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
 
-       * builds/unix/configure.raw (version_info): Set to 14:1:8.
+       * builds/unix/configure.raw (version_info): Set to 17:4:11.
+       * CMakeLists.txt (VERSION_PATCH): Set to 5.
+       * docs/CHANGES: Updated.
 
-2012-03-08  Werner Lemberg  <wl@gnu.org>
+       * builds/toplevel.mk (dist): Fix typos.
 
-       [bdf] Add missing overflow check.
+2014-12-24  Alexei Podtelezhnikov <apodtele@gmail.com>
 
-       * src/bdf/bdflib.c (_bdf_parse_glyphs) <BITMAP>: Add threshold for
-       `glyph->bpr'.
+       [base] Formatting and nanooptimizations.
 
-2012-03-07  Vinnie Falco  <vinnie.falco@gmail.com>
+       * src/base/ftcalc.c,
+       * src/base/fttrigon.c: Revise sign restoration.
 
-       Prepare source code for amalgamation.
+2014-12-13  Werner Lemberg  <wl@gnu.org>
 
-       * src\autofit\aferrors.h, src\bdf\bdferror.h, src\bzip2\ftbzip2.c,
-       src\cache\ftcerror.h, src\cff\cfferrs.h, src\cid\ciderrs.h,
-       src\gxvalid\gxverror.h, src\gzip\ftgzip.c, src\lzw\ftlzw.c,
-       src\otvalid\otverror.h, src\pcf\pcferror.h, src\pfr\pfrerror.h,
-       src\psaux\psauxerr.h, src\pshinter\pshnterr.h,
-       src\psnames\psnamerr.h, src\raster\rasterrs.h, src\sfnt\sferrors.h,
-       src\smooth\ftsmerrs.h, src\truetype\tterrors.h,
-       src\type1\t1errors.h, src\type42\t42error.h, src\winfonts\fnterrs.h:
-       Add #undef FT_ERR_PREFIX before #define FT_ERR_PREFIX.
+       * src/pcf/pcfread.c (pcf_read_TOC): Improve fix from 2014-12-08.
 
-2012-03-03  Werner Lemberg  <wl@gnu.org>
+2014-12-11  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #35660.
+       * builds/toplevel.mk (dist): Use older POSIX standard for `tar'.
 
-       For some divisions, we use casts to 32bit entities.  Always guard
-       against division by zero with these casts also.
+       Apparently, BSD tar isn't capable yet of handling POSIX-1.2001
+       (contrary to GNU tar), so force the POSIX-1.1988 format.
 
-       * src/base/ftcalc.c (ft_div64by32): Remove redundant cast.
-       (FT_MulDiv, FT_MulDiv_No_Round): Add 32bit cast.
-       (FT_DivFix): Add 32bit cast (this omission triggered the bug).
+       Problem reported by Stephen Fisher <sfisher@SDF.ORG>.
 
-2012-03-03  Werner Lemberg  <wl@gnu.org>
+2014-12-11  Werner Lemberg  <wl@gnu.org>
 
-       [psaux] Fix handling of track kerning.
+       * src/type42/t42parse.c (t42_parse_sfnts): Reject invalid TTF size.
 
-       * src/psaux/afmparse.c (afm_parse_track_kern): Don't inverse sign
-       for `min_kern'.  It is indeed quite common that track kerning
-       *increases* spacing for very small sizes.
+2014-12-11  Werner Lemberg  <wl@gnu.org>
 
-2012-03-02  Werner Lemberg  <wl@gnu.org>
+       * src/base/ftobjs.c (FT_Get_Glyph_Name): Fix off-by-one check.
 
-       [truetype] Fix Savannah bug #35689.
+       Problem reported by Dennis Felsing <dennis@felsin9.de>.
 
-       * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check first outline
-       point.
+2014-12-11  Werner Lemberg  <wl@gnu.org>
 
-2012-03-01  Werner Lemberg  <wl@gnu.org>
+       * src/type42/t42parse.c (t42_parse_sfnts): Check `string_size'.
 
-       [bdf] Fix Savannah bug #35656.
+       Problem reported by Dennis Felsing <dennis@felsin9.de>.
 
-       * src/bdf/bdflib.c (_bdf_parse_glyphs) <_BDF_BITMAP>: Check validity
-       of nibble characters instead of accessing `a2i' array.
+2014-12-09  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-2012-03-01  Werner Lemberg  <wl@gnu.org>
+       [gxvalid] Fix a naming convention conflicting with ftvalid.
 
-       [winfonts] Fix Savannah bug #35659.
+       See previous changeset for otvalid.
 
-       * src/winfonts/winfnt.c (FNT_Face_Init): Check number of glyphs.
+       * src/gxvalid/{gxvcommn.h, gxvmort.h, gxvmorx.h}: Replace
+       `valid' by `gxvalid'.
+       * src/gxvalid/{gxvbsln.c, gxvcommn.c, gxvfeat.c, gxvjust.c,
+       gxvkern.c, gxvlcar.c, gxvmort.c, gxvmort0.c, gxvmort1.c,
+       gxvmort2.c, gxvmort4.c, gxvmort5.c, gxvmorx.c, gxvmorx0.c,
+       gxvmorx1.c, gxvmorx2.c, gxvmorx4.c, gxvmorx5.c, gxvopbd.c,
+       gxvprop.c, gxvtrak.c}: Replace `valid' by `gxvalid' if
+       it is typed as GXV_Validator.
 
-2012-03-01  Werner Lemberg  <wl@gnu.org>
+2014-12-09  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-       [bdf] Fix Savannah bug #35658.
+       [otvalid] Fix a naming convention conflicting with ftvalid.
 
-       * src/bdf/bdflib.c (_bdf_list_split): Initialize `field' elements
-       properly.
+       Some prototypes in ftvalid.h use `valid' for the variables
+       typed as FT_Validator.  Their implementations in src/base/
+       ftobjs.c and utilizations in src/sfnt/ttcmap.c do similar.
 
-2012-03-01  Werner Lemberg  <wl@gnu.org>
+       Some macros in otvcommn.h assume the exist of the variable
+       `valid' typed as OTV_Validator in the caller.
 
-       [psaux] Fix Savannah bug #35657.
+       Mixing these two conventions cause invalid pointer conversion
+       and unexpected SEGV in longjmp.  To prevent it, all variables
+       typed as OTV_Validator are renamed to `otvalid'.
 
-       If in function `skip_spaces' the routine `skip_comment' comes to the
-       end of buffer, `cur' is still increased by one, so we need to check
-       for `p >= limit' and not `p == limit'.
+       * src/otvalid/otvcommn.h: Replace `valid' by `otvalid'.
+       * src/otvalid/{otvcommn.c, otvbase.c, otvgdef.c, otvgpos.c,
+       otvgsub.c, otvjstf.c, otvmath.c}: Replace `valid' by `otvalid'
+       if it is typed as OTV_Validator.
 
-       * src/psaux/psconv.c (PS_Conv_Strtol, PS_Conv_ToFixed,
-       PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Fix boundary checking.
+2014-12-09  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-2012-03-01  Werner Lemberg  <wl@gnu.org>
+       [ftvalid] Introduce FT_THROW() in FT_INVALID_XXX macros.
 
-       [truetype] Fix Savannah bug #35646.
+       Original patch is designed by Werner Lemberg.  Extra part
+       for otvalid and gxvalid are added by suzuki toshiya, see
+       discussion:
+       http://lists.nongnu.org/archive/html/freetype-devel/2014-12/msg00002.html
+       http://lists.nongnu.org/archive/html/freetype-devel/2014-12/msg00007.html
 
-       * src/truetype/ttinterp.c (Ins_MIRP): Typo, present since ages.  The
-       code is now in sync with the other operators (e.g. MSIRP) which
-       modify twilight points.
+       * include/internal/ftvalid.h: Introduce FT_THROW() in FT_INVALID_().
+       * src/gxvalid/gxvcommn.h: Ditto.
+       * src/otvalid/otvcommn.h: Ditto.
 
-2012-03-01  Werner Lemberg  <wl@gnu.org>
+2014-12-08  Werner Lemberg  <wl@gnu.org>
 
-       [bdf] Fix Savannah bug #35643.
+       [pcf] Fix Savannah bug #43774.
 
-       * src/bdf/bdflib.c (_bdf_list_ensure): Bring code in sync with
-       comment before `_bdf_list_split', this is, really allocate at least
-       five `field' elements.
+       Work around `features' of X11's `pcfWriteFont' and `pcfReadFont'
+       functions.  Since the PCF format doesn't have an official
+       specification, we have to exactly follow these functions' behaviour.
 
-2012-03-01  Werner Lemberg  <wl@gnu.org>
+       The problem was unveiled with a patch from 2014-11-06, fixing issue
+       #43547.
 
-       [bdf] Fix Savannah bug #35641.
+       * src/pcf/pcfread.c (pcf_read_TOC): Don't check table size for last
+       element.  Instead, assign real size.
 
-       * src/bdf/bdflib.c (_bdf_parse_glyphs) <DWIDTH, BBX>: Abort if
-       _BDF_ENCODING isn't set.  We need this because access to the `glyph'
-       variable might be undefined otherwise.
+2014-12-07  Werner Lemberg  <wl@gnu.org>
 
-2012-03-01  Werner Lemberg  <wl@gnu.org>
+       Work around a bug in Borland's C++ compiler.
 
-       [truetype] Fix Savannah bug #35640.
+       See
 
-       * src/truetype/ttinterp.c (SkipCode, TT_RunIns): Fix boundary check
-       for NPUSHB and NPUSHW instructions.
+         http://qc.embarcadero.com/wc/qcmain.aspx?d=118998
 
-2012-02-29  Werner Lemberg  <wl@gnu.org>
+       for Borland's bug tracker entry.
 
-       [truetype] Fix Savannah bug #35601.
+       Reported by Yuliana Zigangirova <zigangirova@inbox.ru>,
+       http://lists.gnu.org/archive/html/freetype-devel/2014-04/msg00001.html.
 
-       * src/truetype/ttinterp.c (Ins_SHZ): Use number of points instead of
-       last point for loop.
-       Also remove redundant boundary check.
+       * include/internal/ftvalid.h (FT_ValidatorRec), src/smooth/ftgrays.c
+       (gray_TWorker_): Move `ft_jmp_buf' field to be the first element.
 
-2012-02-29  Werner Lemberg  <wl@gnu.org>
+2014-12-07  Werner Lemberg  <wl@gnu.org>
 
-       [truetype] Remove redundant check.
+       */*: Decorate hex constants with `U' and `L' where appropriate.
 
-       * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Remove redundant
-       second check for ordered contour start points.
+2014-12-07  Werner Lemberg  <wl@gnu.org>
 
-2012-02-29  Werner Lemberg  <wl@gnu.org>
+       [truetype] Prevent memory leak for buggy fonts.
 
-       [truetype] Make SHC instruction behave similar to MS rasterizer.
+       * src/truetype/ttobjs.c (tt_size_done): Unconditionally call
+       `tt_size_done_bytecode'.
 
-       * src/truetype/ttinterp.c (Ins_SHC): Handle virtual contour in
-       twilight zone.
+2014-12-06  Werner Lemberg  <wl@gnu.org>
 
-2012-02-29  Alexei Podtelezhnikov  <apodtele@gmail.com>
+       * Version 2.5.4 released.
+       =========================
 
-       Avoid modulo operators against a power-of-two denominator.
 
-       * src/afcjk.c (af_hint_normal_stem), src/base/ftoutln.c
-       (ft_contour_has), src/cff/cffgload.c (cff_decoder_parse_charstrings)
-       <cff_op_vvcurveto, cff_op_hhcurveto, cff_op_hvcurveto>,
-       src/gxvalid/gxvcommn.c (GXV_32BIT_ALIGNMENT_VALIDATE),
-       src/gxvalid/gxvfeat.c (gxv_feat_setting_validate): Replace `%' with
-       `&' operator.
+       Tag sources with `VER-2-5-4'.
 
-2012-02-29  Werner Lemberg  <wl@gnu.org>
+       * docs/VERSION.DLL: Update documentation and bump version number to
+       2.5.4.
+
+       * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+       builds/windows/vc2005/index.html,
+       builds/windows/vc2008/freetype.vcproj,
+       builds/windows/vc2008/index.html,
+       builds/windows/vc2010/freetype.vcxproj,
+       builds/windows/vc2010/index.html,
+       builds/windows/visualc/freetype.dsp,
+       builds/windows/visualc/freetype.vcproj,
+       builds/windows/visualc/index.html,
+       builds/windows/visualce/freetype.dsp,
+       builds/windows/visualce/freetype.vcproj,
+       builds/windows/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.5.3/2.5.4/, s/253/254/.
 
-       [autofit] Don't synchronize digit widths for light rendering mode.
+       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
 
-       We don't hint horizontally in this mode.
+       * builds/unix/configure.raw (version_info): Set to 17:3:11.
+       * CMakeLists.txt (VERSION_PATCH): Set to 4.
+       * docs/CHANGES: Updated.
 
-       * src/autofit/afloader.c (af_loader_load_g) <Hint_Metrics>:
-       Implement it.
+2014-12-04  Werner Lemberg  <wl@gnu.org>
 
-2012-02-26  Alexei Podtelezhnikov  <apodtele@gmail.com>
+       docs/CHANGES: Updated, formatted.
 
-       [type42] Minor code optimization (again).
+2014-12-04  Dave Arnold  <darnold@adobe.com>
 
-       * src/type42/t42parse.c (t42_parse_sfnts): Simplify previous change.
+       [cff] Modify an FT_ASSERT.
 
-2012-02-26  Mateusz Jurczyk  <mjurczyk@google.com>
-           Werner Lemberg  <wl@gnu.org>
+       * src/cff/cf2hints.c (cf2_hintmap_map): After the fix for Savannah
+       bug #43661, the test font `...aspartam.otf' still triggers an
+       FT_ASSERT.  Since hintmap still works with count==0, ...
+       (cf2_glyphpath_lineTo, cf2_glyphpath_curveTo): ... add that term to
+       suppress the assert.
 
-       [smooth] Fix Savannah bug #35604.
+2014-12-04  Dave Arnold  <darnold@adobe.com>
 
-       * src/smooth/ftsmooth.c (ft_smooth_render_generic): Use `FT_Pos'
-       instead of `FT_UInt' for some variables and update comparisons
-       accordingly.  A detailed analysis can be found in the bug report.
+       [cff] Fix Savannah bug #43661.
 
-2012-02-26  Alexei Podtelezhnikov  <apodtele@gmail.com>
+       * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdHSTEM,
+       cf2_cmdVSTEM, cf2_cmdHINTMASK>: Don't append to stem arrays after
+       hintmask is constructed.
 
-       [type42] Minor code optimization.
+       * src/cff/cf2hints.c (cf2_hintmap_build): Add defensive code to
+       avoid reading past end of hintmask.
 
-       * src/type42/t42parse.c (t42_parse_sfnts): Use bitmask instead of
-       modulo operator.
+2014-12-03  Werner Lemberg  <wl@gnu.org>
 
-2012-02-26  Werner Lemberg  <wl@gnu.org>
+       docs/CHANGES: Updated.
 
-       * docs/CHANGES: Updated.
+2014-12-03  Werner Lemberg  <wl@gnu.org>
 
-2012-02-26  Werner Lemberg  <wl@gnu.org>
+       [autofit] Better fix for conversion specifiers in debug messages.
 
-       [type1] Fix Savannah bug #35608.
+       Using `%ld' for pointer differences causes warnings on 32bit
+       platforms.  The correct type would be (the relatively new) `%td',
+       however, this is missing on some important platforms.
 
-       * src/type1/t1parse.c (T1_Get_Private_Dict): Reject too short
-       dictionaries.
+       This patch improves the change from 2014-11-28.
 
-2012-02-26  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afhints.c (AF_INDEX_NUM): Use `int' typecast.  Our
+       pointer differences are always sufficiently small.
+       (af_glyph_hints_dump_points, af_glyph_hints_dump_segments,
+       af_glyph_hints_dump_edge): Revert to `%d' and use `AF_INDEX_NUM'.
 
-       [bdf] Support `ENCODING -1 <n>' format.
+2014-12-03  Werner Lemberg  <wl@gnu.org>
 
-       * src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Implement it.
+       FT_Sfnt_Tag: s/ft_sfnt_xxx/FT_SFNT_XXX/ for orthogonality.
 
-2012-02-26  Werner Lemberg  <wl@gnu.org>
+       All public FreeType enumeration and flag values are uppercase...
 
-       [bdf] Fix Savannah bug #35607.
+       * include/tttables.h (FT_Sfnt_Tag): Implement it.  For backwards
+       compatilibity, retain the old values as macros.
 
-       * src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Normalize
-       negative encoding values.
+       * src/base/ftfstype.c (FT_Get_FSType_Flags), src/sfnt/sfdriver.c
+       (get_sfnt_table): Updated.
 
-2012-02-26  Werner Lemberg  <wl@gnu.org>
+2014-12-02  Werner Lemberg  <wl@gnu.org>
 
-       [type1] Fix Savannah bug #35606.
+       * include/*: Improve structure of documentation.
 
-       * src/type1/t1load.c (parse_subrs): Add proper guards for `strncmp'.
+       . Add and update many `<Order>' tags.
+       . Apply various documentation fixes.
+       . Remove details to deprecated (or never implemented) data.
 
-       * src/psaux/psobjs.c (ps_parser_skip_PS_token): Emit error message
-       only if cur < limit.
+2014-12-02  Werner Lemberg  <wl@gnu.org>
 
-2012-02-25  Werner Lemberg  <wl@gnu.org>
+       [docmaker] Always handle `<Order>' section elements.
 
-       [pcf] Fix Savannah bug #35603.
+       Previously, those elements were handled only for sections present in
+       a `<Sections>' chapter element.
 
-       * src/pcf/pcfread.c (pcf_get_properties): Assure final zero byte in
-       `strings' array.
+       * src/tools/docmaker/content.py (ContentProcessor::finish):
+       Implement it.
 
-2012-02-25  Werner Lemberg  <wl@gnu.org>
+2014-12-02  Werner Lemberg  <wl@gnu.org>
 
-       [type42] Fix Savannah bug #35602.
+       [docmaker] Properly handle empty rows in Synopsis.
 
-       * src/type42/t42parse.c (t42_parse_sfnts): Check `string_size' more
-       thoroughly.
+       * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Emit
+       `&nbsp;' for empty fields.
 
-2012-02-25  Werner Lemberg  <wl@gnu.org>
+2014-12-02  Werner Lemberg  <wl@gnu.org>
 
-       [bdf] Fix Savannah bugs #35599 and #35600.
+       [docmaker] Thinko.
 
-       * src/bdf/bdflib.c (ACMSG16): New warning message.
-       (_bdf_parse_glyphs) <_BDF_BITMAP>: Check line length.
+       * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
+       Emit `/empty/' string for first element also.
 
-2012-02-24  Werner Lemberg  <wl@gnu.org>
+2014-12-02  Werner Lemberg  <wl@gnu.org>
 
-       [bdf] Fix Savannah bugs #35597 and #35598.
+       [docmaker] Honour empty lines in `<Order>' section element.
 
-       * src/bdf/bdflib.c (_bdf_is_atom): Fix handling of property value.
+       This greatly improves the readability of the `Synopsis' links.
 
-2012-02-24  Vinnie Falco  <vinnie.falco@gmail.com>
+       * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
+       Insert string `/empty/' between items.
 
-       Prepare source code for amalgamation (6/6).
+       * src/tools/docmaker/formatter.py (Formatter::section_dump): Make it
+       robust against nonexistent keys.
 
-       * src/cff/cffdrivr.c: s/Load_Glyph/cff_glyph_load/.
+       * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Emit
+       empty <td> elements for `/empty/'.
 
-       * src/cid/cidload.c: s/parse_font_matrix/cid_parse_font_matrix/.
-       s/t1_init_loader/cid_init_loader/.
-       s/t1_done_loader/cid_done_loader/.
+2014-12-02  Werner Lemberg  <wl@gnu.org>
 
-       * src/pxaux/t1cmap.c: s/t1_get_glyph_name/psaux_get_glyph_name/.
+       [docmaker] Ensure Python 3 compatibility.
 
-       * src/truetype/ttdriver.c: s/Load_Glyph/tt_glyph_load/.
+       * src/tools/docmaker/content.py (ContentProcessor::set_section,
+       ContentProcessor::finish): Replace `has_key' function with `in'
+       keyword.
 
-       * src/type1/t1load.c: s/parse_font_matrix/t1_parse_font_matrix/.
+       * src/tools/docmaker/formatter.py (Formatter::__init__): Replace
+       sorting function with a key generator.
+       (Formatter::add_identifier): Replace `has_key' function with `in'
+       keyword.
 
-2012-02-24  Vinnie Falco  <vinnie.falco@gmail.com>
+       * src/tools/docmaker/tohtml.py (HtmlFormatter::html_source_quote):
+       Replace `has_key' function with `in' keyword.
+       (HtmlFormatter::index_exit, HtmlFormatter::section_enter): Use
+       integer division.
+       s/<>/>/.
 
-       Prepare source code for amalgamation (5/6).
+       * src/tools/docmaker/utils.py: Import `itertools'.
+       (index_sort): Replaced by...
+       (index_key): ... this new key generator (doing exactly the same).
 
-       * include/freetype/fterrors.h: Undefine FT_KEEP_ERR_PREFIX after
-       using it.
+2014-11-29  Werner Lemberg  <wl@gnu.org>
 
-2012-02-22  Vinnie Falco  <vinnie.falco@gmail.com>
+       [docmaker] Don't output a block multiple times.
 
-       Prepare source code for amalgamation (4/6).
+       This bug was hidden by not processing all lines of `<Order>' blocks.
 
-       * src/smooth/ftgrays.c, src/raster/ftraster.c: Undefine RAS_ARG,
-       RAS_ARGS, RAS_VAR, and RAS_VARS before defining it.
+       * src/tools/docmaker/formatter.py (Formatter::section_dump): Filter
+       out field names.
 
-       * src/smooth/ftgrays.c: s/TRaster/black_TRaster/,
-       s/PRaster/black_PRaster/.
-       * src/raster/ftraster.c: s/TRaster/gray_TRaster/,
-       s/PRaster/gray_PRaster/.
+2014-11-29  Werner Lemberg  <wl@gnu.org>
 
-2012-02-20  Vinnie Falco  <vinnie.falco@gmail.com>
+       [docmaker] Use field values as HTML link targets where possible.
 
-       Prepare source code for amalgamation (3/6).
+       * src/tools/docmaker/tohtml.py (HtmlFormatter::make_block_url):
+       Accept second, optional argument to specify a name.
+       (HtmlFormatter::html_source_quote): Link to field ID if possible.
+       (HtmlFormatter::print_html_field_list): Emit `id' attribute.
 
-       * src/smooth/ftgrays.c: s/TWorker/black_TWorker/,
-       s/PWorker/black_PWorker/.
-       * src/raster/ftraster.c: s/TWorker/gray_TWorker/,
-       s/PWorker/gray_PWorker/.
+2014-11-29  Werner Lemberg  <wl@gnu.org>
 
-2012-02-20  Vinnie Falco  <vinnie.falco@gmail.com>
+       [docmaker] Allow empty lines in `<Order>' blocks.
 
-       Prepare source code for amalgamation (2/6).
+       Before this patch, the suggested order of entries stopped at the
+       first empty line.
 
-       * src/smooth/ftgrays.c, src/raster/ftraster.c: Undefine FLOOR,
-       CEILING, TRUNC, and SCALED before defining it.
+       Obviously, nobody noticed that this problem caused a much reduced
+       set of links in the `Synopsis' sections; in particular, the
+       `<Order>' blocks contain a lot of entries that wouldn't be listed
+       otherwise...
 
-2012-02-20  Vinnie Falco  <vinnie.falco@gmail.com>
+       * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
+       New function to iterate over all items.
+       (DocSection::process): Use it.
 
-       Prepare source code for amalgamation (1/6).
+2014-11-29  Werner Lemberg  <wl@gnu.org>
 
-       See discussion starting at
+       * src/tools/docmaker/sources.py (column) [Format 2]: Fix regexp.
 
-         http://lists.gnu.org/archive/html/freetype-devel/2012-01/msg00037.html
+       After the single asterisk there must be no other immediately following
+       asterisk.
 
-       * src/smooth/ftgrays.c: s/TBand/gray_TBand/.
-       * src/raster/ftraster.c: s/TBand/black_TBand/.
+2014-11-29  Werner Lemberg  <wl@gnu.org>
 
-2012-02-17  Alexei Podtelezhnikov  <apodtele@gmail.com>
+       * src/tools/docmaker/tohtml.py: Improve CSS for vertical spacing.
 
-       [autofit] Fix outline flags.
+2014-11-29  Werner Lemberg  <wl@gnu.org>
 
-       * src/autofit/afloader.c (af_loader_load_g): Don't reassign
-       `outline.flags' so that this information is preserved.  See
-       discussion starting at
+       [docmaker] Improve HTML code for table of contents.
 
-         http://lists.gnu.org/archive/html/freetype-devel/2012-02/msg00046.html
+       * src/tools/docmaker/tohtml.py: Introduce a new table class `toc',
+       together with proper CSS.
 
-2012-02-11  Werner Lemberg  <wl@gnu.org>
+2014-11-29  Werner Lemberg  <wl@gnu.org>
 
-       [truetype] Fix Savannah bug #35466.
+       [docmaker] Provide higher-level markup and simplify HTML.
 
-       Jump instructions are now bound to the current function.  The MS
-       Windows rasterizer behaves the same, as confirmed by Greg Hitchcock.
+       * src/tools/docmaker/tohtml.py: Instead of using extraneous `<div>'
+       elements, use CSS descendants (of class `section') to format the
+       data.
 
-       * src/truetype/ttinterp.h (TT_CallRec): Add `Cur_End' element.
-       * src/truetype/ttobjs.h (TT_DefRecord): Add `end' element.
+       Also remove reduntant <p> and <br> elements, replacing them with
+       proper CSS.
 
-       * src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF): Check upper
-       bound of jump address.
-       (Ins_FDEF, Ins_CALL, Ins_LOOPCALL, Ins_UNKNOWN, TT_RunIns): Updated.
+       Globally reduce page width to 75%.
 
-2012-02-11  Werner Lemberg  <wl@gnu.org>
+       (block_header): Rename <div> class to `section'.
 
-       We don't use `extensions'.
+2014-11-29  Werner Lemberg  <wl@gnu.org>
 
-       * include/freetype/internal/ftobjs.h (FT_DriverRec): Remove
-       `extensions' field.
+       [docmaker] Add `top' links after blocks.
 
-2012-02-11  Werner Lemberg  <wl@gnu.org>
+       * src/tools/docmaker/tohtml.py (block_footer_middle): Implement it.
 
-       Clean up `generic' fields.
+2014-11-29  Werner Lemberg  <wl@gnu.org>
 
-       * include/freetype/internal/ftobjs.h (FT_ModuleRec, FT_LibraryRec):
-       Remove `generic' field since users can't access it.
+       * src/tools/docmaker/tohtml.py: Improve CSS for fields.
 
-       * src/base/ftobjs.c (FT_Done_GlyphSlot): Call `generic.finalizer' as
-       advertised in the documentation of FT_Generic.
-       (Destroy_Module, FT_Done_Library): Updated to changes in `ftobjs.h'.
+       Make fields align horizontally relative to full line width.
 
-2012-02-07  Werner Lemberg  <wl@gnu.org>
+2014-11-29  Werner Lemberg  <wl@gnu.org>
 
-       [autofit] Harmonize function arguments.
+       * src/tools/docmaker/tohtml.py: Fix index and TOC templates.
 
-       * src/autofit/afloader.c, src/autofit/afloader.h: Use `FT_Int32' for
-       `load_flags'.
+       This thinko was introduced 2014-11-27.
 
-2012-02-07  Werner Lemberg  <wl@gnu.org>
+2014-11-28  Werner Lemberg  <wl@gnu.org>
 
-       * src/cff/cffobjs.c (cff_face_init): Remove unnecessary casts.
+       [docmaker] Format field lists with CSS.
 
-2012-01-17  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       This also simplifies the inserted HTML code.
 
-       [gxvalid] Fix Savannah bug #35286.
+       * src/tools/docmaker/tohtml.py
+       (HtmlFormatter::print_html_field_list): Do it.
 
-       Patch submitted by anonymous reporter.
+2014-11-28  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-       * src/gxvalid/gxvcommn.c (gxv_XStateTable_subtable_setup):
-       gxv_set_length_by_ulong_offset() must be called with 3, not 4,
-       the number of the subtables in the state tables; classTable,
-       stateArray, entryTable.
+       Fix compiler warning to the comparison between signed and
+       unsigned variable.
 
-2012-01-17  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Fix the comparison
+       between `ypos + ysize' and FT_INT_{MAX,MIN}.
 
-       [raccess] Modify for PIC build.
+2014-11-28  Werner Lemberg  <wl@gnu.org>
 
-       Based on the patch provided by Erik Dahlstrom <ed@opera.com>,
-       http://lists.gnu.org/archive/html/freetype-devel/2012-01/msg00010.html
+       [docmaker] Replace empty `<td>' with CSS.
 
-       Also `raccess_guess_table[]' and `raccess_rule_by_darwin_vfs()'
-       are renamed with `ft_' suffixes.
+       * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Do
+       it.
 
-       * src/base/ftbase.h: `raccess_rule_by_darwin_vfs()' is renamed
-       to `ft_raccess_rule_by_darwin_vfs()'.
-       * src/base/ftobjs.c: Ditto.
+2014-11-28  Werner Lemberg  <wl@gnu.org>
 
-       * src/base/ftrfork.c: Declarations of FT_RFork_Rule,
-       raccess_guess_rec, are moved to...
-       * include/freetype/internal/ftrfork.h: Here.
+       [docmaker] Replace some `<table>' tags with `<h4>' and `<div>'.
 
-       * include/freetype/internal/ftrfork.h:
-       FT_RFORK_RULE_ARRAY_{BEGIN,ENTRY,END} macros are defined
-       to replace raccess_guess_table[] in both of PIC and non-PIC
-       modes.
-       * src/base/ftrfork.c: raccess_guess_table[] array is rewritten
-       by FT_RFORK_RULE_ARRAY_{BEGIN,ENTRY,END}.
+       * src/tools/docmaker/tohtml.py (marker_*): Use `<h4>'.
+       (source_*): Use `<div>'.
+       (HtmlFormatter::block_enter): s/<h4>/<h3>/.
 
-       * src/base/basepic.h (BasePIC): Add `ft_raccess_guess_table'
-       storage.  (FT_RACCESS_GUESS_TABLE_GET): New macro to retrieve
-       the function pointer from `ft_raccess_guess_table' storage in
-       `BasePIC' structure.
-       * src/base/ftrfork.c (FT_Raccess_Guess): Rewritten with
-       FT_RACCESS_GUESS_TABLE_GET.
-       (raccess_get_rule_type_from_rule_index): Add `library' as the
-       first argument to the function, to retrieve the storage of
-       `ft_raccess_guess_table' from it.  Also `raccess_guess_table'
-       is replaced by FT_RACCESS_GUESS_TABLE_GET.
-       (ft_raccess_rule_by_darwin_vfs): Ditto.
+2014-11-28  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-2012-01-16  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       Fix compiler warning to conversion specifiers in debug messages.
 
-       Remove trailing spaces.
+       * src/autofit/afhints.c (af_glyph_hints_dump_points): Add length
+       modifier to dump long integers.
+       (af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Ditto.
 
-2012-01-16  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-11-27  Werner Lemberg  <wl@gnu.org>
 
-       Formatting PIC related sources.
+       * src/tools/docmaker/tohtml.py: Use more CSS for index.
 
-       * src/autofit/afpic.c: Harmonize to FT2 coding conventions.
-       * src/base/basepic.c: Ditto.
-       * src/base/ftpic.c: Ditto.
-       * src/cff/cffpic.c: Ditto.
-       * src/pshinter/pshpic.c: Ditto.
-       * src/psnames/pspic.c: Ditto.
-       * src/raster/rastpic.c: Ditto.
-       * src/sfnt/sfntpic.c: Ditto.
-       * src/smooth/ftspic.c: Ditto.
-       * src/truetype/ttpic.c: Ditto.
+2014-11-27  Werner Lemberg  <wl@gnu.org>
 
-2012-01-16  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       [docmaker] Replace `name' attribute of `<a>' with `id'.
 
-       [autofit] Fix the inclusion of `aflatin2.h' in PIC file.
+       * src/tools/docmaker/tohtml.py (HtmlFormatter::block_enter): Do it.
 
-       * src/autofit/afpic.c: Include `aflatin2.h' when
-       FT_OPTION_AUTOFIT2 is defined, as afglobal.c does so.
-       Unconditionally inclusion causes declared but unimplemented
-       warning by GCC 4.6.
+2014-11-27  Werner Lemberg  <wl@gnu.org>
 
-2012-01-16  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/tools/docmaker/tohtml.py: Remove remaining `width' attributes.
 
-       [cff] Remove redundant declarations of cff_cmap_XXX_class_rec.
+       For `Index' and `TOC' links, we now simply use the `text-align' CSS
+       property of `<td>' to enforce flush-left and flush-right,
+       eliminating the hack with an empty, full-width `<td>' element
+       inbetween.
 
-       * src/cff/cffpic.c: The declarations of
-       FT_Init_Class_cff_cmap_encoding_class_rec() and
-       FT_Init_Class_cff_cmap_unicode_class_rec() are removed.
-       They can be obtained by the inclusion of cffcmap.h.
-       cffcmap.h invokes FT_DECLARE_CMAP_CLASS() and it declares
-       FT_Init_Class_cff_cmap_encoding_class_rec() etc in PIC mode.
+       The change also enforces the same (smaller) size for all index and
+       TOC links.
 
-2012-01-15  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-11-27  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-       Fix redundant declaration warning in PIC mode.
+       * src/cff/cf2font.c: Include `ftcalc.h' to use FT_MSB(),
+       cf2font.c could not find it under `make multi' build.
 
-       Originally FT_DEFINE_{DRIVER,MODULE,RENDERER}() macros were
-       designed to declare xxx_pic_{free,init} by themselves.
-       Because these macros are used at the end of the module
-       interface (e.g. ttdriver.c) and the wrapper source to build
-       a module as a single object (e.g. truetype.c) includes
-       the PIC file (e.g. ttpic.c) before the module interface,
-       these macros are expanded AFTER xxx_pic_{free,init} body
-       when the modules are built as single object.
-       The declaration after the implementation causes the redundant
-       declaration warnings, so the declarations are moved to module
-       PIC headers (e.g. ttpic.h).  Separating to other header files
-       are needed for multi build.
+2014-11-27  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-       * include/freetype/internal/ftdriver.h (FT_DEFINE_DRIVER):
-       Remove class_##_pic_free and class_##_pic_init declarations.
-       * include/freetype/internal/ftobjs.h (FT_DEFINE_RENDERER,
-       FT_DEFINE_MODULE): Ditto.
+       * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove
+       unrequired negative value check for `width' and `height'.
 
-       * src/base/basepic.h: Insert a comment and fix coding style.
-       * src/autofit/afpic.h: Declare autofit_module_class_pic_{free,
-       init}.
-       * src/cff/cffpic.h: Declare cff_driver_class_pic_{free,init}.
-       * src/pshinter/pshpic.h: Declare pshinter_module_class_pic_{free,
-       init}.
-       * src/psnames/pspic.h: Declare psnames_module_class_pic_{free,
-       init}.
-       * src/raster/rastpic.h: Declare
-       ft_raster{1,5}_renderer_class_pic_{free,init}
-       * src/sfnt/sfntpic.h: Declare sfnt_module_class_pic_{free,init}.
-       * src/smooth/ftspic.h: Declare
-       ft_smooth_{,lcd_,lcdv_}renderer_class_pic_{free,init}.
-       * src/truetype/ttpic.h: Declare tt_driver_class_pic_{free,init}.
+2014-11-27  Werner Lemberg  <wl@gnu.org>
 
-2012-01-15  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/tools/docmaker/tohtml.py: More HTML table refactoring.
 
-       Make pspic.c to include module error header to fix multi build.
+       Replace some `<table>' tags with `<div>' to simplify structure.
 
-       * src/psnames/pspic.c: Include `psnamerr.h'.
+       Move `bgcolor' attribute to CSS.
 
-2012-01-14  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       Replace most `width' attributes with CSS.  The remaining instances
+       (providing a similar effect as LaTeX's `\hfill' command) are removed
+       in a later patch.
 
-       [base] Fix a dereference of uninitialized variable in PIC mode.
+2014-11-27  Werner Lemberg  <wl@gnu.org>
 
-       * src/base/ftglyph.c (FT_Glyph_To_Bitmap): `glyph' must be
-       set before derefering to obtain `library'.  The initialization
-       of `clazz', `glyph', `library' and NULL pointer check are
-       reordered to minimize PIC conditonals.
+       * src/tools/docmaker/tohtml.py: Replace <font> with CSS.
 
-2012-01-14  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-11-27  Werner Lemberg  <wl@gnu.org>
 
-       [base] Insert explicit cast for GCC 4.6 in PIC mode.
+       * src/tools/docmaker/tohtml.py: Center <table> with CSS.
 
-       * src/base/ftinit.c (FT_Add_Default_Modules): Under PIC
-       configuration, FT_DEFAULT_MODULES_GET returns
-       FT_Module_Class** pointer, GCC 4.6 warns that
-       const FT_Module_Class* const* variable is warned as
-       inappropriate to store it.  To calm it, explicit cast is
-       inserted.  Also `library' is checked to prevent the NULL
-       pointer dereference in FT_DEFAULT_MODULES_GET.
+2014-11-27  Werner Lemberg  <wl@gnu.org>
 
-2012-01-13  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/tools/docmaker/tohtml.py: Replace `<center>' with `<div>'.
 
-       Fix PIC build broken by d9145241fe378104ba4c12a42534549faacc92e6.
+2014-11-27  Werner Lemberg  <wl@gnu.org>
 
-       Under PIC configuration, FT_{CFF,PSCMAPS,SFNT,TT}_SERVICES_GET
-       take no arguments but derefer the variable named `library'
-       internally.
+       * src/tools/docmaker/tohtml.py: Remove redundant `<center>' tags.
 
-       * src/cff/cffdrivr.c (cff_get_interface): Declare `library' and
-       set it if non-NULL driver is passed.
-       * src/truetype/ttdriver.c (tt_get_interface): Ditto.
+       This starts a series of commits into the direction of generating
+       valid HTML 5 code, especially using much more CSS.
 
-       * src/sfnt/sfdriver.c (sfnt_get_interface): Declare `library'
-       under PIC configuration, and set it if non-NULL module is given.
-       * src/psnames/psmodule.c (psnames_get_interface): Ditto.
+2014-11-27  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-2012-01-13  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       Prevent too negative values (< FT_INT_MIN) in bitmap metrics,
+       suggested by Alexei.
 
-       Make PIC files include module error headers, to use the error codes
-       with per-module prefix.
+       * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Prevent too
+       negative values in `xpos' and `ypos + ysize'.
+       * src/smooth/ftsmooth.c (ft_smooth_render_generic): Prevent
+       too negative values in `x_left' and `y_top'.  Either negative
+       values in `width' and `height' are checked.
 
-       * src/autofit/afpic.c: Include `aferrors.h'.
-       * src/cff/cffpic.c: Include `cfferrs.h'.
-       * src/pshinter/pshpic.c: Include `pshnterr.h'.
-       * src/raster/rastpic.c: Include `rasterrs.h'.
-       * src/sfnt/sfntpic.c: Include `sferrors.h'.
-       * src/smooth/ftspic.c: Include `ftsmerrs.h'.
-       * src/truetype/ttpic.c: Include `tterrors.h'.
+2014-11-27  Werner Lemberg  <wl@gnu.org>
 
-2012-01-04  Tobias Ringström  <tobias@ringis.se>
+       [docmaker] Produce better HTML code.
 
-       [truetype] Fix IP instruction if x_ppem != y_ppem.
+       * src/tools/docmaker/tohtml.py: Always use double quotes for
+       attribute values.
+       (source_footer): Close `td' and `tr' groups.
 
-       * src/truetype/ttinterp.c (Ins_IP): Scale `orus' coordinates
-       properly.
+2014-11-27  Werner Lemberg  <wl@gnu.org>
 
-2012-01-02  Werner Lemberg  <wl@gnu.org>
+       Use better way to disable creation of .pyc files for `make refdoc'.
 
-       Fix tracing message for `loca' table.
+       Python 2.6 was released in 2008...
 
-       * src/truetype/ttpload.c (tt_face_get_location): Don't emit a
-       warning message if the last `loca' entry references an empty glyph.
+       * builds/freetype.mk (refdoc): Use python's `-B' option.
 
-2011-12-10  Werner Lemberg  <wl@gnu.org>
+       * builds/detect.mk (std_setup, dos_setup): Mention required python
+       version for `refdoc' target.
 
-       Add some variable initializations.
-       Reported by Richard COOK <rscook@unicode.org>.
+2014-11-27  Werner Lemberg  <wl@gnu.org>
 
-       * src/type1/t1driver.c (t1_ps_get_font_value): Initialize `val'.
-       * src/smooth/ftgrays.c (gray_render_conic): Initialize `levels'
-       earlier.
+       * src/tools/docmaker/sources.py (re_bold, re_italic): Use
+       non-grouping parentheses.
+       * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_word):
+       Updated.
 
-2011-12-08  Werner Lemberg  <wl@gnu.org>
+2014-11-27  Werner Lemberg  <wl@gnu.org>
 
-       Fix serious scaling bug in `FT_Get_Advances'.
+       * src/base/ftobjs.c (FT_Get_Glyph_Name): Fix compiler warning.
 
-       * src/base/ftadvanc.c (FT_Get_Advances): Advance values returned by
-       `FT_Load_Glyph' must be simply multiplied by 1024.
+       Introdruced in previous change.  Reported by Alexei.
 
-2011-12-08  Werner Lemberg  <wl@gnu.org>
+2014-11-26  Werner Lemberg  <wl@gnu.org>
 
-       * src/bdf/bdflib.c (_bdf_parse_start): Drop redundant error tracing.
+       * src/*: Add checks for parameters of API functions where missing.
 
-2011-12-02  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       `API functions' are functions tagged with `FT_EXPORT_DEF'.
 
-       [mac] Unify DARWIN_NO_CARBON with FT_MACINTOSH.
+       Besides trivial fixes, the following changes are included, too.
 
-       Originally FT_MACINTOSH was a pure auto macro and DARWIN_NO_CARBON
-       was a configurable macro to disable Carbon-dependent code.  Because
-       now configure script sets DARWIN_NO_CARBON by default and disables
-       Darwin & Carbon-dependent codes, these macros can be unified.
-       FT_MACINTOSH (undefined by default) is kept and DARWIN_NO_CARBON
-       (defined by default) is removed, because DARWIN_NO_CARBON violates
-       FT_XXX naming convention of public macros, and a macro configured by
-       default is not portable for the building without configure (e.g.
-       make devel).
+       * src/base/ftbdf.c (FT_Get_BDF_Charset_ID, FT_Get_BDF_Property): Set
+       error code if no service is available.
 
-       * builds/unix/configure.raw: Define FT_MACINTOSH if Carbon-based
-       old Mac font support is requested and Carbon is available.
-       * builds/unix/ftconfig.in: Undefine FT_MACINTOSH when the support
-       for Mac OS X without Carbon (e.g.  Mac OS X 10.4 for ppc64) is
-       requested.
-       * include/freetype/config/ftconfig.in: Ditto.
-       * builds/vms/ftconfig.h: Ditto.
+       * src/base/ftinit.c (FT_Done_FreeType): Change return value for
+       invalid `library' parameter to `Invalid_Library_Handle'.
 
-       * src/base/ftbase.h: Remove DARWIN_NO_CARBON.
-       * src/base/ftbase.c: Ditto.
-       * src/base/ftobjs.c: Ditto.
-       * src/base/ftrfork.c: Ditto.
+       * src/base/ftobjs.c (FT_New_Size): Change return value for invalid
+       `asize' parameter to `Invalid_Argument'.
 
-       * src/base/ftmac.c: Compile the body if FT_MACINTOSH is defined
-       (same with TT_USE_BYTECODE_INTERPRETER in ttinterp.c).
-       * builds/mac/ftmac.c: Ditto.
+       * src/base/ftoutln.c (FT_Outline_Copy): Change return value for
+       invalid `source' and `target' parameters to `Invalid_Outline'.
+       (FT_Outline_Done_Internal): Change return value for invalid
+       `outline' parameter to `Invalid_Outline'.
 
-       * builds/mac/FreeType.m68k_cfm.make.txt: Define FT_MACINTOSH.
-       * builds/mac/FreeType.m68k_far.make.txt: Ditto.
-       * builds/mac/FreeType.ppc_classic.make.txt: Ditto.
-       * builds/mac/FreeType.ppc_carbon.make.txt: Ditto.
+2014-11-26  Werner Lemberg  <wl@gnu.org>
 
-2011-11-30  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/cache/ftcbasic.c: Use single calls to `FT_TRACE'.
 
-       Fix Savannah bug #34728 (`make devel' on Mac OS X).
+2014-11-26  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-       * builds/toplevel.mk: Check `/dev/null' to identify the Unix-
-       like systems without `init' nor `hurd' (e.g. Mac OS X >= 10.4).
-       * builds/unix/detect.mk: Ditto.
+       * src/base/ftobj.c (Mac_Read_POST_Resource): Additional
+       overflow check in the summation of POST fragment lengths,
+       suggested by Mateusz Jurczyk <mjurczyk@google.com>.
 
-2011-11-30  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-11-26  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-       [apinames] Fix the overflow of signed integer hash.
+       * src/base/ftobjs.c (Mac_Read_POST_Resource): Insert comments
+       and fold too long tracing messages.
 
-       * src/tools/apinames.c (names_add): Change the type of `h' from
-       int to unsigned int, to prevent undefined behaviour in the
-       overflow of signed integers (overflow of unsigned int is defined
-       to be wrap around).  Found by clang test suggested by Sean
-       McBride.
+2014-11-26  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-2011-11-30  Werner Lemberg  <wl@gnu.org>
+       Fix Savannah bug #43540.
 
-       [winfonts] Remove casts.
+       * src/base/ftmac.c (parse_fond): Prevent a buffer overrun
+       caused by a font including too many (> 63) strings to store
+       names[] table.
 
-       * src/winfonts/winfnt.c (winfnt_driver_class): Remove all casts and
-       update affected functions.
-       (FNT_Size_Select): Fix number of arguments.
+2014-11-26  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-2011-11-30  Werner Lemberg  <wl@gnu.org>
+       * src/base/ftobjs.c (Mac_Read_POST_Resource): Use unsigned long
+       variables to read the lengths in POST fragments.  Suggested by
+       Mateusz Jurczyk <mjurczyk@google.com>.
 
-       [type42] Remove casts.
+2014-11-26  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-       * src/type42/t42driver.c (t42_driver_class): Remove all casts and
-       update affected functions.
+       Fix Savannah bug #43539.
 
-       * src/type42/t42objs.c, src/type42/t42objs.h: Updated for t42driver
-       changes.
+       * src/base/ftobjs.c (Mac_Read_POST_Resource): Fix integer overflow
+       by a broken POST table in resource-fork.
 
-2011-11-30  Werner Lemberg  <wl@gnu.org>
+2014-11-26  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-       [type1] Remove casts.
+       Fix Savannah bug #43538.
 
-       * src/type1/t1driver.c (t1_driver_class): Remove all casts and
-       update affected functions.
+       * src/base/ftobjs.c (Mac_Read_POST_Resource): Fix integer overflow
+       by a broken POST table in resource-fork.
 
-       * src/type1/t1gload.c, src/type1/t1gload.h, src/type1/t1objs.c:
-       Updated for t1driver changes.
-       src/type1/t1objs.h (T1_Driver): Remove unused typedef.
-       Updated for t1driver changes.
+2014-11-26  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-2011-11-27  Werner Lemberg  <wl@gnu.org>
+       * src/base/ftobjs.c (Mac_Read_POST_Resource): Avoid memory leak
+       by a broken POST table in resource-fork.  Return after freeing
+       the buffered POST table when it is found to be broken.
 
-       [bdf] Fix Savannah bug #34896.
+2014-11-25  Werner Lemberg  <wl@gnu.org>
 
-       ENCODING now covers the whole Unicode range.
+       */*: s/Invalid_Argument/Invalid_Size_Handle/ where appropriate.
 
-       Note, however, that this change is quite expensive since it
-       increases the size of three arrays by almost 400kByte in total.  The
-       right fix is to replace the logic with something smarter.
-       Additionally, there exist very old BDFs for three-byte CCCII
-       encoding which exceeds the range of Unicode (another reason to have
-       a smarter logic).
+2014-11-25  Werner Lemberg  <wl@gnu.org>
 
-       * src/bdf/bdf.h (bdf_font_t): Increase size of `nmod' and `umod'
-       arrays.
-       * src/bdf/bdflib.c (bdf_parse_t): Increase size of `have' array.
+       */*: s/Invalid_Argument/Invalid_Stream_Handle/ where appropriate.
 
-2011-11-27  Werner Lemberg  <wl@gnu.org>
+2014-11-25  Werner Lemberg  <wl@gnu.org>
 
-       [bdf] Improve tracing.
+       */*: s/Invalid_Argument/Invalid_Library_Handle/ where appropriate.
 
-       * src/bdf/bdflib.c (DBGMSG1, DBGMSG2): New macros.
-       (_bdf_parse_glyphs): Use them.
+2014-11-25  Werner Lemberg  <wl@gnu.org>
 
-2011-11-26  Werner Lemberg  <wl@gnu.org>
+       */*: s/Invalid_Argument/Invalid_Outline/ where appropriate.
 
-       Improve tracing.
+2014-11-25  Werner Lemberg  <wl@gnu.org>
 
-       * src/bdf/bdfdrivr.c (BDF_Face_Done), src/pcf/pcfdrivr.c
-       (PCF_Face_Done): Remove tracing message.
+       */*: s/Invalid_Argument/Invalid_Face_Handle/ where appropriate.
 
-       * src/bdf/bdfdrivr.c (BDF_Face_Init), src/cff/cffobjs.c
-       (cff_face_init), src/cid/cidobjs.c (cid_face_init),
-       src/pfr/pfrobjs.c (pfr_face_init), src/sfnt/sfobjs.c
-       (sfnt_init_face), src/truetype/ttobjs.c (tt_face_init),
-       src/type1/t1objs.c (T1_Face_Init), src/type42/t42objs.c
-       (T42_Face_Init), src/winfonts/winfnt.c (FNT_Face_Init): Add
-       `greeting' message.
+2014-11-24  Werner Lemberg  <wl@gnu.org>
 
-       * src/sfnt/sfobjs.c (sfnt_open_font), src/type42/t42objs.c
-       (T42_Open_Face): Improve tracing.
+       [Savannah bug #43682] Adjust some renderer callbacks.
 
-2011-11-26  Werner Lemberg  <wl@gnu.org>
+       * src/raster/ftraster.c (ft_black_set_mode): Change return type to
+       `int' to stay in sync with `FT_Renderer_SetModeFunc' prototype.
 
-       [cid] Fix error code.
+       * src/smooth/ftgrays.c (gray_raster_set_mode): New dummy function
+       for orthogonality.
+       (ft_grays_raster): Use it.
 
-       * src/cid/cidparse.c (cid_parser_new): Do it.
+2014-11-25  Werner Lemberg  <wl@gnu.org>
 
-2011-11-26  Werner Lemberg  <wl@gnu.org>
+       [Savannah bug #43682] Properly handle missing return errors.
 
-       [cff] Fix error code.
+       The functions in this patch *do* return non-trivial errors that must
+       be taken care of.
 
-       * src/cff/cffload.c (cff_font_load): Do it.
+       * src/autofit/afloader.c (af_loader_load_g), src/base/ftobjs.c
+       (FT_Render_Glyph_Internal), src/base/ftoutln.c (FT_Outline_Render),
+       src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_endchar>,
+       src/psaux/psobjs.c (ps_parser_load_field_table), src/psaux/t1decode
+       (t1_decoder_parse_charstrings) <op_endchar>, src/truetype/ttgload.c
+       (load_truetype_glyph <subglyph loop>, tt_loader_init,
+       TT_Load_Glyph), src/truetype/ttgxvar.c (TT_Set_MM_Blend),
+       src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): Do it.
 
-2011-11-26  Werner Lemberg  <wl@gnu.org>
+2014-11-25  Werner Lemberg  <wl@gnu.org>
 
-       Add new error code FT_Err_Missing_Module.
+       [Savannah bug #43682] Add/remove `void' casts to some functions.
 
-       Previously, FreeType misleadingly returned
-       FT_Err_Unknown_File_Format if a module was missing (or a test was
-       missing completely).
+       We use a cast to indicate that we intentionally ignore a function's
+       return value.  However, this doesn't apply to API functions where
+       errors can only happen for trivially invalid input.
 
-       * include/freetype/fterrdef.h (FT_Err_Missing_Module): Define.
+       * src/base/ftstroke.c (FT_Glyph_Stroke, FT_Glyph_StrokeBorder),
+       src/base/ftsynth.c (FT_GlyphSlot_Embolden), src/cff/cffgload.c
+       (cff_slot_load), src/pfr/pfrdrivr.c (pfr_get_kerning),
+       src/type1/t1load.c (parse_encoding), src/type42/t42parse.c
+       (t42_parse_encoding): Do it.
 
-       * src/cff/cffobjs.c (cff_face_init), src/cff/cffdrivr.c
-       (cff_get_glyph_name), src/cid/cidobjs.c (cid_face_init),
-       src/sfnt/sfobjs.c (sfnt_init_face), src/truetype/ttobjs.c
-       (tt_face_init), src/type1/t1objs.c (T1_Face_Init),
-       src/type42/t42objs.c (T42_Face_Init, T42_Driver_Init): Updated.
+2014-11-25  Werner Lemberg  <wl@gnu.org>
 
-       * src/type1/t1afm.c (T1_Read_Metrics), src/type/t1objs.c
-       (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Remove now
-       redundant test for `psaux'.
+       [Savannah bug #43682] Change some signatures to `void' return type.
 
-2011-11-25  Werner Lemberg  <wl@gnu.org>
+       * include/internal/pshints.h (PSH_Globals_SetScaleFunc),
+       include/internal/sfnt.h (TT_Get_Metrics_Func),
+       src/pshinter/pshglob.c (psh_globals_set_scale),
+       src/pshinter/pshrec.c (ps_hints_init), src/sfnt/ttmtx.c
+       (tt_face_get_metrics), src/truetype/ttinterp.c (TT_Goto_CodeRange,
+       TT_Set_CodeRange, TT_Clear_CodeRange, TT_Done_Context,
+       TT_Save_Context): Do it.
 
-       [bdf] Add more error messages.
+       * src/pshinter/pshglob.h, src/pshinter/pshrec.h, src/sfnt/ttmtx.h,
+       src/truetype/ttgload.c (TT_Hint_Glyph), src/truetype/ttinterp.c
+       (TT_Run_Context), src/truetype/ttinterp.h, src/truetype/ttobjs.c
+       (tt_size_run_fpgm, tt_size_run_prep): Updated.
 
-       * src/bdf/bdflib.c (_bdf_set_default_spacing, _bdf_add_property):
-       Add line number argument.
-       Update all callers.
-       (ERRMSG5, ERRMSG6, ERRMSG7, ERRMSG8, ERRMSG9): New macros.
-       (_bdf_readstream, _bdf_set_default_spacing, _bdf_add_property,
-       _bdf_parse_glyphs, _bdf_parse_start): Add error messages.
+2014-11-24  Werner Lemberg  <wl@gnu.org>
 
-2011-11-24  Werner Lemberg  <wl@gnu.org>
+       Remove all code related to FT_MAX_CHARMAP_CACHEABLE.
 
-       * include/freetype/fterrors.h: Remove dead code.
+       This is no longer used.
 
-2011-11-15  Werner Lemberg  <wl@gnu.org>
+       * src/base/ftobjs.c, src/cache/ftccmap.c, src/cff/cffobjs.c,
+       src/sfnt/ttcmap.c: Do it.
 
-       * docs/releases: Updated.
+2014-11-24  Werner Lemberg  <wl@gnu.org>
 
-2011-11-15  Werner Lemberg  <wl@gnu.org>
+       [sfnt] Fix Savannah bug #43680.
 
-       * Version 2.4.8 released.
-       =========================
+       This adds an additional constraint to make the fix from 2013-01-25
+       really work.
 
+       * src/sfnt/ttsbit.c (tt_sbit_decoder_load_image) <index_format==4>:
+       Check `p' before `num_glyphs'.
 
-       Tag sources with `VER-2-4-8'.
+2014-11-24  Werner Lemberg  <wl@gnu.org>
 
-       * docs/CHANGES: Updated.
+       [truetype] Fix Savannah bug #43679.
 
-       * docs/VERSION.DLL: Update documentation and bump version number to
-       2.4.8.
+       * src/truetype/ttpload.c (tt_face_load_hdmx): Check minimum size of
+       `record_size'.
 
-       * 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/vc2010/freetype.vcxproj, builds/win32/vc2010/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.7/2.4.8/, s/247/248/.
+2014-11-24  Jarkko Pöyry  <jarkko.poyry@gmail.com>
 
-       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 8.
+       [cff, pfr, psaux, winfonts] Fix Savannah bug #43676.
 
-       * builds/unix/configure.raw (version_info): Set to 14:0:8.
+       Don't cast cmap init function pointers to an incompatible type.
 
-2011-11-13  Chris Liddell  <chris.liddell@artifex.com>
+       Without this patch, the number of parameters between declaration and
+       the real signature differs.  Calling such a function results in
+       undefined behavior.
 
-       Add FT_Get_PS_Font_Value() API.
+         ISO/IEC 9899:TC3 (Committee Draft September 7, 2007)
+           6.5.2.2 Function calls
+             9 If the function is defined with a type that is not
+               compatible with the type (of the expression) pointed to by
+               the expression that denotes the called function, the
+               behavior is undefined.
 
-       This allows a Type 1 font face to be interrogated to retrieve most
-       of the dictionary keys (keys not relevant to FreeType's Type 1
-       interpreter are not available).
+       On certain platforms (c -> js with emscripten) this causes
+       termination of execution or invalid calls because in the emscripten
+       implementation, function pointers of different types are stored in
+       different pointer arrays.  Incorrect pointer type here results in
+       indexing of an incorrect array.
 
-       * include/freetype/internal/services/svpsinfo.h
-       (PS_GetFontValueFunc): New typedef.
-       (PSInfo): Add `ps_get_font_value'.
-       (FT_DEFINE_SERVICE_PSINFOREC): Updated.
+       * src/cff/cffcmap.c (cff_cmap_encoding_init, cff_cmap_unicode_init),
+       src/pfr/pfrcmap.c (pfr_cmap_init), src/psaux/t1cmap.c
+       t1_cmap_standard_init, t1_cmap_expert_init, t1_cmap_custom_init,
+       t1_cmap_unicode_init), src/winfonts/winfnt.c (fnt_cmap_init): Fix
+       signature.
 
-       * include/freetype/internal/t1types.h (T1_EncodingType): Moved to...
-       * include/freetype/t1tables.h: Here.
-       (PS_Dict_Keys): New enumeration.
-       (FT_Get_PS_Font_Value): New declaration.
+2014-11-24  Werner Lemberg  <wl@gnu.org>
 
-       * src/base/fttype1.c (FT_Get_PS_Font_Value): New function.
+       [sfnt] Fix Savannah bug #43672.
 
-       * src/type1/t1driver.c (t1_ps_get_font_value): This new function
-       does the real job.
-       (t1_service_ps_info): Add it.
+       * src/sfnt/ttkern.c (tt_face_load_kern): Use correct value for
+       minimum table length test.
 
-       * src/cff/cffdrivr.c (cff_service_ps_info), src/cid/cidriver.c
-       (cid_service_ps_info), src/type42/t42drivr.c (t42_service_ps_info):
-       Updated.
+2014-11-24  Werner Lemberg  <wl@gnu.org>
 
-2011-11-08  Braden Thomas  <bthomas@apple.com>
+       [type1, type42] Another fix for Savannah bug #43655.
 
-       [cid] Various loading fixes.
+       * src/type1/t1load.c (parse_charstrings), src/type42/t42parse.c
+       (t42_parse_charstrings): Add another boundary testing.
 
-       * src/cid/cidload.c (cid_load_keyword) <default>,
-       (parse_font_matrix, parse_expansion_factor): Correctly check number
-       of dictionaries.
-       (cid_read_subrs): Protect against invalid values of `num_subrs'.
-       Assure that the elements of the `offsets' array are ascending.
+2014-11-24  Werner Lemberg  <wl@gnu.org>
 
-2011-11-05  Werner Lemberg  <wl@gnu.org>
+       [docmaker] Formatting, copyright, improved documentation.
 
-       * README: We use copyright ranges also.
+       * src/tools/docmaker/*: No code changes besides trivial
+       modifications.
 
-       According to
+2014-11-22  Werner Lemberg  <wl@gnu.org>
 
-         http://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html
+       [bdf] Fix Savannah bug #43660.
 
-       this should be mentioned explicitly.
+       * src/bdf/bdflib.c (_bdf_parse_glyphs) <"ENDFONT">: Check
+       `_BDF_GLYPH_BITS'.
 
-2011-10-30  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-11-22  Werner Lemberg  <wl@gnu.org>
 
-       [raccess] Supplement for previous fix.
+       [type42] Allow only embedded TrueType fonts.
 
-       * src/base/ftbase.h (raccess_rule_by_darwin_vfs): Do not declare
-       it on native Mac OS X.
-       * src/base/ftrfork.c (raccess_get_rule_type_from_rule_index):
-       Hide raccess_get_rule_type_from_rule_index() on native Mac OS X
-       too.
+       This is a follow-up to Savannah bug #43659.
 
-2011-10-30  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/type42/t42objs.c (T42_Face_Init): Exclusively use the
+       `truetype' font driver for loading the font contained in the `sfnts'
+       array.
 
-       [raccess] Hide raccess_rule_by_darwin_vfs() on native Mac OS X.
+2014-11-22  Werner Lemberg  <wl@gnu.org>
 
-       * src/base/ftrfork.c (raccess_rule_by_darwin_vfs): Do not
-       compile on native Mac OS X because it is not used.
+       [type42] Fix Savannah bug #43659.
 
-2011-10-25  Werner Lemberg  <wl@gnu.org>
+       * src/type42/t42objs.c (T42_Open_Face): Initialize `face->ttf_size'.
 
-       [truetype] Fix MD instruction for twilight zone.
+       * src/type42/t42parse.c (t42_parse_sfnts): Always set
+       `face->ttf_size' directly.  This ensures a correct stream size in
+       the call to `FT_Open_Face', which follows after parsing, even for
+       buggy input data.
+       Fix error messages.
 
-       * src/truetype/ttinterp.c (Ins_MD): Without this fix, the MD
-       instruction applied to original coordinates of twilight points
-       always returns zero.
+2014-11-22  Werner Lemberg  <wl@gnu.org>
 
-2011-10-18  Werner Lemberg  <wl@gnu.org>
+       [cff] Fix Savannah bug #43658.
 
-       * Version 2.4.7 released.
-       =========================
+       * src/cff/cf2ft.c (cf2_builder_lineTo, cf2_builder_cubeTo): Handle
+       return values of point allocation routines.
 
+2014-11-22  Werner Lemberg  <wl@gnu.org>
 
-       Tag sources with `VER-2-4-7'.
+       [sfnt] Fix Savannah bug #43656.
 
-       * docs/CHANGES: Updated.
+       * src/sfnt/ttcmap.c (tt_cmap4_validate): Fix order of validity
+       tests.
 
-       * docs/VERSION.DLL: Update documentation and bump version number to
-       2.4.7.
+2014-11-21  Werner Lemberg  <wl@gnu.org>
 
-       * 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/vc2010/freetype.vcxproj, builds/win32/vc2010/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.6/2.4.7/, s/246/247/.
+       [type1, type42] Fix Savannah bug #43655.
 
-       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 7.
+       * src/type1/t1load.c (parse_charstrings), src/type42/t42parse.c
+       (t42_parse_charstrings): Fix boundary testing.
 
-       * builds/unix/configure.raw (version_info): Set to 13:2:7.
+2014-11-21  Werner Lemberg  <wl@gnu.org>
 
-2011-10-15  Kal Conley  <kcconley@gmail.com>
+       * src/pcf/pcfread.c (pcf_get_metrics): Sanitize invalid metrics.
 
-       Fix handling of transformations if no renderer is present.
+2014-11-21  Werner Lemberg  <wl@gnu.org>
 
-       * src/base/ftobjs.c (FT_Load_Glyph): Thinko.
+       [ftlcdfil] Obey flow direction.
 
-2011-10-15  Kal Conley  <kcconley@gmail.com>
+       * src/base/ftlcdfil.c (_ft_lcd_filter_fir, _ft_lcd_filter_legacy):
+       Handle `up' flow.
 
-       Fix conditions for autohinting.
+2014-11-21  Werner Lemberg  <wl@gnu.org>
 
-       * src/base/ftobjs.c (FT_Load_Glyph): Handle
-       FT_LOAD_IGNORE_TRANSFORM.
+       * src/base/ftbitmap.c (FT_Bitmap_Convert): Improve.
 
-2011-10-07  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       This commit completes argument checks and adds support for different
+       flow directions.
 
-       [gxvalid] Fix a bug to detect too large offset in morx table.
+2014-11-21  Werner Lemberg  <wl@gnu.org>
 
-       * src/gxvalid/gxvmorx2.c
-       (gxv_morx_subtable_type2_ligActionIndex_validate): Fix a bug
-       that too large positive offset cannot be detected.
+       * src/base/ftbitmap.c (FT_Bitmap_Copy): Improve.
 
-2011-10-01  Braden Thomas  <bthomas@apple.com>
+       This commit adds argument checks and support for different flow
+       directions.
 
-       Handle some border cases.
+2014-11-20  Werner Lemberg  <wl@gnu.org>
 
-       * include/freetype/config/ftstdlib.h (FT_USHORT_MAX): New macro.
+       * src/base/ftbitmap.c (FT_Bitmap_New): Check argument.
 
-       * src/base/ftbitmap.c (FT_Bitmap_Convert): Protect against invalid
-       value of `target->rows'.
+2014-11-19  Werner Lemberg  <wl@gnu.org>
 
-       * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Add check for
-       flex start.
+       Change some fields in `FT_Bitmap' to unsigned type.
 
-       * src/raster/ftrend1.c (ft_raster1_render): Check `width' and
-       `height'.
+       This doesn't break ABI.
 
-       * src/truetype/ttgxvar.c (TT_Vary_Get_Glyph_Deltas): Protect against
-       invalid values in `localpoints' array.
+       * include/ftimage.h (FT_Bitmap): Make `rows', `width', `num_grays',
+       `pixel_mode', and `palette_mode' unsigned types.
 
-2011-10-01  Werner Lemberg  <wl@gnu.org>
+       * src/base/ftbitmap.c: Updated.
+       (FT_Bitmap_Copy): Fix casts.
 
-       [psnames] Handle zapfdingbats.
-       Problem reported by Nicolas Rougier <Nicolas.Rougier@inria.fr>.
+       * src/cache/ftcsbits.c, src/raster/ftraster.c, src/sfnt/pngshim.c:
+       Updated.
 
-       * src/tools/glnames.py (adobe_glyph_list): Add data from AGL's
-       `zapfdingbats.txt' file.
+2014-11-19  Werner Lemberg  <wl@gnu.org>
 
-       * src/psnames/pstables.h: Regenerated.
+       Make `FT_Bitmap_Convert' correctly handle negative `pitch' values.
 
-2011-09-27  Simon Bünzli  <zeniko@gmail.com>
+       * src/base/ftbitmap.c (FT_Bitmap_Convert): Always use positive value
+       for the pitch while copying data.
+       Correctly set pitch sign in target bitmap.
 
-       Fix Savannah bug #34189.
+2014-11-19  Werner Lemberg  <wl@gnu.org>
 
-       * src/type1/t1load.c (T1_Open_Face): Initialize
-       `face->len_buildchar'.
+       Minor code improvement in `FT_Bitmap_Embolden'.
 
-2011-09-26  Werner Lemberg  <wl@gnu.org>
+       * src/base/ftbitmap.c (FT_Bitmap_Embolden) <FT_PIXEL_MODE_GRAY[24]>:
+       Fix thinko.
 
-       [cff] Dump SIDs while tracing.
+2014-11-19  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/cff/cffobjs.c (cff_face_init): Do it.
+       * src/base/fttrigon.c: Use dedicated `FT_Angle' for arctan table.
 
-       * src/cff/cffparse.c (cff_parser_run) [FT_DEBUG_LEVEL_TRACE]
-       <cff_kind_string>: Identify as SID.
+2014-11-19  Behdad Esfahbod  <behdad@behdad.org>
 
-2011-09-17  Werner Lemberg  <wl@gnu.org>
+       Avoid compiler warnings on x86-64 for `FT_MulFix'.
 
-       Remove unused FT_ALIGNMENT macro.
+       `FT_MulFix' takes `FT_Long' parameters as defined in `freetype.h',
+       but several inline implementations of it in `ftcalc.h' take
+       `FT_Int32' arguments.  This is causing compiler warnings on x86-64:
+       If parameters of type `FT_Fixed' (= `FT_Long') are passed to the
+       inline implementation of this function, integer values are truncated
+       from 64bit to 32bit.
 
-       * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
-       include/freetype/config/ftconfig.h: Do it.
+       * include/internal/ftcalc.h (FT_MulFix) [FT_MULFIX_ASSEMBLER]: Add
+       casts.
 
-2011-09-17  Alexei Podtelezhnikov  <apodtele@gmail.com>
+2014-11-15  Werner Lemberg  <wl@gnu.org>
 
-       [smooth] Slightly optimize conic and cubic flatterners.
+       [sfnt] Fix Savannah bug #43597.
 
-       * src/smooth/ftgrays.c (gray_render_conic, gray_render_cubic): Move
-       out some code from the main loop to speed it up.
+       * src/sfnt/pngshim.c (Load_SBit_Png): Protect against too large
+       bitmaps.
 
-2011-09-11  Tomas Hoger  <thoger@redhat.com>
+2014-11-12  Werner Lemberg  <wl@gnu.org>
 
-       Slightly improve LZW_CLEAR handling.
+       [sfnt] Fix Savannah bug #43591.
 
-       * src/lzw/ftzopen.c (ft_lzwstate_io) <FT_LZW_PHASE_CODE>:
-       Ensure that subsequent (modulo garbage byte(s)) LZW_CLEAR codes are
-       handled as clear codes.  This also re-sets old_code and old_char to
-       predictable values, which is a little better than using `random'
-       ones if the code following LZW_CLEAR is invalid.
+       * src/sfnt/ttsbit.c (tt_sbit_decoder_init): Protect against addition
+       and multiplication overflow.
 
-2011-09-11  Tomas Hoger  <thoger@redhat.com>
+2014-11-12  Werner Lemberg  <wl@gnu.org>
 
-       Add explicit LZW decompression stack size limit.
+       [sfnt] Fix Savannah bug #43590.
 
-       Stack larger than 1<<LZW_MAX_BITS is never needed if prefix table is
-       constructed correctly.  It's even less than that, see e.g.
-       libarchive code comment for a better size upper bound:
+       * src/sfnt/ttload.c (check_table_dir, tt_face_load_font_dir):
+       Protect against addition overflow.
 
-         http://code.google.com/p/libarchive/source/browse/trunk/libarchive/archive_read_support_filter_compress.c?r=3635#121
+2014-11-12  Werner Lemberg  <wl@gnu.org>
 
-       This patch adds explicit stack size limit, enforced when stack is
-       realloced.
+       [sfnt] Fix Savannah bug #43589.
 
-       An alternative is to ensure that code < state->prefix[code - 256]
-       when traversing prefix table.  Such check is less efficient and
-       should not be required if prefix table is constructed correctly in
-       the first place.
+       * src/sfnt/sfobjs.c (woff_open_font): Protect against addition
+       overflow.
 
-       * src/lzw/ftzopen.c (ft_lzwstate_stack_grow): Implement it.
+2014-11-12  Werner Lemberg  <wl@gnu.org>
 
-2011-09-11  Tomas Hoger  <thoger@redhat.com>
+       [sfnt] Fix Savannah bug #43588.
 
-       Protect against loops in the prefix table.
+       * src/sfnt/ttcmap.c (tt_cmap8_validate, tt_cmap10_validate,
+       tt_cmap12_validate, tt_cmap13_validate, tt_cmap14_validate): Protect
+       against overflow in additions and multiplications.
 
-       LZW decompressor did not sufficiently check codes read from the
-       input LZW stream.  A specially-crafted or corrupted input could
-       create a loop in the prefix table, which leads to memory usage
-       spikes, as there's no decompression stack size limit.
+2014-11-10  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/lzw/ftzopen.c (ft_lzwstate_io) <FT_LZW_PHASE_START>: First
-       code in valid LZW stream must be 0..255.
-       <FT_LZW_PHASE_CODE>: In the special KwKwK case, code == free_ent,
-       code > free_ent is invalid.
+       [base] CORDIC improvements.
 
-2011-09-09  Werner Lemberg  <wl@gnu.org>
+       The scaling between the hypotenuse and its CORDIC approximation is
+       based on regression analysis. The smaller padding for `theta' is
+       justifed by its maximum error of less than 6.
 
-       Better tracing of metrics.
+       * src/base/fttrigon.c (ft_trig_downscale): Borrow code from
+       ./ftcalc.c (ft_multo64), change linear intercept.
+       (ft_trig_pseudo_polarize): Decrease `theta' padding.
 
-       * src/base/ftobjs.c (FT_Request_Size, FT_Select_Size): Decorate with
-       FT_TRACE.
+2014-11-09  Werner Lemberg  <wl@gnu.org>
 
-2011-09-07  Werner Lemberg  <wl@gnu.org>
+       * src/base/ftstroke.c (ft_stroker_inside): Fix border intersections.
 
-       Fix Savannah bug #33816.
+       One more place to check whether `radius' is zero.
 
-       * src/cff/cfftypes.h (CFF_FontRecDictRec): New member
-       `has_font_matrix'.
-       * src/cff/cffparse.c (cff_parse_font_matrix): Set it.
-       Update tracing output.
-       * src/cff/cffobjs.c (cff_face_init): Use it so that the heuristics
-       can be removed.
+       Problem reported by Marco Wertz <marco.wertz@gmx.de>.
 
-2011-08-30  Werner Lemberg  <wl@gnu.org>
+2014-11-07  Werner Lemberg  <wl@gnu.org>
 
-       Better tracing of metrics.
+       [bdf] Fix Savannah bug #43535.
 
-       * src/base/ftobjs.c (FT_Select_Metrics, FT_Request_Metrics):
-       Decorate with FT_TRACE.
+       * src/bdf/bdflib.c (_bdf_strncmp): New macro that checks one
+       character more than `strncmp'.
+       s/ft_strncmp/_bdf_strncmp/ everywhere.
 
-2011-08-25  Werner Lemberg  <wl@gnu.org>
+2014-11-06  Werner Lemberg  <wl@gnu.org>
 
-       [cff] Better tracing of the parsing process.
+       [pcf] Fix Savannah bug #43548.
 
-       * src/cff/cffload.c (cff_subfont_load, cff_font_load): Decorate with
-       FT_TRACE.
+       * src/pcf/pcfread.c (pcf_get_encodings): Add sanity checks for row
+       and column values.
 
-       * src/cff/cffparse.c (cff_parse_font_matrix, cff_parse_font_bbox,
-       cff_parse_private_dict, cff_parse_cid_ros): Updated.
-       (CFF_FIELD_NUM, CFF_FIELD_FIXED, CFF_FIELD_FIXED_1000,
-       CFF_FIELD_STRING, CFF_FIELD_BOOL, CFF_FIELD_CALLBACK, CFF_FIELD,
-       CFF_FIELD_DELTA): Add argument for ID.
-       (cff_parser_run): Decorate with FT_TRACE.
+2014-11-06  Werner Lemberg  <wl@gnu.org>
 
-       * src/cff/cffparse.h (CFF_Field_Handler) [FT_DEBUG_LEVEL_TRACE]: Add
-       `id' member.
+       [pcf] Fix Savannah bug #43547.
 
-       * src/cff/cfftoken.h: Add IDs to all fields.
+       * src/pcf/pcfread.c (pcf_read_TOC): Check `size' and `offset'
+       values.
 
-2011-08-16  Werner Lemberg  <wl@gnu.org>
+2014-11-06  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #34022.
+       * src/pcf/pcfread.c (pcf_read_TOC): Avoid memory leak.
 
-       * README, docs/INSTALL: Remove references to UPGRADE.UNIX.
+2014-11-03  Infinality  <infinality@infinality.net>
 
-2011-08-15  Werner Lemberg  <wl@gnu.org>
+       * src/truetype/ttsubpix.c (COMPATIBILITY_MODE_Rules): Updated.
 
-       Fix Savannah bug #34018.
+       The previous commit deteriorates rendering of DejaVu and similar
+       fonts; this gets compensated with this rule.
 
-       * docs/UPGRADE.UNIX: Removed.  Obsolete.
+2014-11-03  Werner Lemberg  <wl@gnu.org>
 
-2011-08-15  David Bevan  <david.bevan@pb.com>
+       * src/truetype/ttinterp.c (Ins_DELTAP): Fix subpixel hinting.
 
-       Fix Savannah bug #33992.
+       Before this patch, it was impossible to ever call DELTAP[123] in
+       subpixel hinting mode as described in the ClearType whitepaper; it
+       only worked if in `compatibility mode'.  However, compatibility mode
+       essentially disables SHPIX, completely ruining hinting of
+       ttfautohint output, for example.
 
-       * src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix border case.
+       We now follow the whitepaper more closely so that DELTAP[123]
+       instructions for touched points in the non-subpixel direction are
+       executed.
 
-2011-08-12  Werner Lemberg  <wl@gnu.org
+2014-10-31  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       [truetype] Fix degenerate case in S{P,F,DP}VTL opcodes.
+       [smooth] Improve code readability.
 
-       * src/truetype/ttinterp.c (Ins_SxVTL): Handle p1 == p2 specially.
-       (Ins_SDPVTL): Handle v1 == v2 specially.
+       * src/smooth/ftsmooth.c (ft_smooth_render_generic): Rearrange code.
 
-2011-08-09  Werner Lemberg  <wl@gnu.org>
+2014-10-31  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       Fix Savannah bug #33975.
+       [smooth] Reduce outline translations during rendering.
 
-       * src/cff/cffparse.c (cff_parse_font_matrix): Fix typo.
+       * src/smooth/ftsmooth.c (ft_smooth_render_generic): Translate origin
+       virtually by modifying cbox, actually translate outline if cumulative
+       shift is not zero.
 
-2011-07-29  Werner Lemberg  <wl@gnu.org>
+2014-10-30  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * Version 2.4.6 released.
-       =========================
+       [smooth] Fix Savannah bug #35604 (cont'd).
 
+       * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove checks and
+       casts that became unnecessary after the variable type upgrades.
 
-       Tag sources with `VER-2-4-6'.
+2014-10-29  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * docs/CHANGES: Updated.
+       [smooth] Improve code readability.
 
-       * docs/VERSION.DLL: Update documentation and bump version number to
-       2.4.6.
+       * src/smooth/ftsmooth.c (ft_smooth_render_generic): Rearrange code.
 
-       * 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/vc2010/freetype.vcxproj, builds/win32/vc2010/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.5/2.4.6/, s/245/246/.
+2014-10-29  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 6.
+       Unify hypotenuse approximations.
 
-       * builds/unix/configure.raw (version_info): Set to 13:1:7.
+       * include/internal/ftcalc.h (FT_HYPOT): Move macro from here...
+       * include/internal/ftobjs.h: ... to here, next to required `FT_ABS'.
+       * src/smooth/ftgrays.c (gray_render_cubic): Use it here.
 
-2011-07-29  Werner Lemberg  <wl@gnu.org>
+2014-10-25  Werner Lemberg  <wl@gnu.org>
 
-       [cff] Add some more tracing infos.
+       [cff] Test valid darkening parameter macros in `ftoption.h'.
 
-       * src/cff/cffparse.c (cff_parse_font_matrix, cff_parse_font_bbox,
-       cff_parse_cid_ros): Add tracing.
+       We no longer need an otherwise unused typedef that can cause a gcc
+       warning.
+       Problem reported by Alexei.
 
-2011-07-22  Dirk Müller  <dmueller@suse.de>
+       * src/cff/cffobjs.c (cff_driver_init): Use
+       `CFF_CONFIG_OPTION_DARKENING_PARAMETER_XXX' macros directly.
+       (SET_DARKENING_PARAMETERS): Removed.
+       Compile time tests are now ...
 
-       [psaux, type1] Fix null pointer dereferences.
+       * devel/ftoption.h, include/config/ftoption.h: ... here.
 
-       Found with font fuzzying.
+2014-10-25  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Check
-       `decoder->buildchar'.
+       Improve flat corner definition.
 
-       * src/type1/t1load.c (t1_load_keyword): Check `blend->num_designs'.
+       * include/internal/ftcalc.h (FT_HYPOT): Macro to approximate Euclidean
+       distance with the alpha max plus beta min algorithm.
+       * src/base/ftcalc.c (ft_corner_is_flat): Use it instead of Taxicab
+       metric.
 
-2011-07-20  Chris Morgan  <cmorgan@cybexintl.com>
+2014-10-23  David Weiß  <David.Weiss@ptvgroup.com>
 
-       Add FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT.
+       [build] Improve property file for vc2010.
 
-       Useful for embedded systems which don't need file stream support.
+       User-defined properties should be empty by default to prevent linker
+       failures.
 
-       * src/base/ftsystem.c, src/base/ftobjs.c (FT_Stream_New): Implement
-       it.
+       * builds/windows/vc2010/freetype.user.props,
+       builds/windows/vc2010/freetype.vcxproj:
+       s/OptionsDirectory/UserOptionDirectory/.
+       Comment out all user options.
 
-2011-07-20  Elton Chung  <elton328@gmail.com>
+2014-10-23  Werner Lemberg  <wl@gnu.org>
 
-       * src/base/ftpatent.c (FT_Face_SetUnpatentedHinting): Fix typo.
+       [cff] Work around bug in preprocessor of MSVC 2010.
 
-2011-07-16  Steven Chu  <steven.f.chu@gmail.com>
+       We have been hit by
 
-       [truetype] Fix metrics on size request for scalable fonts.
+         https://connect.microsoft.com/VisualStudio/feedback/details/718976/msvc-pr
 
-       * src/truetype/ttdriver.c (tt_size_request): Fix copying metrics
-       from TT_Size to FT_Size if scalable font.
+       * devel/ftoption.h, include/config/ftoption.h: Replace
+       `CFF_CONFIG_OPTION_DARKENING_PARAMETERS' with eight macros
+       `CFF_CONFIG_OPTION_DARKENING_PARAMETER_{X,Y}{1,2,3,4}'.
 
-       See
+       * src/cff/cffobjs.c (SET_DARKENING_PARAMETERS): Removed.  We no
+       longer need double expansion.
+       (SET_DARKENING_PARAMETERS_0): Renamed to ...
+       (SET_DARKENING_PARAMETERS): ... this.
+       Update call.
 
-         http://lists.gnu.org/archive/html/freetype-devel/2011-07/msg00049.html
+2014-10-20  Werner Lemberg  <wl@gnu.org>
 
-       for some comparison images.
+       [sbit] Minor fixes.
 
-2011-07-14  Matthias Drochner  <M.Drochner@fz-juelich.de>.
+       * src/sfnt/ttsbit.c (tt_face_load_sbit) [TT_SBIT_TABLE_TYPE_SBIX]:
+       Accept overlay format also, but emit warning message in that case.
+       (tt_sbit_decoder_load_metrics): Add missing newline to error
+       message.
+       (tt_sbit_load_sbix_image): Add `rgbl' graphic type (as used on iOS
+       7.1) to the list of unsupported formats.
 
-       [psaux] Fix potential sign extension problems.
+2014-10-19  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       When shifting right a signed value, it is not defined by the
-       C standard whether one gets a sign extension or not.  Use a macro to
-       do an explicit cast from a signed short (assuming that this is
-       16bit) to an int.
+       [truetype] Clean up bytecode rounding.
 
-       * src/psaux/t1decode.c (Fix2Int): New macro.
-       Use it where appropriate.
+       Zero distance does not have to be treated specially if you follow
+       specifications and check the sign as the very last step of rounding.
 
-2011-07-14  Werner Lemberg  <wl@gnu.org>
+       * src/truetype/ttinterp.c (Round_None, Round_To_Grid,
+       Round_Down_To_Grid, Round_Up_To_Grid, Round_To_Double_Grid): Use
+       macros when available, do not check for non-zero distance.
+       (Round_To_Half_Grid, Round_Super, Round_Super_45): Ditto, return phase
+       if sign changed.
 
-       * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
-       <op_callothersubr>: Better handling of subroutine index 0.
-       From Matthias Drochner <M.Drochner@fz-juelich.de>.
+2014-10-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-2011-07-10  Алексей Подтележников  <apodtele@gmail.com>
+       [truetype] Unwrap engine compensation settings.
 
-       [psaux] Optimize previous commit.
+       * src/truetype/ttobjs.c (tt_size_init_bytecode): Updated.
 
-       * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
-       <op_callothersubr>: Move error check down to avoid testing twice for
-       good cases.
+2014-10-18  David Weiß  <David.Weiss@ptvgroup.com>
 
-2011-07-08  Werner Lemberg  <wl@gnu.org>
+       [build] Add property file to vc2010 project.
 
-       [psaux] Add better argument check for `callothersubr'.
+       This simplifies custom build configurations, especially for
+       automated build environments.
 
-       * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
-       <op_callothersubr>: Reject negative arguments.
+       * builds/windows/vc2010/freetype.user.props: New configuration file.
 
-2011-07-07  Werner Lemberg  <wl@gnu.org>
+       * builds/windows/vc2010/freetype.vcxproj: Include
+       `freetype.user.props' and use its data fields.
 
-       [sfnt] Try harder to find non-zero values for ascender and descender.
+       * builds/windows/vc2010/index.html: Updated.
 
-       * src/sfnt/sfobjs.c (sfnt_load_face): Consult `OS/2' table in case
-       the `hhea' table's values are zero.
+2014-10-18  Werner Lemberg  <wl@gnu.org>
 
-2011-07-03  Werner Lemberg  <wl@gnu.org>
+       [autofit] Add blue-zone support for Telugu.
 
-       Fix previous commit.
+       This essentially moves the Telugu script from the `Indic' hinter to
+       the `Latin' hinter.
 
-       We want to unset FT_FACE_FLAG_SCALABLE only if there are bitmap
-       strikes in the font.
+       Note that this is a first shot and quite certainly needs
+       refinements.
 
-       * src/truetype/ttobjs.c (tt_face_init): Implement it.
+       * src/autofit/afblue.dat: Add blue zone data for Telugu.
 
-       * docs/CHANGES: Updated.
+       * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
 
-2011-07-02  Just Fill Bugs  <mozbugbox@yahoo.com.au>
+       * src/autofit/afscript.h: Add Telugu standard characters and move
+       data out of AF_CONFIG_OPTION_INDIC block.
 
-       Fix Savannah bug #33246.
+       * src/autofit/afranges.c: Move Telugu data out of
+       AF_CONFIG_OPTION_INDIC block.
 
-       * src/truetype/ttobjs.c (tt_check_single_notdef): New function.
-       (tt_face_init): Use it to test FT_FACE_FLAG_SCALABLE.
+       * src/autofit/afstyles.h: Update Telugu data; in particular, use
+       AF_WRITING_SYSTEM_LATIN.
 
-2011-07-02  Werner Lemberg  <wl@gnu.org>
+2014-10-18  David Wimsey  <david@wimsey.us>
 
-       * docs/CHANGES: Updated.
+       [cmake] Add iOS build support.
+       From Savannah patch #8497.
 
-2011-07-02  David Bevan  <david.bevan@pb.com>
+       * builds/cmake/iOS.cmake: New file.  Universal binaries are built
+       with both 32 and 64 bit arm architectures.
 
-       [ftstroke] Major revision.
+       * CMakeLists.txt (IOS_PLATFORM): New variable for running the iOS
+       toolchain.  Possible values are `OS' to build on iOS, or
+       `SIMULATOR' to build on APPLE.
 
-       The main problems
-       -----------------
+2014-10-16  Behdad Esfahbod  <behdad@behdad.org>
+           Werner Lemberg  <wl@gnu.org>
 
-         o If FT_STROKER_LINEJOIN_BEVEL was specified, unlimited miter
-           joins (not bevel joins) were generated.  Indeed, the meanings of
-           `miter' and `bevel' were incorrectly reversed (consistently) in
-           both the code and comments.
+       [cff] Add `CFF_CONFIG_OPTION_DARKENING_PARAMETERS' config macro.
 
-         o The way bevel joins were constructed (whether specified
-           explicitly, or created as a result of exceeding the miter limit)
-           did not match what is required for stroked text in PostScript or
-           PDF.
+       * devel/ftoption.h, include/config/ftoption.h
+       (CFF_CONFIG_OPTION_DARKENING_PARAMETERS): New macro.
 
-       The main fixes
-       --------------
+       * src/cff/cffobjs.c (SET_DARKENING_PARAMETERS,
+       SET_DARKENING_PARAMETERS_0): New macros.
+       (cff_driver_init): Use new macros.
 
-         o The behaviour of FT_STROKER_LINEJOIN_BEVEL has been corrected.
+2014-10-14  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-         o A new line join style, FT_STROKER_LINEJOIN_MITER_FIXED, has been
-           introduced to support PostScript and PDF miter joins.
+       [truetype] Limit delta shift range.
 
-         o FT_STROKER_LINEJOIN_MITER_VARIABLE has been introduced as an
-           alias for FT_STROKER_LINEJOIN_MITER.
+       The valid range for delta shift is zero through six.  Negative values
+       are invalid according to
 
-       Additionally, a variety of stroking errors have been fixed.  These
-       would cause various artifacts (including points `at infinity'),
-       especially when stroking poor quality fonts.
+         https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#delta%20shift
 
-       See
+       * src/truetype/ttobjs.h (delta_shift, delta_base): Make unsigned.
+       * src/truetype/ttinterp.h (DO_SDS): Throw an error if `delta_shift'
+       is out of range.
+       (Ins_DELTAP, Ins_DELTAC): Optimize for valid `delta_shift'.
 
-         http://lists.gnu.org/archive/html/freetype-devel/2011-07/msg00001.html
+2014-10-16  Werner Lemberg  <wl@gnu.org>
 
-       for example documents.  The FreeType stroker now produces results
-       very similar to that produced by GhostScript and Distiller for these
-       fonts.
+       A better fix for Savannah bug #43392.
+       Suggested by Doug Felt <dougfelt@gmail.com>.
 
-       Other problems
-       --------------
+       * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics): Set
+       `vertAdvance' to zero...
 
-       The following problems have been resolved:
+       * src/truetype/ttgload.c (TT_Load_Glyph): ... and set here a default
+       value for `vertAdvance' based on `linearVertAdvance' in case
+       `vertAdvance' is zero.  Note that the previous computed ad-hoc value
+       for `linearVertAdvance' was apparently not tested in a real-life
+       situation.
 
-         o Inside corners could be generated incorrectly.  Intersecting the
-           inside corner could cause a missing triangular area and other
-           effects.
+2014-10-14  David Weiß  <David.Weiss@ptvgroup.com>
 
-           The intersection point can only be used if the join is between
-           two lines and both lines are long enough.  The `optimization'
-           condition in `ft_stroker_inside' has been corrected; this
-           requires the line length to be passed into various functions and
-           stored in `FT_StrokerRec'.
+       [build] Better optimization settings for vc2010 solution file.
 
-         o Incorrect cubic curves could be generated.  The angle
-           calculations in `FT_Stroker_CubicTo' have been corrected to
-           handle the case of the curve crossing the +/-PI direction.
+       * builds/windows/vc2010/freetype.sln,
+       builds/windows/vc2010/freetype.vcxproj: Updated.
 
-         o If the border radius was greater than the radius of curvature of
-           a curve, then the negative sector would end up outside (not
-           inside) the border.  This situation is now recognized and the
-           negative sector is circumnavigated in the opposite direction.
-           (If round line joins are being used, this code is disabled
-           because the line join will always cover the negative sector.)
+2014-10-14  Werner Lemberg  <wl@gnu.org>
 
-         o When a curve is split, the arcs may not join smoothly (especially
-           if the curve turns sharply back on itself).  Changes in
-           direction between adjacent arcs were not handled.  A round
-           corner is now added if the deviation from one arc to the next is
-           greater than a suitable threshold.
+       [autofit] Adjust Devenagari character range.
 
-         o The current direction wasn't retained if a the outline contained
-           a zero length lineto or a curve that was determined to be
-           `basically a point'.  This could cause a spurious join to be
-           added.
+       * src/autofit/afranges.c (af_deva_uniranges): Omit characters that
+       are common to all other Indic scripts.
 
-         o Cubics with close control points could be mishandled.  All eight
-           cases are now distinguished correctly.
+2014-10-12  Werner Lemberg  <wl@gnu.org>
 
-       Other improvements
-       ------------------
+       [sfnt] Fix Savannah bug #43392.
 
-       o Borders for cubic curves could be too `flat'.
-         FT_SMALL_CUBIC_THRESHOLD has been reduced a little to prevent
-         this.
+       * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics): Don't let
+       vertical metrics uninitialized.
 
-       o The handling and use of movable points has been simplified a
-         little.
+2014-10-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       o Various values are now computed only if the results are actually
-         needed.
+       [base] Small bbox correction.
 
-       o The directions of the outer and inner borders have been swapped,
-         as recommended by Graham Asher.
+       * src/base/ftbbox.c (FT_Outline_Get_BBox): Start from nonsense bbox
+       instead of initial point that could be `off' in conic outlines.
 
-       * src/base/ftstroke.c: Revised.
-       * include/freetype/ftstroke.h: Updated.
+2014-10-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-2011-06-30  İsmail Dönmez <ismail@namtrac.org>
+       [base] Fix Savannah bug #43356.
 
-       * builds/toplevel.mk: We use git, not CVS, thus skip `.gitignore'.
+       * src/base/ftbbox.c (BBox_Move_To, BBox_Conic_To): Update bbox in case
+       of implicit `to'.
+       (BBox_Line_To): New emitter that does not update bbox.
 
-2011-06-29  Werner Lemberg  <wl@gnu.org>
+2014-10-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       Fix Savannah bug #33663.
+       [base] Introduce and use new macro `FT_UPDATE_BBOX'
 
-       * src/bdf/bdflib.c (_bdf_parse_glyphs): Handle negative values for
-       ENCODING correctly.
+       * src/base/ftbbox.c (FT_UPDATE_BBOX): New macro.
+       (FT_Outline_Get_BBox): Use it here.
 
-       * docs/CHANGES: Document it.
+2014-10-02  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-2011-06-24  Werner Lemberg  <wl@gnu.org>
+       [base] Significant optimization of `ft_div64by32'
 
-       * Version 2.4.5 released.
-       =========================
+       We shift as many bits as we can into the high register, perform
+       32-bit division with modulo there, then work through the remaining
+       bits with long division. This optimization is especially noticeable
+       for smaller dividends that barely use the high register.
 
+       * src/base/ftcalc.c (ft_div64by32): Updated.
 
-       Tag sources with `VER-2-4-5'.
+2014-10-02  Dave Arnold  <darnold@adobe.com>
 
-       * docs/CHANGES: Updated.
+       [cff] Fix Savannah bug #43271.
 
-       * docs/VERSION.DLL: Update documentation and bump version number to
-       2.4.5
+       * src/cff/cf2font.c (cf2_computeDarkening): Change overflow
+       detection to use logarithms and clamp `scaledStem'.
 
-       * 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/vc2010/freetype.vcxproj, builds/win32/vc2010/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.4/2.4.5/, s/244/245/.
+2014-10-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
+       * src/base/ftcalc.c: Remove miscellaneous type casts.
 
-       * builds/unix/configure.raw (version_info): Set to 13:0:7.
+2014-10-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-2011-06-20  Werner Lemberg  <wl@gnu.org>
+       [base] Use more common `FT_MSB' implementation with masks.
 
-       * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Fix change
-       from 2011-05-04.
+       * src/base/ftcalc.c (FT_MSB): Updated.
 
-2011-06-19  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-09-30  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       [gxvalid] make the `prop' validation tracing verbose.
+       [base] Clean up.
 
-       * src/gxvalid/gxvprop.c: Add tracing messages for errors.
+       * src/base/ftcalc.c (FT_MOVE_SIGN): New macro for frequently used
+       code.
 
-2011-06-19  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-09-25  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       [autogen.sh] Reflect environment variable LIBTOOLIZE.
+       [base] Avoid unnecessary long division.
 
-2011-06-18  Werner Lemberg <wl@gnu.org>
+       This applies to `FT_MulDiv' but not to `FT_DivFix', where overflows or
+       lack thereof are predicted accurately.
 
-       Update license documentation.
+       * src/base/ftcalc.c (ft_div64by32): Improve readability.
+       (FT_MulDiv, FT_MulDiv_No_Round) [!FT_LONG64]: Use straight division
+       when multiplication stayed within 32 bits.
 
-       * docs/GPL.TXT: Renamed to...
-       * docs/GPLv2.TXT: This.
+2014-09-24  Werner Lemberg  <wl@gnu.org>
 
-       * docs/LICENSE.TXT: Updated.
+       [autofit] Minor clean-ups.
 
-2011-06-14  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/afhints.c (AF_FLAGS): Remove obsolete values.
 
-       Fix g++4.6 compiler warnings in module drivers.
+       * src/autofit/afhints.c (af_glyph_hints_dump_points,
+       af_glyph_hints_align_strong_points): Updated.
 
-       The background is same with previous commit.
+       * src/autofit/aflatin.c (af_latin_hints_link_segments,
+       af_latin_hints_compute_segments), src/autofit/afcjk.c
+       (af_cjk_hints_link_segments), src/autofit/aflatin2.c
+       (af_latin2_hints_link_segments, af_latin2_hints_compute_segments):
+       There are no longer fake segments since more than 10 years...
 
-       * src/truetype/ttgxvar.c (ft_var_readpackedpoints):
-       Init `points'.  (TT_Vary_Get_Glyph_Deltas): Init
-       `delta_xy'.  (TT_Get_MM_Var): Init `mmvar'.
-       * src/type1/t1load.c (T1_Get_MM_Var): Ditto.
-       * src/cff/cffdrivr.c (cff_ps_get_font_info): Init
-       `font_info'.
-       * src/cff/cffload.c (cff_index_get_pointers): Init `t'.
-       (cff_font_load): Init `sub'.
-       * src/cff/cffobjs.c (cff_size_init): Init `internal'.
-       (cff_face_init): Init `cff'.
-       * src/pfr/pfrload.c (pfr_extra_item_load_stem_snaps):
-       Init `snaps'.
-       * src/pcf/pcfread.c (pcf_get_properties): Init `properties'.
-       (pcf_get_bitmaps): Init `offsets'.  (pcf_get_encodings):
-       Init `tmpEncoding'.
-       * src/sfnt/ttload.c (tt_face_load_gasp): Init `gaspranges'.
-       * src/sfnt/ttsbit.c (Load_SBit_Image): Init `components'.
-       * src/cache/ftcmru.c (FTC_MruList_New): Init `node'.
-       * src/gzip/ftgzip.c (FT_Stream_OpenGzip): Init `zip' and
-       `zip_buff'.
-       * src/lzw/ftlzw.c (FT_Stream_OpenLZW): Init `zip'.
-       * src/bzip2/ftbzip2.c (FT_Stream_OpenBzip2): Init `zip'.
-
-2011-06-14  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
-
-       [base] Fix g++4.6 compiler warnings in src/base/*.c.
-
-       Passing uninitialized pointer to FT_NEW() families is
-       not problematic theoretically (as far as the returned
-       pointer is checked before writing), but g++4.6 dislikes
-       it and warns by -Wuninitialized.  Initialize them by NULL.
-
-       * src/base/ftobjs.c (FT_Stream_New): Init `stream'.
-       (new_memory_stream): Ditto.
-       (FT_New_GlyphSlot): Init `slot'.
-       (FT_CMap_New): Init `cmap'.
-       (open_face_PS_from_sfnt_stream): Init `sfnt_ps'.
-       (Mac_Read_POST_Resource): Init `pfb_data'.
-       (Mac_Read_sfnt_Resource): Init `sfnt_data'.
-       * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets):
-       Init `offsets_internal' and `ref'.
-       (raccess_guess_darwin_hfsplus): Init `newpath'.
-       (raccess_guess_darwin_newvfs): Ditto.
-       * src/base/ftbitmap.c (ft_bitmap_assure_buffer):
-       Init `buffer'.
-       * src/base/ftstroke.c (FT_Stroker_New): Init `stroker'.
-
-2011-06-14  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
-
-       [gxvalid] Cleanup.
-
-       Some invalid, overrunning, unrecommended non-zero values
-       are cared in paranoid validation mode only.  There are
-       many lines looking like:
-
-         if ( valid->root->level >= FT_VALIDATE_PARANOID )
-           FT_INVALID_xxx;
-
-       To simplify them, GXV_SET_ERR_IF_PARANOID( err ) is
-       introduced for more paranoid validation in future.
-
-       * src/gxvalid/gxvcommn.h (IS_PARANOID_VALIDATION):
-       New macro to assure valid->root->level is more or
-       equal to FT_VALIDATE_PARANOID.  (GXV_SET_ERR_IF_PARANOID):
-       New macro to raise an error if in paranoid validation.
-       * src/gxvalid/gxvcommn.c: Use GXV_SET_ERR_IF_PARANOID().
-       * src/gxvalid/gxvfeat.c: Ditto.
-       * src/gxvalid/gxvjust.c: Ditto.
-       * src/gxvalid/gxvkern.c: Ditto.
-       * src/gxvalid/gxvmort.c: Ditto.
-       * src/gxvalid/gxvmort0.c: Ditto.
-       * src/gxvalid/gxvmort1.c: Ditto.
-       * src/gxvalid/gxvmort2.c: Ditto.
-       * src/gxvalid/gxvmorx1.c: Ditto.
-       * src/gxvalid/gxvmorx2.c: Ditto.
-
-2011-06-14  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
-
-       [gxvalid] Fix gcc4.6 compiler warnings in gxvtrak.c.
-
-       * src/gxvalid/gxvtrak.c (gxv_trak_trackTable_validate):
-       Check different entries pointing same traking value.
-       (gxv_trak_validate): Remove unused variable `table_size'.
-
-2011-06-14  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
-
-       [gxvalid] Fix gcc4.6 compiler warnings in gxvmorx*.c.
-
-       * src/gxvalid/gxvmorx.c (gxv_morx_subtables_validate):
-       Conditionalize unvalidated variable `subFeatureFlags'.
-       (gxv_morx_chain_validate): Conditionalize unvalidated
-       variable `defaultFlags'.
-
-       * src/gxvalid/gxmorx0.c
-       (gxv_morx_subtable_type0_entry_validate):
-       Conditionalize unvalidated variables; `markFirst',
-       `dontAdvance', `markLast', `verb'.
-
-       * src/gxvalid/gxmorx1.c
-       (gxv_morx_subtable_type1_entry_validate): Conditionalize
-       unvalidated variables; `setMark', `dontAdvance'.
-
-       * src/gxvalid/gxvmorx2.c
-       (gxv_morx_subtable_type2_ligActionOffset_validate):
-       Conditionalize unvalidated variables; `last', `store'.
-       Checking for overrunning offset is added.
-       (gxv_morx_subtable_type2_entry_validate):
-       Conditionalize unvalidated variables; `setComponent',
-       `dontAdvance', `performAction'.
-       (gxv_morx_subtable_type2_ligatureTable_validate):
-       Check if the GID for ligature does not exceed the
-       max GID in `maxp' table.
-
-       * src/gxvalid/gxvmort5.c
-       (gxv_morx_subtable_type5_InsertList_validate):
-       Conditionalize unvalidated loading of `insert_glyphID'
-       array.  (gxv_morx_subtable_type5_entry_validate):
-       Conditionalize unvalidated variables; `setMark',
-       `dontAdvance', `currentIsKashidaLike',
-       `markedIsKashidaLike', `currentInsertBefore',
-       `markedInsertBefore'.
-
-2011-06-14  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
-
-       [gxvalid] Fix gcc4.6 compiler warnings in gxvmort*.c.
-
-       * src/gxvalid/gxvmort.c (gxv_mort_subtables_validate):
-       Conditionalize unvalidated variable `subFeatureFlags'.
-       (gxv_mort_chain_validate): Conditionalize unvalidated
-       variable `defaultFlags'.
-
-       * src/gxvalid/gxmort0.c
-       (gxv_mort_subtable_type0_entry_validate): Check the
-       conflict of the marks for the glyphs.
-
-       * src/gxvalid/gxmort1.c
-       (gxv_mort_subtable_type1_offset_to_subst_validate):
-       Local variables `min_gid', `max_gid' are replaced by
-       variables in the validator.
-       (gxv_mort_subtable_type1_entry_validate): Conditionalize
-       unvalidated variables; `setMark', `dontAdvance'.
-       (gxv_mort_subtable_type1_substTable_validate):
-       Validate the GID by the min/max GIDs in the validator.
-
-       * src/gxvalid/gxvmort2.c
-       (gxv_mort_subtable_type2_ligActionOffset_validate):
-       Conditionalize unvalidated variables; `last', `store'.
-       Checking for overrunning offset is added.
-       (gxv_mort_subtable_type2_entry_validate):
-       Conditionalize unvalidated variables; `setComponent',
-       `dontAdvance'.
-       (gxv_mort_subtable_type2_ligatureTable_validate):
-       Check if the GID for ligature does not exceed the
-       max GID in `maxp' table.
-
-       * src/gxvalid/gxvmort5.c
-       (gxv_mort_subtable_type5_InsertList_validate):
-       Conditionalize unvalidated loading of `insert_glyphID'
-       array.  (gxv_mort_subtable_type5_entry_validate):
-       Conditionalize unvalidated variables; `setMark',
-       `dontAdvance', `currentIsKashidaLike',
-       `markedIsKashidaLike', `currentInsertBefore',
-       `markedInsertBefore'.
-
-2011-06-14  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
-
-       [gxvalid] Fix gcc4.6 compiler warnings in gxvkern.c.
-
-       * src/gxvalid/gxvkern.c
-       (gxv_kern_subtable_fmt0_pairs_validate): Conditionalize
-       unvalidated variable `kernValue'.
-       (gxv_kern_subtable_fmt1_entry_validate): Conditionalize
-       unvalidated variables; `push', `dontAdvance', `kernAction',
-       `kernValue'.
-       (gxv_kern_coverage_new_apple_validate): Conditionalize
-       trace-only variables; `kernVertical', `kernCrossStream',
-       `kernVariation'.
-       (gxv_kern_coverage_classic_apple_validate): Conditionalize
-       trace-only variables; `horizontal', `cross_stream'.
-       (gxv_kern_coverage_classic_microsoft_validate):
-       Conditionalize trace-only variables; `horizontal',
-       `minimum', `cross_stream', `override'.
-       (gxv_kern_subtable_validate): Conditionalize trace-only
-       variables; `version', `tupleIndex'.
-
-2011-06-14  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
-
-       [gxvalid] Fix gcc4.6 compiler warnings in gxvjust.c.
-
-       * src/gxvalid/gxvjust.c (gxv_just_check_max_gid):
-       New function to unify the checks of too large GID.
-       (gxv_just_wdp_entry_validate): Conditionalize unvalidated
-       variables; `beforeGrowLimit', `beforeShrinkGrowLimit',
-       `afterGrowLimit', `afterShrinkGrowLimit', `growFlags',
-       `shrinkFlags'.  Additional check for non-zero values in
-       unused storage `justClass' is added.
-       (gxv_just_actSubrecord_type0_validate): Conditionalize
-       unvalidated variable `order'.  GID is checked by
-       gxv_just_check_max_gid().  Additional check for upside-down
-       relationship between `lowerLimit' and `upperLimit' is added.
-       (gxv_just_actSubrecord_type1_validate): GID is checked by
-       gxv_just_check_max_gid().
-       (gxv_just_actSubrecord_type2_validate): Conditionalize
-       unvalidated variable `substThreshhold'.  GID is checked by
-       gxv_just_check_max_gid().
-       (gxv_just_actSubrecord_type5_validate): GID is checked by
-       gxv_just_check_max_gid().
-       (gxv_just_classTable_entry_validate): Conditionalize
-       unvalidated variables; `setMark', `dontAdvance',
-       `markClass', `currentClass'.
-
-2011-06-14  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
-
-       [gxvalid] Preparation to fix gcc4.6 compiler warnings.
-
-       * src/gxvalid/gxvcommn.h (GXV_LOAD_TRACE_VARS): New macro to
-       conditionalize the variable which is only used for trace messages.
-       Automatically set by FT_DEBUG_LEVEL_TRACE.
-       (GXV_LOAD_UNUSED_VARS): New macro to conditionalize the loading of
-       unvalidated variables.  Undefined by default to calm gcc4.6 warning.
-       (GXV_ValidatorRec.{min_gid,max_gid}): New variables to hold defined
-       GID ranges, for the comparison of GID ranges in different subtables.
-
-2011-06-08  Werner Lemberg  <wl@gnu.org>
-
-       [autofit] Remove unused structure member.
-
-       * src/autofit/afhints.h (AF_SegmentRec): Remove `contour'.
-       * src/autofit/aflatin.c (af_latin_hints_compute_segments),
-       src/autofit/aflatin2.c (af_latin2_hints_compute_segments): Updated.
-
-2011-05-30  Werner Lemberg  <wl@gnu.org>
-
-       Fix g++ 4.6 compilation.
-
-       * src/autofit/afhints.c (af_glyph_hints_dump_segments,
-       af_glyph_hints_dump_edges): Use cast.
-
-2011-05-30  Werner Lemberg  <wl@gnu.org>
-
-       Fix gcc 4.6 compiler warnings.
-
-       * src/autofit/afcjk.c (af_cjk_metrics_init_blues): Use casts and
-       remove unused variables.
-       * src/autofit/aflatin.c (af_latin_hints_compute_edges): Comment out
-       `up_dir'.
-       * src/smooth/ftsmooth.c (ft_smooth_render_generic): Use `height_org'
-       and `width_org' conditionalized.
-
-2011-05-28  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
-
-       [mac] Conditionalize the inclusion of `AvailabilityMacros.h'.
-
-       The native SDK on earliest Mac OS X (10.0-10.1) did not have
-       `AvailabilityMacros.h'.  To prevent the inclusion of missing
-       header file, ECANCELED (introduced in 10.2) in POSIX header
-       file <errno.h> is checked to detect the system version.
-
-       * include/freetype/config/ftconfig.h: Conditionalize the
-       inclusion of `AvailabilityMacros.h'.
-       * builds/unix/ftconfig.in: Ditto.
-       * builds/vms/ftconfig.h: Ditto.
+2014-09-22  Werner Lemberg  <wl@gnu.org>
 
-2011-05-27  Werner Lemberg  <wl@gnu.org>
+       [autofit] Minor code streamlining.
 
-       [autofit] Improve tracing of hinting process.
+       * src/autofit/afhints.c (af_axis_hints_new_edge): Remove redundant
+       initialization.
 
-       * src/autofit/aflatin.c (af_latin_hint_edges): Add tracing message
-       `ADJUST'.
+2014-09-19  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-2011-05-26  Werner Lemberg  <wl@gnu.org>
+       * src/base/ftcalc.c: Harmonize code.
 
-       [autofit] Fix trace message.
+2014-09-15  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/autofit/aflatin.c (af_latin_hint_edges): Show correct value in
-       tracing message.
+       [base] Tighten the overflow check in `FT_MulDiv'.
 
-2011-05-24  Daniel Zimmermann  <netzimme@googlemail.com>
+       * src/base/ftcalc.c (FT_MulDiv) [!FT_LONG64]: Updated.
 
-       Reduce warnings for MS Visual Studio 2010.
+2014-09-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/autofit/afhints.c (af_glyph_hints_get_num_segments,
-       af_glyph_hints_get_segment_offset) [!FT_DEBUG_AUTOFIT]: Provide
-       return value.
-       * src/cff/cffgload.c (cff_slot_load): Add cast.
-       * src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids): Use proper
-       loop variable type.
+       Fix Savannah bug #43153.
 
-2011-05-16  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/psaux/psconv.c (PS_Conv_ToFixed): Add protection against
+       overflow in `divider'.
 
-       Automake component `builds/unix/install-sh' is removed.
+2014-09-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * builds/unix/install-sh: Removed.  It is not needed to
-       include repository, because autogen.sh installs it.
-       * builds/unix/.gitignore: Register install-sh.
+       [base] Tighten the overflow check in `FT_DivFix'.
 
-2011-05-12  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       This fixes a 13-year old bug. The original overflow check should have
+       been updated when rounding was introduced into this function
+       (c2cd00443b).
 
-       [autofit] Make trace message for CJK bluezone more verbose.
+       * src/base/ftcalc.c (FT_DivFix) [!FT_LONG64]: Updated.
+       * include/freetype.h (FT_DivFix): Updated documentation.
 
-2011-05-08  Just Fill Bugs  <mozbugbox@yahoo.com.au>
-            suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-09-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       [autofit] Add bluezones for CJK Ideographs.
+       [base] Tighten the overflow check in `FT_MulFix'.
 
-       To remove extremas of vertical strokes of CJK Ideographs at
-       low resolution and make the top and bottom horizontal stems
-       aligned, bluezones for CJK Ideographs are calculated from
-       sample glyphs.  At present, vertical bluezones (bluezones
-       to align vertical stems) are disabled by default.  For detail, see
-       http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00070.html
-       http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00092.html
-       http://lists.gnu.org/archive/html/freetype-devel/2011-05/msg00001.html
+       * src/base/ftcalc.c (FT_MulFix) [!FT_LONG64]: Updated.
 
-       * include/freetype/internal/fttrace.h: New trace component `afcjk'.
-       * src/autofit/afcjk.h (AF_CJK{Blue,Axis,Metric}Rec): Add CJK version
-       for AF_Latin{Blue,Axis,Metric}Rec.
-       (af_cjk_metrics_check_digits): Ditto, shared with Indic module.
-       (af_cjk_metrics_init_widths): Ditto.
-       (af_cjk_metrics_init): Take AF_CJKMetric instead of AF_LatinMetric.
-       (af_cjk_metrics_scale): Ditto (declaration).
-       (af_cjk_hints_init): Ditto (declaration).
-       (af_cjk_hints_apply): Ditto (declaration).
-       * src/autofit/afcjk.c (af_cjk_metrics_scale): Ditto (body).
-       (af_cjk_hints_init): Ditto (body).
-       (af_cjk_hints_apply): Ditto (body).
-       (af_cjk_metrics_init_widths): Duplicate af_latin_metrics_init_widths.
-       (af_cjk_metrics_check_digits): Duplicate af_latin_metrics_check_digits.
-       (af_cjk_metrics_init): Call CJK bluezone initializer.
-       (af_cjk_metrics_scale_dim): Add code to scale bluezones.
-       (af_cjk_hints_compute_blue_edges): New function, CJK version of
-       af_latin_hints_compute_blue_edges.
-       (af_cjk_metrics_init_blues): New function, CJK version of
-       af_latin_metrics_init_blues.
-       (af_cjk_hints_edges): Add code to align the edge stems to blue zones.
+2014-09-02  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/autofit/afindic.c (af_indic_metrics_init): Take AF_CJKMetric
-       instead of AF_LatinMetric, and initialize as af_cjk_metrics_init.
-       However bluezones are not initialized.
-       (af_indic_metrics_scale): Take AF_CJKMetric instead of AF_LatinMetric.
-       (af_indic_hints_init): Ditto.
-       (af_indic_hints_apply): Ditto.
+       [truetype] Shortcut ppem calculations for square pixels.
 
-       * docs/CHANGES: Note about CJK bluezone support.
+       * src/truetype/ttinterp.h (TT_ExecContextRec): New field
+       `cur_ppem_func' with a function pointer.
+       * src/truetype/ttinterp.c (TT_RunIns): Initialize `cur_ppem_func'
+       depending on the pixel geometry to either...
+       (Current_Ppem_Stretched): ... this for stretched pixels.
+       (Current_Ppem): ... or this for square pixels.
+       (DO_MPPEM, DO_MPS, Ins_DELTAP, Ins_DELTAC): Use `cur_ppem_func'.
 
-2011-05-06  Werner Lemberg  <wl@gnu.org>
+2014-08-31  Behdad Esfahbod  <behdad@behdad.org>
 
-       [autofit] Remove unused struct member.
+       Don't use `register' keyword.  Fixes compiler warnings.
 
-       * src/autofit/aflatin.h (AF_LatinAxis): Remove `control_overshoot'.
+       * src/base/ftcalc.c (FT_Add64) [!FT_LONG64]: Do it.
+       * src/gzip/inftrees.c (huft_build): Ditto.
+       * src/truetype/ttinterp.c (TT_MulFix14_arm): Ditto.
 
-2011-05-04  Werner Lemberg  <wl@gnu.org>
+2014-08-24  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Simplify.
+       [truetype] Optimize DELTAP and DELTAC.
 
-2011-05-01  Just Fill Bugs  <mozbugbox@yahoo.com.au>
-            Werner Lemberg  <wl@gnu.org>
+       * src/truetype/ttinterp.c (Ins_DELTAP, Ins_DELTAC): Move ppem
+       calculations outside of the loop.
 
-       [autofit] Add more debugging functions.
+2014-08-21  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/autofit/afhints.c (af_glyph_hints_get_num_segments,
-       af_glyph_hints_get_segment_offset): New functions.
+       Fix Savannah bug #43033.
 
-2011-05-01  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * include/config/ftconfig.h, builds/unix/ftconfig.in,
+       builds/vms/ftconfig.h [FT_LONG64]: Do not disable the macro when
+       64-bit type is `long'.
 
-       Add new option `--disable-mmap' to configure script.
+2014-08-20  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * builds/unix/configure.raw: New option `--disable-mmap'
-       is added.  It is for the developers to simulate the systems
-       without mmap() (like 4.3BSD, minix etc) on POSIX systems.
+       [base] Small optimization of `FT_MulFix'.
 
-2011-04-30  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/base/ftcalc.c (FT_MulFix): Loosen up the condition for direct
+       32-bit calculations.
 
-       [truetype] Always recalculate the sfnt table checksum.
+2014-08-19  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/truetype/ttobjs.c (tt_get_sfnt_checksum): Recalculate
-       the sfnt table checksum even if non-zero value is written in
-       the TrueType font header.  Some bad PDF generators write
-       wrong values.  For details see examples and benchmark tests
-       of the latency by recalculation:
-       http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00091.html
-       http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00096.html
+       [base] Use unsigned calculation in `FT_MulDiv'.
 
-2011-04-30  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/base/ftcalc.c (FT_MulDiv): Updated to expand 32-bit range.
 
-       [truetype] Register a set of tricky fonts, NEC FA family.
+2014-08-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids):
-       Add 8 checksum sets for NEC FA family.  For the tricky fonts
-       without some tables (e.g. NEC FA fonts lack cvt table),
-       extra check is added to assure that a zero-length table in the
-       registry is not included in the font.
+       [base] Remove truncation in `FT_DivFix'.
 
-2011-04-29  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/base/ftcalc.c (FT_DivFix): Updated.
 
-       [truetype] Fix a bug in the sfnt table checksum getter.
+2014-08-14  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/truetype/ttobjs.c (tt_get_sfnt_checksum): Check the
-       return value of face->goto_table() correctly.
+       Minor refactoring.
 
-2011-04-28  Werner Lemberg  <wl@gnu.org>
+       * src/base/ftcalc.c (FT_MulDiv, FT_MulDiv_No_Round): Updated.
 
-       [autofit] Improve tracing messages.
+2014-08-14  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/autofit/aflatin.c (af_latin_metrics_init_blues,
-       af_latin_align_linked_edge, af_latin_hint_edges): Do it.
+       Turn FT_MSB into a macro when using gcc builtins.
 
-2011-04-25  Kan-Ru Chen  <kanru@kanru.info>
+       * src/base/ftcalc.c, include/internal/ftcalc.h: Updated.
 
-       [truetype] Always check the checksum to identify tricky fonts.
+2014-08-12  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       Because some PDF generators mangle the family name badly,
-       the trickyness check by the checksum should be invoked always.
-       For sample PDF, see
-       http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00073.html
+       [base] Avoid undefined FT_MSB in `BBox_Cubic_Check'.
 
-       * src/truetype/ttobjs.c (tt_check_trickyness): Even when
-       tt_check_trickyness_family() finds no trickyness,
-       tt_check_trickyness_sfnt_ids() is invoked.
+       * src/base/ftbbox.c (BBox_Cubic_Check): Update.
+       (update_cubic_max): Repalce with...
+       (cubic_peak): ... this, which now handles upscaling.
 
-2011-04-22  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-08-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       [autofit] Add more Indic scripts with hanging baseline.
+       [base] Handle collapsed outlines to avoid undefined FT_MSB.
 
-       * src/autofit/afindic.c (af_indic_uniranges): Tibetan, Limbu,
-       Sundanese, Meetei Mayak, Syloti Nagri and Sharada scripts are
-       added.
+       * src/base/ftoutln.c (FT_Outline_Get_Orientation): Update.
 
-2011-04-21  Behdad Esfahbod  <behdad@behdad.org>
+2014-08-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       Always ignore global advance.
+       [base] Restore FT_MulFix inlining.
 
-       This makes FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH redundant,
-       deprecated, and ignored.  The new behavior is what every major user
-       of FreeType has been requesting.  Global advance is broken in many
-       CJK fonts.  Just ignoring it by default makes most sense.
+       * include/freetype.h (FT_MulFix): Unconditionally defined.
 
-       * src/truetype/ttdriver.c (tt_get_advances),
-       src/truetype/ttgload.c (TT_Get_HMetrics, TT_Get_VMetrics,
-       tt_get_metrics, compute_glyph_metrics, TT_Load_Glyph),
-       src/truetype/ttgload.h: Implement it.
+       * src/base/ftcalc.c [FT_MULFIX_ASSEMBLER]: Move code from here...
 
-       * docs/CHANGES: Updated.
+       * include/internal/ftcalc.h [FT_MULFIX_ASSEMBLER]: ... to here,
+       which conditionally replaces the function with an inline version
+       through the macro.
 
-2011-04-21  rainy6144  <rainy6144@gmail.com>
+2014-08-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       [autofit] Blur CJK stems if too many to preserve their gaps.
+       * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Refactor.
 
-       When there are too many stems to preserve their gaps in the
-       rasterization of CJK Ideographs at a low resolution, blur the
-       stems instead of showing clumped stems.  See
-       http://lists.gnu.org/archive/html/freetype-devel/2011-02/msg00011.html
-       http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00046.html
-       for details.
+2014-07-26  Werner Lemberg  <wl@gnu.org>
 
-       * src/autofit/afcjk.c (af_cjk_hint_edges): Store the position of
-       the previous stem by `has_last_stem' and `last_stem_pos', and skip
-       a stem if the current and previous stem are too near to preserve
-       the gap.
+       [cff] Fix typo.
 
-2011-04-18  Werner Lemberg  <wl@gnu.org>
+       * src/cff/cf2hints.c (cf2_glyphpath_computeOffset): Use correct
+       offsets in third quadrant.
 
-       Integrate autofitter debugging stuff.
+       Reported by maks <maksqwe1@ukr.net>.
 
-       * devel/ftoption.h, include/freetype/config/ftoption.h
-       (FT_DEBUG_AUTOFIT): New macro.
+2014-07-17  Werner Lemberg  <wl@gnu.org>
 
-       * include/freetype/internal/fttrace.h: Add trace components for
-       autofitter.
+       Fix Savannah bug #42788.
 
-       * src/autofit/aftypes.h (AF_LOG): Removed.
-       (_af_debug): Removed.
+       * src/pfr/pfrobjs.c: Include `ftcalc.h'.
 
-       * src/autofit/*: s/AF_DEBUG/FT_DEBUG_AUTOFIT/.
-       s/AF_LOG/FT_TRACE5/.
-       Define FT_COMPONENT where necessary.
+2014-07-16  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-2011-04-18  Werner Lemberg  <wl@gnu.org>
+       Replace `ft_highpow2' function.
 
-       Synchronize config files.
+       * src/pfr/pfrobjs.c (pfr_face_get_kerning): Use `FT_MSB' instead of
+       `ft_highpow2'.
 
-       * builds/unix/ftconfig.in: Copy missing assembler routines from
-       include/freetype/config/ftconfig.h.
+       * src/base/ftutil.c, include/internal/ftobjs.h (ft_highpow2): Remove
+       it.
 
-2011-04-13  Werner Lemberg  <wl@gnu.org>
+2014-07-15  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       Fix Savannah bug #33047.
+       * src/base/ftcalc.c (FT_MSB): Utilize gcc builtins.
 
-       Patch submitted by anonymous reporter.
+2014-07-15  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/psaux/psobjs.c (ps_table_add): Use FT_PtrDist for pointer
-       difference.
+       [base] Move assembler code back in the source file.
 
-2011-04-11  Kan-Ru Chen  <kanru@kanru.info>
+       FT_MulFix assembler used to reside in ftcalc.c before f47d263f1b.
 
-       Fix reading of signed integers from files on 64bit platforms.
+       * include/config/ftconfig.h, builds/unix/ftconfig.in,
+       builds/vms/ftconfig.h [FT_MULFIX_ASSEMBLER]: Move code from here...
 
-       Previously, signed integers were converted to unsigned integers, but
-       this can fail because of sign extension.  For example, 0xa344a1eb
-       becomes 0xffffffffa344a1eb.
+       * src/base/ftcalc.c [FT_MULFIX_ASSEMBLER]: ... to here.
 
-       We now do the reverse which is always correct because the integer
-       size is the same during the cast from unsigned to signed.
+2014-07-14  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * include/freetype/internal/ftstream.h, src/base/ftstream.c
-       (FT_Stream_Get*): Replace with...
-       (FT_Stream_GetU*): Functions which read unsigned integers.
-       Update all macros accordingly.
+       [base] Further clean up color bitmap conversion.
 
-       * src/gzip/ftgzip.c (ft_gzip_get_uncompressed_size): Updated.
+       * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Stop
+       using FT_MulFix and FT_DivFix since all calculations fit into 32 bits.
 
-2011-04-07  Werner Lemberg  <wl@gnu.org>
+2014-07-13  Werner Lemberg  <wl@gnu.org>
 
-       Update Unicode ranges for CJK autofitter; in particular, add Hangul.
+       [truetype] Improve handling of buggy `prep' tables.
 
-       * src/autofit/afcjk.c (af_cjk_uniranges): Update to Unicode 6.0.
+       In case of an error in the `prep' table, no longer try to execute it
+       again and again.  This makes FreeType handle endless loops in buggy
+       fonts much faster.
 
-2011-04-04  Werner Lemberg  <wl@gnu.org>
+       * src/truetype/ttobjs.h (TT_SizeRec): The fields `bytecode_ready'
+       and `cvt_ready' are now negative if not initialized yet, otherwise
+       they indicate the error code of the last run.
 
-       Fix formatting of autofit debug dumps.
+       * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep,
+       tt_size_done_bytecode, tt_size_init_bytecode,
+       tt_size_ready_bytecode, tt_size_init, tt_size_done, tt_size_reset):
+       Updated.
 
-       * src/autofit/afhints.c (af_glyph_hints_dump_points,
-       af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Adjust
-       column widths.
+       * src/truetype/ttgload.c (tt_loader_init): Updated.
+       * src/truetype/ttinterp.c (TT_RunIns): Force reexecution of `fpgm'
+       and `prep' only if we are in the `glyf' table.
 
-2011-03-30  Werner Lemberg  <wl@gnu.org>
+2014-07-12  Werner Lemberg  <wl@gnu.org>
 
-       * src/autofit/aftypes.h (AF_OutlineRec): Removed, unused.
+       * builds/vms/ftconfig.h: Synchronize.
+       Problem reported by Alexei.
 
-2011-03-24  Werner Lemberg  <wl@gnu.org>
+2014-07-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/cff/cfftypes.h (CFF_MAX_CID_FONTS): Increase to 256.
-       This limit is given on p. 37 of Adobe Technical Note #5014.
+       [base] Clean up bitmap conversion.
 
-2011-03-23  Werner Lemberg  <wl@gnu.org>
+       * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use
+       appropriate FT_DivFix and remove superfluous upscaling.
 
-       * src/truetype/ttpload.c (tt_face_load_loca): Fix mismatch warning.
+2014-07-04  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-2011-03-20  Werner Lemberg  <wl@gnu.org>
+       [base] Small optimization of the ancient code.
 
-       * src/sfnt/sfobjs.c (sfnt_open_font): Check number of TTC subfonts.
+       * src/base/ftcalc.c (FT_MulDiv, FT_MulDiv_No_Round): Loosen up the
+       condition for direct 32-bit calculations.
 
-2011-03-19  Werner Lemberg  <wl@gnu.org>
+2014-06-27  Werner Lemberg  <wl@gnu.org>
 
-       More C++ compilation fixes.
+       Fix Apple standard glyph names.
 
-       * src/autofit/afhints.c (af_glyph_hints_dump_points,
-       af_glyph_hints_dump_segments, af_glyph_hints_dump_edges)
-       [__cplusplus]: Protect with `extern "C"'.
+       * src/sfnt/ttpost.c (tt_post_default_names): Synchronize with
+       `tools/glnames.py'
 
-2011-03-18  Werner Lemberg  <wl@gnu.org>
+       Problem reported by Adam Twardoch <adam@fontlab.com>.
 
-       C++ compilation fixes.
+2014-06-17  Werner Lemberg  <wl@gnu.org>
 
-       * src/autofit/aflatin.c (af_latin_hints_apply), src/autofit/afcjk.c
-       (af_cjk_hints_apply): Use cast for `dim'.
+       Partially revert commit from 2014-06-13.
 
-2011-03-17  Alexei Podtelezhnikov  <apodtele@gmail.com>
+       * src/autofit/aflatin.c (af_latin_metrics_init_blues): Move
+       declaration of `p_first' and `p_last' out of the loop.
 
-       A better fix for Savannah bug #32671.
+2014-06-17  Werner Lemberg  <wl@gnu.org>
 
-       * src/smooth/ftgrays.c (gray_render_conic): Clean up code and
-       replace WHILE loop with a more natural DO-WHILE construct.
+       * builds/unix/freetype2.m4: s/AC_PATH_PROG/AC_PATH_TOOL/.
 
-2011-03-16  Werner Lemberg  <wl@gnu.org>.
+       This simplifies cross-compiling.
 
-       * src/base/ftstroke.c (FT_StrokerRec): Remove unused `valid' field.
-       Suggested by Graham Asher.
+2014-06-13  Werner Lemberg  <wl@gnu.org>
 
-2011-03-09  Werner Lemberg  <wl@gnu.org>
+       Fix more compiler warnings.
+       Reported by Wojciech Mamrak <wmamrak@gmail.com>.
 
-       Make FT_Sfnt_Table_Info return the number of SFNT tables.
+       * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
+       Make integer constant unsigned.
 
-       * src/sfnt/sfdriver.c (sfnt_table_info): Implement it.
-       * include/freetype/tttables.h: Update documentation.
-       * docs/CHANGES: Updated.
+       * src/sfnt/ttsbit.c (tt_face_load_strike_metrics)
+       <TT_SBIT_TABLE_TYPE_SBIX>: Fix types.
+       (tt_sbit_decoder_load_compound, tt_face_load_sbix_image): Add proper
+       casts.
 
-2011-03-07  Bram Tassyns  <bramt@enfocus.be>
+2014-06-13  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #27988.
+       Fix compiler warnings.
+       Reported by Wojciech Mamrak <wmamrak@gmail.com>.
 
-       * src/cff/cffobjs.c (remove_style): New function.
-       (cff_face_init): Use it to strip off the style part of the family
-       name.
+       * src/autofit/afglobal.c (af_face_globals_compute_style_coverage),
+       src/autofit/afmodule.c (af_property_set): Fix `signed' vs.
+       `unsigned' issues.
 
-2011-03-07  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/aflatin.c (af_latin_metrics_init_blues): Make compiler
+       happy.
 
-       * docs/CHANGES: Updated.
+       * src/base/ftlcdfil.c (_ft_lcd_filter_fir): Use only four elements
+       for `fir'.
+       Fix `signed' vs. `unsigned' issues.
 
-2011-03-07  Alexei Podtelezhnikov  <apodtele@gmail.com>
+       * src/sfnt/sfobjs.c (WRITE_BYTE): Removed, unused.
+       (WRITE_USHORT, WRITE_ULONG): Add proper casts.
 
-       Quick fix for Savannah bug #32671.
+       * src/truetype/ttgload.c (TT_Get_VMetrics): Add proper casts.
 
-       This isn't the optimal solution yet, but it restores the previous
-       rendering quality (more or less).
+       * src/truetype/ttinterp.c (Ins_DELTAP): Add proper casts for `B1'
+       and `B2'.
 
-       * src/smooth/ftgrays.c (gray_render_conic): Do more splitting.
+2014-05-16  Alexey Petruchik  <alexey.petruchik@gmail.com>
 
-2011-03-06  Werner Lemberg  <wl@gnu.org>
+       [cmake] Add option to build OS X framework.
 
-       Fix autohinting fallback.
+       * CMakeLists.txt: Update accordingly.
 
-       * src/base/ftobjs.c (FT_Load_Glyph): Assure that we only check TTFs,
-       ignoring CFF-based OTFs.
+       * builds/mac/freetype-Info.plist: New file.
 
-2011-02-27  Werner Lemberg  <wl@gnu.org>
+2014-05-13  Pavel Koshevoy  <pkoshevoy@gmail.com>
 
-       Add AF_CONFIG_OPTION_USE_WARPER to control the autofit warper.
+       * CMakeLists.txt (BASE_SRCS): Add missing `ftbdf.c'.
 
-       * devel/ftoption.h, include/freetype/config/ftoption.h
-       (AF_CONFIG_OPTION_USE_WARPER): New macro.
-       * src/autofit/aftypes.h (AF_USE_WARPER): Remove.
+2014-05-11  Werner Lemberg  <wl@gnu.org>
 
-       * src/autofit/*: s/AF_USE_WARPER/AF_CONFIG_OPTION_USE_WARPER/.
+       [autofit] Fix variable initializations.
 
-       * src/autofit/afwarp.c [!AF_CONFIG_OPTION_USE_WARPER]: Replace dummy
-       variable assignment with a typedef.
+       * src/autofit/afhints.c (af_glyph_hints_reload): Assign default
+       values to `in_dir' and `out_dir' for all points.
 
-2011-02-26  Werner Lemberg  <wl@gnu.org>
+2014-05-11  Werner Lemberg  <wl@gnu.org>
 
-       [autofit] Slight simplifications.
+       [autofit] Fix crash with font `CabinSketch-Bold.ttf'.
 
-       * src/autofit/aflatin.c (af_latin_hints_link_segments): Remove
-       test which always returns false.
-       (af_latin_hints_compute_blue_edges): Remove redundant assignment.
+       Problem reported by Ralf S. Engelschall <rse@engelschall.com>.
 
-2011-02-24  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afhints.c (af_glyph_hints_reload): Fix threshold for
+       finding first non-near point.
+       Properly initialize non-near point deltas.
 
-       * docs/PROBLEMS: Mention rendering differences on different
-       platforms.
-       Suggested and worded by Jason Owen <jason.a.owen@gmail.com>.
+2014-05-01  Werner Lemberg  <wl@gnu.org>
 
-2011-02-24  Werner Lemberg  <wl@gnu.org>
+       [autofit] Add blue-zone support for Devanagari.
 
-       [autofit] Comment out unused code.
+       This essentially moves the Devanagari script from the `Indic' hinter
+       to the `Latin' hinter.  Thanks to Girish Dalvi
+       <girish.dalvi@gmail.com> for guidance with blue zone characters!
 
-       * src/autofit/aflatin.c, src/autofit/aflatin2.c
-       (af_latin_hints_compute_edges): Do it.
+       * src/autofit/afblue.dat: Add blue zone data for Devanagari.
 
-2011-02-24  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
 
-       * src/autofit/afhints.h (AF_GlyphHints): Remove unused field.
+       * src/autofit/afscript.h: Add Devanagari standard characters and
+       move data out of AF_CONFIG_OPTION_INDIC block.
 
-2011-02-20  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/afranges.c: Move Devanagari data out of
+       AF_CONFIG_OPTION_INDIC block.
+       Move U+20B9, (new) Rupee sign, from Latin to Devanagari.
 
-       [cache] Fix an off-by-one bug in `FTC_Manager_RemoveFaceID'.
-       Found by <ychen1392001@yahoo.com.cn>, see detail in
+       * src/autofit/afstyles.h: Update Devanagari data; in particular, use
+       AF_WRITING_SYSTEM_LATIN.
 
-         http://lists.gnu.org/archive/html/freetype/2011-01/msg00023.html
+2014-05-01  Werner Lemberg  <wl@gnu.org>
 
-       * src/cache/ftccache.c (FTC_Cache_RemoveFaceID): Check the node
-       buckets[cache->p + cache->mask] too.
+       [autofit] Fix handling of neutral blue zones in stems.
 
-2011-02-19  Kevin Kofler  <kevin.kofler@chello.at>
+       * src/autofit/afhints.h (AF_Edge_Flags): New value
+       `AF_EDGE_NEUTRAL'.
 
-       Fall back to autohinting if a TTF/OTF doesn't contain any bytecode.
-       This is Savannah patch #7471.
+       * src/autofit/aflatin.c (af_latin_hints_compute_blue_edges): Trace
+       neutral blue zones with AF_EDGE_NEUTRAL.
+       (af_latin_hint_edges): Skip neutral blue zones if necessary.
 
-       * src/base/ftobjs.c (FT_Load_Glyph): Implement it.
+2014-04-28  Werner Lemberg  <wl@gnu.org>
 
-2011-02-19  John Tytgat  <John.Tytgat@esko.com>
+       [autofit] Introduce neutral blue zones to the latin module.
 
-       [cff] Fix subset prefix removal.
-       This is Savannah patch #7465.
+       Such blue zones match either the top or the bottom of a contour.  We
+       need them for scripts where accent-like elements directly touch the
+       base character (for example, some vowel signs in Devanagari, cf.
+       U+0913 or U+0914).
 
-       * src/cff/cffobjs.c (remove_subset_prefix): Update length after
-       subset prefix removal.
+       * src/autofit/afblue.hin (AF_BLUE_PROPERTY_LATIN_NEUTRAL): New
+       property.
 
-2011-02-13  Bradley Grainger  <bgrainger@logos.com>
+       * src/autofit/afblue.h: Regenerated.
 
-       Add inline assembly version of FT_MulFix for MSVC.
+       * src/autofit/aflatin.h (AF_LATIN_IS_NEUTRAL_BLUE): New macro.
+       (AF_LATIN_BLUE_NEUTRAL): New enumeration value.
 
-       * include/freetype/config/ftconfig.h: Ported the FT_MulFix_i386
-       function from GNU inline assembly syntax (see #ifdef __GNUC__ block
-       above) to MASM syntax for Microsoft Visual C++.
+       * src/autofit/aflatin.c (af_latin_metrics_init_blues,
+       af_latin_hints_compute_blue_edges): Handle neutral blue zones.
 
-2011-02-13  Bradley Grainger  <bgrainger@logos.com>
+2014-04-25  Werner Lemberg  <wl@gnu.org>
 
-       Add project and solution files in Visual Studio 2010 format.
+       * src/autofit/hbshim.c: Partially revert commit from 2014-04-17.
 
-       * builds/win32/.gitignore: Ignore user-specific cache files.
-       * builds/win32/vc2010/: Add VS2010 project & solution files, created
-       by upgrading builds/win32/vc2008/freetype.vcproj.
-       * objs/.gitignore: Ignore Visual Studio output files.
+       Using input glyph coverage data is simply wrong.
 
-2011-02-01  Werner Lemberg  <wl@gnu.org>
+       Problem reported by Nikolaus Waxweiler <madigens@gmail.com> and
+       Mantas Mikulėnas <grawity@gmail.com>.
 
-       * src/autofit/afdummy.c: Include `aferrors.h'.
-       Problem reported by Chris Liddell <chris.liddell@artifex.com>.
+2014-04-23  Werner Lemberg  <wl@gnu.org>
 
-2011-02-01  Werner Lemberg  <wl@gnu.org>
+       * src/raster/ftraster.c (Vertical_Sweep_Span): Use drop-out mode.
 
-       [cff] Ignore unknown operators in charstrings.
-       Patch suggested by Miles.Lau <sunliang_liu@foxitsoftware.com>.
+       This spot has been missed while introducing support for various
+       drop-out modes years ago (including no drop-out mode, which this
+       commit fixes).
 
-       * src/cff/cffgload.c (cff_decoder_parse_charstrings): Emit tracing
-       message for unknown operators and continue instead of exiting with a
-       syntax error.
+       Problem reported by Patrick Thomas <pthomas505@gmail.com>.
 
-2011-02-01  Werner Lemberg  <wl@gnu.org>
+2014-04-22  Werner Lemberg  <wl@gnu.org>
 
-       [truetype] FT_LOAD_PEDANTIC now affects `prep' and `fpgm' also.
+       * src/sfnt/pngshim.c (error_callback): s/longjmp/ft_longjmp/.
 
-       * src/truetype/ttgload.c (tt_loader_init): Handle
-       `FT_LOAD_PEDANTIC'.
-       * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep,
-       tt_size_init_bytecode, tt_size_ready_bytecode): New argument to
-       handle pedantic mode.
-       * src/truetype/ttobjs.h: Updated.
+2014-04-20  Werner Lemberg  <wl@gnu.org>
 
-2011-01-31  Werner Lemberg  <wl@gnu.org>
+       [autofit] Fix Savannah bug #42148.
 
-       [truetype] Protect jump instructions against endless loops.
+       The adaptation of the cjk auto-hinter module to blue stringsets in
+       2013-08-25 had three severe bugs.  Mea culpa.
 
-       * src/truetype/interp.c (DO_JROT, DO_JMPR, DO_JROF): Exit with error
-       if offset is zero.
+       1. Contrary to the latin auto-hinter, characters for reference and
+          overshoot values of a blue zone are specified separately.  Due to
+          the screwed-up change it didn't work at all.
 
-2011-01-31  Werner Lemberg  <wl@gnu.org>
+       2. A boolean comparison was erroneously replaced with a cast,
+          causing invalid results with the `^' operator later on.  The
+          visual artifact caused by this problem is the topic of the bug
+          report.
 
-       [truetype] Improve handling of invalid references.
+       3. Two flag values were inverted, causing incorrect assignment of
+          reference and overshoot values.
 
-       * src/truetype/interp.c: Set even more TT_Err_Invalid_Reference
-       error codes only if pedantic hinting is active.  At the same time,
-       try to provide sane values which hopefully allow useful
-       continuation.  Exception to this is CALL and LOOPCALL – due to
-       possible stack corruption it is necessary to bail out.
+       * src/autofit/afblue.dat: Fix CJK bluestrings, introducing a new
+       syntax to have both reference and overshoot characters in a single
+       string.  This is error #1.
+       Add extensive comments.
 
-2011-01-31  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afblue.hin (AF_BLUE_PROPERTY_CJK_FILL): Removed, no
+       longer used.
+       (AF_BLUE_PROPERTY_CJK_TOP, AF_BLUE_PROPERTY_CJK_HORIZ): Fix values.
+       This is error #3.
 
-       [truetype] Improve handling of stack underflow.
+       * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
 
-       * src/truetype/ttinterp.c (TT_RunIns, Ins_FLIPPT, Ins_DELTAP,
-       Ins_DELTAC): Exit with error only if `pedantic_hinting' is set.
-       Otherwise, try to do something sane.
+       * src/autofit/afcjk.c (af_cjk_metrics_init_blues): Correct error #1.
+       Use character `|' to separate characters for reference and overshoot
+       values.
+       Improve tracing messages, synchronizing them with the latin
+       auto-hinter.
+       (af_cjk_hints_compute_blue_edges): Fix value of `is_top_right_blue'.
+       This is error #2.
+       (af_cjk_align_linked_edge): Add tracing message.
 
-2011-01-30  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afcjk.h (AF_CJK_IS_FILLED_BLUE): Removed, no longer
+       used.
 
-       * src/sfnt/ttmtx.c (tt_face_load_hmtx): Fix tracing message.
+2014-04-17  Werner Lemberg  <wl@gnu.org>
 
-2011-01-30  LIU Sun-Liang  <sunliang_liu@foxitsoftware.com>
+       [autofit] More coverage fixes for complex scripts.
 
-       [truetype]: Fix behaviour of MIAP for invalid arguments.
+       * src/autofit/hbshim.c (af_get_coverage): Merge input glyph coverage
+       of GSUB lookups into output coverage.  Otherwise, ligatures are not
+       handled properly.
+       Don't check blue zone characters for default coverage.
 
-       * src/truetype/ttinterp.c (Ins_MIAP): Set reference points even in
-       case of error.
+2014-04-17  Werner Lemberg  <wl@gnu.org>
 
-2011-01-18  Werner Lemberg  <wl@gnu.org>
+       Make `FT_Get_SubGlyph_Info' actually work.
 
-       [truetype] Fix handling of MIRP instruction.
+       * src/base/ftobjs.c (FT_Get_SubGlyph_Info): Return FT_Err_Ok
+       if there is no error.
 
-       Thanks to Greg Hitchcock who explained the issue.
+2014-04-15  Werner Lemberg  <wl@gnu.org>
 
-       * src/truetype/ttinterp.c (Ins_MIRP): Replace a `>=' operator with
-       `>' since the description in the specification is incorrect.
-       This fixes, for example, glyph `two' in font `Helvetica Neue LT Com
-       65 medium' at 15ppem.
+       [afblue.pl]: Minor improvements.
 
-2011-01-15  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/tools/afblue.pl: Allow whitespace before comments.
+       Ignore whitespace in strings.
 
-       Fix ARM assembly code in include/freetype/config/ftconfig.h.
+2014-04-14  Werner Lemberg  <wl@gnu.org>
 
-       * include/freetype/config/ftconfig.h (FT_MulFix_arm):
-       Copy the maintained code from builds/unix/ftconfig.in.
-       Old GNU binutils could not accept the reduced syntax
-       `orr %0, %2, lsl #16'.  Un-omitted syntax like RVCT,
-       `orr %0, %0, %2, lsl #16' is better.  Reported by
-       Johnson Y. Yan.  The bug report by Qt developers is
-       considered too.
+       [autofit] Improve coverage handling.
 
-       http://bugreports.qt.nokia.com/browse/QTBUG-6521
+       * src/autofit/hbshim.c (af_get_coverage): Don't exclude glyphs
+       appearing in the GPOS table if we are processing the default
+       coverage.
 
-2011-01-15  Werner Lemberg  <wl@gnu.org>
+2014-04-13  David Weber <weber.aulendorf@googlemail.com>
 
-       [raster] Make bbox handling the same as with Microsoft's rasterizer.
+       [smooth] Fix stand-alone compilation.
 
-       Right before B/W rasterizing, the bbox gets simply rounded to
-       integers.  This fixes, for example, glyph `three' in font `Helvetica
-       Neue LT Com 65 Medium' at 11ppem.
+       * src/smooth/ftgrays.c (FT_BEGIN_STMNT, FT_END_STMNT): Define.
 
-       Thanks to Greg Hitchcock who explained this behaviour.
+2014-04-12  Werner Lemberg  <wl@gnu.org>
 
-       * src/raster/ftrend1.c (ft_raster1_render): Implement it.
+       [autofit] Redesign the recognition algorithm of strong points.
 
-2011-01-15  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       In particular, local extrema without horizontal or vertical segments
+       are better recognized:
 
-       Copy -mcpu=* & -march=* options from CFLAGS to LDFLAGS.
+         + A                + D
+          \                /
+           \              /
+            \            /
+             \          /
+              \        + C
+               \    /
+              B +/
 
-       * builds/unix/configure.raw: Consider recent gcc-standard
-       flags to specify architecture in CFLAGS & LDFLAGS
-       harmonization.  Requested by Savannah bug #32114, to
-       support multilib feature of BuildRoot SDK correctly.
+       If the distances AB and CD are large, point B wasn't previously
+       detected as an extremum since the `ft_corner_is_flat' function
+       `swallowed' BC regardless of its direction, tagging point B as weak.
+       The next iteration started at B and made `ft_corner_is_flat' swallow
+       point C, tagging it as weak also, et voilà.
 
-2011-01-15  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       To improve that, another pass gets now performed before calling
+       `ft_corner_is_flat' to improve the `topology' of an outline: A
+       sequence of non-horizontal or non-vertical vectors that point into
+       the same quadrant are handled as a single, large vector.
 
-       Fix off-by-one bug in CFLAGS & LDFLAGS harmonizer.
+       Additionally, distances of near points are now accumulated, which
+       makes the auto-hinter handle them as if they were prepended to the
+       next non-near vector.
 
-       * builds/unix/configure.raw: Some important options that
-       included in CFLAGS but not in LDFLAGS are copied to
-       LDFLAGS, but the last option in CFLAGS was not checked.
+       This generally improves the auto-hinter's rendering results.
 
-2011-01-13  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afhints.c (af_glyph_hints_reload): Implement it.
 
-       [raster] Add undocumented drop-out rule to the other bbox side also.
+       * src/autofit/afhints.h (AF_FLAGS): Remove no longer used flag
+       `AF_FLAG_NEAR'.
 
-       * src/raster/ftraster.c (Vertical_Sweep_Drop,
-       Horizontal_Sweep_Drop): Implement it.
+2014-04-05  Werner Lemberg  <wl@gnu.org>
 
-2011-01-13  Werner Lemberg  <wl@gnu.org>
+       [autofit] Improve scoring algorithm for identifying stems.
 
-       [raster] Reduce jitter value.
+       Problem reported by Karsten Lücke <karsten.luecke@kltf.de>.
 
-       This catches a rendering problem with glyph `x' from Tahoma at
-       10ppem.  It seems that the increase of the precision in the change
-       from 2009-06-11 makes a larger jitter value unnecessary.
+       The new algorithm takes care of the width of stems: If the distance
+       between two segments is larger than the largest stem width, the
+       demerits quickly increase for larger distances.  This improves
+       hinting of slanted fonts (especially if the inner parts of serifs
+       have non-horizontal `shoulders'), avoiding false stem links.
 
-       * src/raster/ftraster.c (Set_High_Precision): Implement it.
+       * src/autofit/aflatin.c (af_latin_hints_link_segments): Use largest
+       stem width (if available) to compute better demerits for distances
+       between stems.
+       (af_latin_hints_detect_features): Pass stem width array and array
+       size.
+       (af_latin_metrics_init_widths): Updated to use original algorithm.
+       (af_latin_hints_apply): Updated to use new algorithm.
 
-2011-01-13  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/aflatin.h: Updated.
+       * src/autofit/afcjk.c: Updated.
 
-       [raster] Handle drop-outs at glyph borders according to Microsoft.
+2014-04-03  Werner Lemberg  <wl@gnu.org>
 
-       If a drop-out rule would switch on a pixel outside of the glyph's
-       bounding box, use the right (or top) pixel instead.  This is an
-       undocumented feature, but some fonts like `Helvetica Neue LT Com 65
-       Medium' heavily rely on it.
+       Don't require `gzip' module for `sfnt'.
 
-       Thanks to Greg Hitchcock who explained this behaviour.
+       Reported by Preet <prismatic.project@gmail.com>.
 
-       * src/raster/ftraster.c (Vertical_Sweep_Drop,
-       Horizontal_Sweep_Drop): Implement it.
+       * src/sfnt/sfobjs.c (woff_open_font): Guard use of
+       FT_Gzip_Uncompress with FT_CONFIG_OPTION_USE_ZLIB.
 
-2011-01-09  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-03-27  Werner Lemberg  <wl@gnu.org>
 
-       [cache] Fix Savannah bug #31923, patch drafted by Harsha.
+       Fix Savannah bug #38235.
 
-       When a node comparator changes the cached nodes during the
-       search of a node matching with queried properties, the
-       pointers obtained before the function should be updated to
-       prevent the dereference to freed or reallocated nodes.
-       To minimize the rescan of the linked list, the update is
-       executed when the comparator notifies the change of cached
-       nodes. This change depends previous change:
-       38b272ffbbdaae276d636aec4ef84af407d16181
+       Work around a bug in pkg-config version 0.28 and earlier: If a
+       variable value gets surrounded by doublequotes (in particular values
+       for the `prefix' variable), the prefix override mechanism fails.
 
-       * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Rescan the
-       top node if the cached nodes are changed.
-       * src/cache/ftccache.c (FTC_Cache_Lookup): Ditto.
+       * builds/unix/freetype2.in: Don't use doublequotes.
+       * builds/unix/unix-def.in (freetype.pc): Escape spaces in directory
+       names with backslashes.
 
-2011-01-09  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-03-24  Werner Lemberg  <wl@gnu.org>
 
-       [cache] Notice if a cache query induced the node list change.
+       Fix Savannah bug #41946.
 
-       Some node comparators (comparing the cache node contents and the
-       properties specified by the query) can flush the cache node to
-       prevent the cache inflation.  The change may invalidate the pointers
-       to the node obtained before the node comparison, so it should be
-       noticed to the caller.  The problem caused by the cache node
-       changing is reported by Harsha, see Savannah bug #31923.
+       Based on a patch from Marek Kašík <mkasik@redhat.com>.
 
-       * src/cache/ftccache.h (FTC_Node_CompareFunc): Add new argument
-       `FT_Bool* list_changed' to indicate the change of the cached nodes
-       to the caller.
-       (FTC_CACHE_LOOKUP_CMP): Watch the change of the cached nodes by
-       `_list_changed'.
-       (FTC_CACHE_TRYLOOP_END): Take new macro argument `_list_changed'
-       and update it when `FTC_Manager_FlushN' flushes any nodes.
+       * builds/unix/configure.raw (LIBS_CONFIG): Remove.
+       * builds/unix/freetype-config.in (libs): Hard-code value.
+       * builds/unix/unix-def.in: Updated.
 
-       * src/cache/ftccback.h (ftc_snode_compare): Updated to fit with new
-       FTC_Node_CompareFunc type.
-       (ftc_gnode_compare): Ditto.
+2014-03-22  Werner Lemberg  <wl@gnu.org>
 
-       * src/cache/ftcbasic.c: Include FT_INTERNAL_OBJECTS_H to use
-       TRUE/FALSE macros.
-       (ftc_basic_gnode_compare_faceid): New argument `FT_Bool*
-       list_changed' to indicate the change of the cache nodes (anyway, it
-       is always FALSE).
+       Another revert for the change from 2014-03-18.
 
-       * src/cache/ftccmap.c: Include FT_INTERNAL_OBJECTS_H to use
-       TRUE/FALSE macros.
-       (ftc_cmap_node_compare): New argument `FT_Bool* list_changed' to
-       indicate the change of the cache nodes (anyway, it is always FALSE).
-       (ftc_cmap_node_remove_faceid): Ditto.
+       Problem reported by Nikolaus Waxweiler <madigens@gmail.com>.
 
-       * src/cache/ftccache.c (FTC_Cache_NewNode): Pass a NULL pointer to
-       `FTC_CACHE_TRYLOOP_END', because the result is not needed.
-       (FTC_Cache_Lookup): Watch the change of the cache nodes by
-       `list_changed'.
-       (FTC_Cache_RemoveFaceID): Ditto.
+       * src/base/ftcalc.c (FT_MulFix): Ensure that an `FT_MulFix' symbol
+       gets always exported.
 
-       * src/cache/ftcglyph.c: Include FT_INTERNAL_OBJECTS_H to use
-       TRUE/FALSE macros.
-       (ftc_gnode_compare): New argument `FT_Bool* list_changed' to
-       indicate the change of the cache nodes (anyway, it is always FALSE).
-       (FTC_GNode_Compare): New argument `FT_Bool* list_changed' to be
-       passed to `ftc_gnode_compare'.
-       * src/cache/ftcglyph.h (FTC_GNode_Compare): Ditto.
+2014-03-20  Werner Lemberg  <wl@gnu.org>
 
-       * src/cache/ftcsbits.c (ftc_snode_compare): New argument `FT_Bool*
-       list_changed' to indicate the change of the cache nodes, anyway.  It
-       is updated by `FTC_CACHE_TRYLOOP'.
-       (FTC_SNode_Compare): New argument `FT_Bool* list_changed' to be
-       passed to `ftc_snode_compare'.
-       * src/cache/ftcsbits.h (FTC_SNode_Compare): Ditto.
+       CMakeLists.txt: Another fix for include directories.
 
-2011-01-09  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       Problem reported by Taylor Holberton <taylorcholberton@gmail.com>.
 
-       [cache] Fit `FTC_GNode_Compare' to `FTC_Node_CompareFunc'.
+2014-03-19  Werner Lemberg  <wl@gnu.org>
 
-       * src/cache/ftcglyph.h (FTC_GNode_Compare): Add the 3rd
-       argument `FTC_Cache  cache' to fit FTC_Node_CompareFunc
-       prototype.
-       * src/cache/ftcglyph.c (FTC_GNode_Compare): Ditto. Anyway,
-       `cache' is not used by its child `ftc_gnode_compare'.
+       CMakeLists.txt: Fix include directories.
 
-2011-01-09  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       Problem reported by Taylor Holberton <taylorcholberton@gmail.com>.
 
-       [cache] Deduplicate the code to get the top node by a hash.
+2014-03-19  Werner Lemberg  <wl@gnu.org>
 
-       There are several duplicated code fragments getting the top node
-       from a cache by a given hash, like:
+       Partially revert last commit.
 
-           idx = hash & cache->mask;
-           if ( idx < cache->p )
-             idx = hash & ( cache->mask * 2 + 1 );
-           pnode = cache->buckets + idx;
+       Found by Alexei.
 
-       To remove duplication, a cpp-macro to do same work
-       `FTC_NODE__TOP_FOR_HASH' is introduced.  For non-inlined
-       configuration, non-`ftc_get_top_node_for_hash' is also introduced.
+       * src/autofit/aflatin.c (af_latin_metrics_init_blues): Initializing
+       those variables is plain wrong, since we are in a loop.
 
-       * src/cache/ftccache.h (FTC_NODE__TOP_FOR_HASH): Declare
-       and implement inlined version.
-       (FTC_CACHE_LOOKUP_CMP): Use `FTC_NODE__TOP_FOR_HASH'.
-       * src/cache/ftccache.c (ftc_get_top_node_for_hash): Non-inlined
-       version.
-       (ftc_node_hash_unlink): Use `FTC_NODE__TOP_FOR_HASH'.
-       (ftc_node_hash_link): Ditto.
-       (FTC_Cache_Lookup): Ditto.
+2014-03-18  Sean McBride  <sean@rogue-research.com>
+           Werner Lemberg  <wl@gnu.org>
 
-2011-01-09  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       Fix clang warnings.
 
-       [cache] inline-specific functions are conditionalized.
+       * src/autofit/aflatin.c (af_latin_metrics_init_blues): Initialize
+       some variables.
 
-       * src/cache/ftcglyph.c (FTC_GNode_Compare): Conditionalized for
-       inlined configuration.  This function is a thin wrapper of
-       `ftc_gnode_compare' for inlined `FTC_CACHE_LOOKUP_CMP' (see
-       `nodecmp' argument).  Under non-inlined configuration,
-       `ftc_gnode_compare' is invoked by `FTC_Cache_Lookup', via
-       `FTC_Cache->clazz.node_compare'.
+       * src/base/ftcalc.c (FT_MulFix): Only use code if
+       `FT_MULFIX_INLINED' is not defined.
 
-       * src/cache/ftcglyph.h (FTC_GNode_Compare): Ditto.
-       * src/cache/ftcsbits.c (FTC_SNode_Compare): Ditto, for
-       `ftc_snode_compare'.
-       * src/cache/ftcsbits.h (FTC_SNode_Compare): Ditto.
+       * src/bdf/bdfdrivr.c (bdf_cmap_class), src/cache/ftcbasic.c
+       (ftc_basic_image_family_class, ftc_basic_image_cache_class,
+       ftc_basic_sbit_family_class, ftc_basic_sbit_cache_class),
+       src/cache/ftccmap.c (ftc_cmap_cache_class), src/cache/ftcmanag.c
+       (ftc_size_list_class, ftc_face_list_class), src/pcf/pcfdrivr.c
+       (pcf_cmap_class), src/pfr/pfrdrivr.c (pfr_metrics_service_rec): Make
+       function static.
 
-2011-01-09  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/type1/t1driver.c (t1_ps_get_font_value): Remove redundant
+       code.
 
-       [cache] Correct a type mismatch under non-inlined config.
+2014-03-17  Werner Lemberg  <wl@gnu.org>
 
-       * src/cache/ftcglyph.h (FTC_GCACHE_LOOKUP_CMP): `FTC_GCache_Lookup'
-       takes the node via a pointer `FTC_Node*', differently from cpp-macro
-       `FTC_CACHE_LOOKUP_CMP'.
+       Fix Savannah bug #41869.
 
-2011-01-06  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       This works around a problem with HarfBuzz (<= 0.9.26), which doesn't
+       validate glyph indices returned by
+       `hb_ot_layout_lookup_collect_glyphs'.
 
-       Update Jamfile to include Bzip2 support.
+       * src/autofit/hbshim.c (af_get_coverage): Guard `idx'.
 
-       * Jamfile: Include src/bzip2 to project.
-       Comments for lzw, gzip, bzip2 are changed to clarify that
-       they are for compressed PCF fonts, not others.
-       (e.g. compressed BDF fonts are not supported yet)
+       * docs/CHANGES: Updated.
 
-2011-01-05  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-03-14  Werner Lemberg  <wl@gnu.org>
 
-       Update Symbian project files to include Bzip2 support.
+       * builds/unix/configure.raw: Don't show error messages of `which'.
 
-       Currently, it provides `FT_Stream_OpenBzip2' that returns
-       unimplemented error always, to prevent unresolved symbol
-       error for the applications designed for Unix systems.
+2014-03-09  Alan Coopersmith  <alan.coopersmith@oracle.com>
 
-       * builds/symbian/bld.inf: Include ftbzip2.h.
-       * builds/symbian/freetype.mmp: Include ftbzip2.c.
+       Fix cppcheck 1.64 warning.
 
-2011-01-05  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/afglobal.c (af_face_globals_new): Catch NULL pointer
+       dereference in case of error.
 
-       Update classic MacOS makefiles to include Bzip2 support.
+2014-03-09  Sean McBride  <sean@rogue-research.com>
 
-       Currently, it provides `FT_Stream_OpenBzip2' that returns
-       unimplemented error always, to prevent unresolved symbol
-       error for the applications designed for Unix systems.
+       * src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove clang warning.
 
-       * builds/mac/FreeType.m68k_cfm.make.txt: Include ftbzip2.c.o.
-       * builds/mac/FreeType.m68k_far.make.txt: Ditto.
-       * builds/mac/FreeType.ppc_carbon.make.txt: Include ftbzip2.c.x.
-       * builds/mac/FreeType.ppc_classic.make.txt: Ditto.
+2014-03-06  Werner Lemberg  <wl@gnu.org>
 
-2011-01-05  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * Version 2.5.3 released.
+       =========================
 
-       Update Amiga makefiles to include Bzip2 support.
 
-       Currently, it provides `FT_Stream_OpenBzip2' that returns
-       unimplemented error always, to prevent unresolved symbol
-       error for the applications designed for Unix systems.
+       Tag sources with `VER-2-5-3'.
 
-       * builds/amiga/makefile: Include bzip2.ppc.o built from ftbzip2.c.
-       * builds/amiga/makefile.os4: Include bzip2.o built from ftbzip2.c.
-       * builds/amiga/smakefile: Ditto.
+       * docs/VERSION.DLL: Update documentation and bump version number to
+       2.5.3.
+
+       * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+       builds/windows/vc2005/index.html,
+       builds/windows/vc2008/freetype.vcproj,
+       builds/windows/vc2008/index.html,
+       builds/windows/vc2010/freetype.vcxproj,
+       builds/windows/vc2010/index.html,
+       builds/windows/visualc/freetype.dsp,
+       builds/windows/visualc/freetype.vcproj,
+       builds/windows/visualc/index.html,
+       builds/windows/visualce/freetype.dsp,
+       builds/windows/visualce/freetype.vcproj,
+       builds/windows/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.5.2/2.5.3/, s/252/253/.
 
-2011-01-05  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
 
-       Update pkg-config tools to reflect Bzip2 support.
+       * builds/unix/configure.raw (version_info): Set to 17:2:11.
+       * CMakeLists.txt (VERSION_PATCH): Set to 3.
+       * docs/CHANGES: Updated.
 
-       * builds/unix/freetype-config.in: Include `-lbz2' to
-       --libs output, if built with Bzip2 support.
-       * builds/unix/freetype2.in: Ditto.
+2014-03-06  Werner Lemberg  <wl@gnu.org>
 
-2011-01-05  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       Fixes for compilation with C++.
 
-       * builds/unix/configure.raw: Remove `SYSTEM_BZ2LIB' macro.
+       * src/autofit/hbshim.c (scripts): Change type to `hb_script_t'.
+       (af_get_coverage): Updated.
+       (COVERAGE): Add cast.
 
-       SYSTEM_ZLIB is used to switch the builtin zlib source
-       or system zlib source out of FreeType2.  But ftbzip2
-       module has no builtin bzip2 library and always requires
-       system bzip2 library.  Thus SYSTEM_BZ2LIB is always yes,
-       it is not used.
+2014-03-06  Sean McBride  <sean@rogue-research.com>
 
-2011-01-03  Werner Lemberg  <wl@gnu.org>
+       Remove more clang analyzer warnings.
 
-       */rules.mk: Handle `*pic.c' files.
+       * src/bdf/bdflib.c (_bdf_readstream), src/truetype/ttgload.c
+       (TT_Load_Glyph): Remove dead stores.
 
-2010-12-31  Werner Lemberg  <wl@gnu.org>
+2014-03-05  Werner Lemberg  <wl@gnu.org>
 
-       * src/cff/cfftypes.h (CFF_MAX_CID_FONTS): Increase to 64.
-       Problem reported by Tom Bishop <wenlin@wenlin.com>.
+       * builds/unix/configure.raw: Simplify.
 
-2010-12-31  Werner Lemberg  <wl@gnu.org>
+2014-03-05  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-       Improve bzip2 support.
+       Fix a bug in configure in library dependency setting
+       Reported in https://bugs.freedesktop.org/show_bug.cgi?id=75652.
 
-       * include/freetype/ftmoderr.h: Add bzip2.
+       * builds/unix/configure.raw: Use `x"${xxx}" != xno' style.
 
-       * docs/INSTALL.ANY, docs/CHANGES: Updated.
+2014-03-04  Werner Lemberg  <wl@gnu.org>
 
-       * src/pcf/README: Updated.
-       * include/freetype/internal/pcftypes.h: Obsolete, removed.
+       Minor fix for `make devel'.
 
-2010-12-31  Joel Klinghed  <the_jk@yahoo.com>
+       * builds/freetype.mk (INCLUDE_FLAGS) [DEVEL_DIR]: Don't use
+       pkg-config for bzip2 since not all GNU/Linux distributions have
+       `bzip2.pc' (and the header file `bzlib.h' is located in /usr/include
+       normally).
 
-       Add bzip2 compression support to handle *.pcf.bz2 files.
+2014-03-04  Sean McBride  <sean@rogue-research.com>
 
-       * builds/unix/configure.raw: Test for libbz2 library.
+       Fix several clang static analyzer dead store warnings.
 
-       * devel/ftoption.h, include/freetype/config/ftoption.h
-       (FT_CONFIG_OPTION_USE_BZIP2): Define.
-       * include/freetype/config/ftheader.h (FT_BZIP2_H): Define.
+       * src/autofit/afhints.c (af_glyph_hints_reload,
+       af_glyph_hints_align_weak_points): Remove unnecessary assignments.
 
-       * include/freetype/ftbzip2.h: New file.
+       * src/bdf/bdflib.c (bdf_font_load): Ditto.
 
-       * src/bzip2/*: New files.
+       * src/pshinter/pshalgo.c (psh_glyph_compute_extrema,
+       psh_glyph_interpolate_other_points): Ditto.
 
-       * src/pcf/pcf.h: s/gzip_/comp_/.
-       * src/pcf/pcfdrvr.c: Include FT_BZIP2_H.
-       s/gzip_/comp_/.
-       (PCF_Face_Init): Handle bzip2 compressed files.
+       * src/type1/t1load.c (T1_Set_MM_Blend): Ditto.
 
-       * docs/formats.txt, modules.cfg: Updated.
+2014-03-03  Werner Lemberg  <wl@gnu.org>
 
-2010-12-25  Harsha  <mm.harsha@gmail.com>
+       Rewrite library option handling in `configure'.
 
-       Apply Savannah patch #7422.
+       o Introduce `auto' value for `--with-XXX' library options; this is
+         now the default.
 
-       If we encounter a space in a string then the sbit buffer is NULL,
-       height and width are 0s.  So the check in ftc_snode_compare will
-       always pass for spaces (comparision with 255).  Here the comments
-       above the condition are proper but the implementation is not.  When
-       we create an snode I think it is the proper way to initialize the
-       width to 255 and then put a check for being equal to 255 in snode
-       compare function.
+       o First use `pkg-config' for library detection, then fall back to
+         other tests.
 
-       * src/cache/ftcsbits.c (FTC_SNode_New): Initialize sbit widths with
-       value 255.
-       (ftc_snode_compare): Fix condition.
+       * builds/unix/configure.raw (--with-zlib, --with-bzip2, --with-png,
+       --with-harfbuzz): Rewrite.
+       Use new `xxx_reqpriv', `xxx_libpriv', and `xxx_libstaticconf'
+       variables to collect data for `freetype2.pc' and `freetype-config'.
+       (FT2_EXTRA_LIBS): Renamed to ...
+       (ft2_extra_libs): This since it gets no longer substituted.
+       (REQUIRES_PRIVATE, LIBS_PRIVATE, LIBS_CONFIG, LIBSSTATIC_CONFIG):
+       New output variables, replacing `XXX_PKG' and `LIBXXX'.
+       Add notice at the end of `configure' showing the library
+       configuration.
 
-2010-12-13  Werner Lemberg  <wl@gnu.org>
+       * builds/unix/freetype-config.in (--static): New command line
+       option.
+       (libs): Updated.
+       (staticlibs): New variable, to be used if `--static' is given.
+       * docs/freetype-config.1: Document `--static'.
 
-       Fix parameter handling of `FT_Set_Renderer'.
-       Reported by Kirill Tishin <siege@bk.ru>.
+       * builds/unix/freetype2.in, builds/unix/unix-def.in: Updated.
 
-       * src/base/ftobjs.c (FT_Set_Renderer): Increment `parameters'.
+2014-03-01  Werner Lemberg  <wl@gnu.org>
 
-2010-12-09  Werner Lemberg  <wl@gnu.org>
+       Avoid `long long' warnings with older gcc compilers.
+       Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
 
-       [cff] Allow `hlineto' and `vlineto' without arguments.
+       * builds/unix/configure.raw: Don't use gcc's `-pedantic' flag for
+       versions < 4.6.  This is especially needed for Max OS X since this
+       OS runs a gcc variant (or emulation) based on version 4.2.1.
 
-       We simply ignore such instructions.  This is invalid, but it doesn't
-       harm; and indeed, there exist such subsetted fonts in PDFs.
+2014-03-01  Werner Lemberg  <wl@gnu.org>
 
-       Reported by Albert Astals Cid <aacid@kde.org>.
+       * docs/INSTALL.CROSS: Revised and updated.
 
-       * src/cff/cffgload.c (cff_decoder_parse_charstrings)
-       [cff_op_hlineto]: Ignore instruction if there aren't any arguments
-       on the stack.
+2014-03-01  Werner Lemberg  <wl@gnu.org>
 
-2010-11-28  Werner Lemberg  <wl@gnu.org>
+       Make `make clean' remove `freetype2.pc'.
 
-       * Version 2.4.4 released.
-       =========================
+       This is a generated file at build time, not configure time.
 
+       * builds/unix/unix-def.in (DISTCLEAN): Move `freetype2.pc' to ...
+       (CLEAN): This variable.
 
-       Tag sources with `VER-2-4-4'.
+2014-03-01  Werner Lemberg  <wl@gnu.org>
 
-       * docs/CHANGES: Updated.
+       Use pkg-config for detecting libpng and libbz2 also.
 
-       * docs/VERSION.DLL: Update documentation and bump version number to
-       2.4.4
+       * builds/unix/configure.raw (HAVE_PKG): New variable.
+       Search for libbz2 using `pkg-config'; s/BZ2/BZIP2/.
+       Search for libpng using `pkg-config'.
+       Fix definition of `LIBHARFBUZZ' variable.
+       * builds/unix/freetype-config.in ($libs): Updated.
+       * builds/unix/freetype2.in: Add `URL' field.
+       Update `Requires.private' and `Libs.private'.
+       * builds/unix/unix-def.in: Updated.
 
-       * 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.3/2.4.4/, s/243/244/.
+2014-03-01  Werner Lemberg  <wl@gnu.org>
 
-       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
+       Add configure support for HarfBuzz.
 
-       * builds/unix/configure.raw (version_info): Set to 12:2:6.
+       * builds/unix/pkg.m4: New file.
+       * builds/unix/configure.raw: Search for libharfbuzz using
+       `pkg-config'.
+       Add `--without-harfbuzz' option.
+       * builds/unix/freetype-config.in, builds/unix/freetype2.in,
+       builds/unix/unix-def.in (freetype-config, freetype2.pc): Handle
+       HarfBuzz.
 
-2010-11-28  Alexei Podtelezhnikov  <apodtele@gmail.com>
+       * docs/INSTALL.UNIX: Document interdependency of Freetype with
+       HarfBuzz.
 
-       [ftsmooth]: Minor code simplification.
+2014-02-28  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-       * src/smooth/ftgrays (gray_render_cubic): Do only one comparison
-       instead of two.
+       [cff] Math simplifications.
 
-2010-11-26  Johnson Y. Yan  <yinsen_yan@foxitsoftware.com>
+       * src/cf2blues.c (cf2_blues_init): Use `FT_MulDiv'.
+       * src/cf2ft.c (cf2_getScaleAndHintFlag): Use simple division.
 
-       [truetype] Better multi-threading support.
+2014-02-28  Dave Arnold  <darnold@adobe.com>
 
-       * src/truetype/ttinterp.c (TT_Load_Context): Reset glyph zone
-       references.
+       [cff] Fix Savannah bug #41697, part 2.
 
-2010-11-23  John Tytgat  <John.Tytgat@esko.com>
+       * src/cff/cf2ft.c (cf2_initLocalRegionBuffer,
+       cf2_initGlobalRegionBuffer): It is possible for a charstring to call
+       a subroutine if no subroutines exist.  This is an error but should
+       not trigger an assert.  Split the assert to account for this.
 
-       * src/psaux/t1decode.c (t1_decoder_parse_charstring): Expand
-       start_point, check_points, add_point, add_point1, close_contour
-       macros.
-       Remove add_contour macro.
-       Return error code from t1_builder_start_point and
-       t1_builder_check_points when there was one (instead of returning 0).
+2014-02-28  Dave Arnold  <darnold@adobe.com>
 
-2010-11-22  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       [cff] Fix Savannah bug #41697, part 1.
 
-       [truetype] Identify the tricky fonts by cvt/fpgm/prep checksums.
-       Some Latin TrueType fonts are still expected to be unhinted.
-       Fix Savannah bug #31645.
+       * src/cff/cf2hints.c (cf2_hintmap_build): Return when `hintMask' is
+       invalid.  In this case, it is not safe to use the length of
+       `hStemHintArray'; the exception has already been recorded in
+       `hintMask'.
 
-       * src/truetype/ttobjs.c (tt_check_trickyness): Divided to...
-       (tt_check_trickyness_family): this checking family name, and
-       (tt_check_trickyness_sfnt_ids): this checking cvt/fpgm/prep.
-       (tt_get_sfnt_checksum): Function to retrieve the sfnt checksum
-       for specified subtable even if cleared by lazy PDF generators.
-       (tt_synth_sfnt_checksum): Function to calculate the checksum.
+2014-02-26  Werner Lemberg  <wl@gnu.org>
 
-2010-11-18  Werner Lemberg  <wl@gnu.org>
+       [sfnt] Fix Savannah bug #41696.
 
-       [truetype] Fix `loca' handling for inconsistent number of glyphs.
-       Reported by Johnson Y. Yan <yinsen_yan@foxitsoftware.com>.
+       * src/sfnt/ttcmap.c (tt_cmap0_validate, tt_cmap2_validate,
+       tt_cmap4_validate, tt_cmap14_validate): Fix limit tests.
 
-       * src/truetype/ttpload.c (tt_face_load_loca): While sanitizing,
-       handle case where `loca' is the last table in the font.
+2014-02-26  Werner Lemberg  <wl@gnu.org>
 
-2010-11-18  Werner Lemberg  <wl@gnu.org>
+       [winfnt] Fix Savannah bug #41694.
 
-       [sfnt] Ignore all errors while loading `OS/2' table.
-       Suggested by Johnson Y. Yan <yinsen_yan@foxitsoftware.com>.
+       * src/winfonts/winfnt.c (FNT_Load_Glyph): Check glyph offset.
 
-       * src/sfnt/sfobjs.c (sfnt_load_face): Do it.
+2014-02-26  Werner Lemberg  <wl@gnu.org>
 
-2010-11-18  Johnson Y. Yan  <yinsen_yan@foxitsoftware.com>
+       [cff] Fix Savannah bug #41693.
 
-       [type1] Fix matrix normalization.
+       * src/cff/cffload.c (CFF_Load_FD_Select): Reject empty array.
 
-       * src/type1/t1load.c (parse_font_matrix): Handle sign of scaling
-       factor.
+2014-02-26  Werner Lemberg  <wl@gnu.org>
 
-2010-11-18  Werner Lemberg  <wl@gnu.org>
+       [bdf] Fix Savannah bug #41692.
 
-       [type1] Improve guard against malformed data.
-       Based on a patch submitted by Johnson Y. Yan
-       <yinsen_yan@foxitsoftware.com>
+       bdflib puts data from the input stream into a buffer in chunks of
+       1024 bytes.  The data itself gets then parsed line by line, simply
+       increasing the current pointer into the buffer; if the search for
+       the final newline character exceeds the buffer size, more data gets
+       read.
 
-       * src/type1/t1load.c (read_binary_data): Check `size'.
+       However, in case the current line's end is very near to the buffer
+       end, and the keyword to compare with is longer than the current
+       line's length, an out-of-bounds read might happen since `memcmp'
+       doesn't stop properly at the string end.
 
-2010-11-17  Werner Lemberg  <wl@gnu.org>
+       * src/bdf/bdflib.c: s/ft_memcmp/ft_strncmp/ to make comparisons
+       stop at string ends.
 
-       [sfnt] While tracing, output table checksums also.
+2014-02-17  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-       * src/sfnt/ttload.c (tt_face_load_font_dir): Do it.
+       [autofit] Fix `make multi' compilation.
 
-2010-11-04  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/hbshim.c: Include `afglobal.h' and `aftypes.h'.
 
-       [UVS] Fix `find_variant_selector_charmap', Savannah bug #31545.
+2014-02-19  Werner Lemberg  <wl@gnu.org>
+           Simon Bünzli  <zeniko@gmail.com>
 
-       Since 2010-07-04, `find_variant_selector_charmap' returns
-       the first cmap subtable always under rogue-compatible
-       configuration, it causes NULL pointer dereference and
-       make UVS-related functions crashed.
+       Fix Savannah bug #32902.
 
-       * src/base/ftobjs.c (Fix find_variant_selector_charmap):
-       Returns UVS cmap correctly.
+       Patch taken from
 
-2010-11-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
+         https://code.google.com/p/sumatrapdf/source/browse/trunk/ext/_patches/freetype2.patch?spec=svn8620&r=8620#87
 
-       [ftsmooth] Improve rendering.
+       with slight modifications.
 
-       * src/smooth/ftsmooth.c (gray_render_conic): Since version 2.4.3,
-       cubic deviations have been estimated _after_ UPSCALE, whereas
-       conic ones have been evaluated _before_ UPSCALE, which produces
-       inferior rendering results.  Fix this.
-       Partially undo change from 2010-10-15 by using ONE_PIXEL/4; this has
-       been tested with demo images sent to the mailing list.  See
+       * src/type1/t1parse.c (T1_Get_Private_Dict): Add heuristic test to
+       handle fonts that incorrectly use \r at the beginning of an eexec
+       block.
 
-         http://lists.gnu.org/archive/html/freetype-devel/2010-10/msg00055.html
+2014-02-19  Simon Bünzli  <zeniko@gmail.com>
 
-       and later mails in this thread.
+       Fix Savannah bug #41590.
 
-2010-10-28  Werner Lemberg  <wl@gnu.org>
+       * src/type1/t1load.c (parse_encoding): Protect against invalid
+       number.
 
-       [ftraster] Minor fixes.
+2014-02-12  Dave Arnold  <darnold@adobe.com>
 
-       Reported by Tom Bishop <wenlin@wenlin.com>.
+       [cff] Optimize by using `FT_MulDiv'.
+       Suggested by Alexei.
 
-       * src/raster/ftraster.c (ULong): Remove unused typedef.
-       (TWorker): Remove unused variable `precision_mask'.
+       * src/cff/cf2font.c (cf2_computeDarkening): Do it.
 
-2010-10-28  Werner Lemberg  <wl@gnu.org>
+2014-02-12  Werner Lemberg  <wl@gnu.org>
 
-       [ftraster] Fix rendering.
+       Fix Savannah bug #41465.
 
-       Problem reported by Tom Bishop <wenlin@wenlin.com>; see
-       thread starting with
+       * builds/unix/unix-def.in (CLEAN): Add `freetype-config'.
+       (DISTCLEAN): Remove `freetype-config'.
 
-         http://lists.gnu.org/archive/html/freetype/2010-10/msg00049.html
+2014-02-08  Sean McBride  <sean@rogue-research.com>
 
-       * src/raster/ftraster.c (Line_Up): Replace FMulDiv with SMulDiv
-       since the involved multiplication exceeds 32 bits.
+       Fix clang static analyzer and compiler warnings.
 
-2010-10-25  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/afhints.c (af_glyph_hints_align_weak_points),
+       src/autofit/afloader (af_loader_load_g) <FT_GLYPH_FORMAT_COMPOSITE>,
+       src/base/ftcalc.c (FT_MSB), src/base/ftoutln.c
+       (FT_Outline_Decompose), src/bdf/bdfdrivr.c (bdf_interpret_style),
+       src/cff/cffparse.c (cff_parse_integer), src/cid/cidparse.c
+       (cid_parser_new), src/pfr/pfrload.c (pfr_phy_font_load),
+       src/raster/ftraster.c (Decompose_Curve), src/sfnt/sfdriver.c
+       (sfnt_get_ps_name), src/sfnt/ttcmap.c (tt_cmap12_next,
+       tt_cmap13_next), src/smooth/ftgrays.c (gray_hline): Remove dead
+       code.
 
-       Revert a change of `_idx' type in `FTC_CACHE_LOOKUP_CMP'.
+       * src/autofit/afmodule.c (af_property_get_face_globals,
+       af_property_set, af_property_get), src/base/ftbitmap.c
+       (ft_gray_for_premultiplied_srgb_bgra): Make functions static.
 
-       * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Revert
-       the type of `_idx' from FT_PtrDist (by previous change)
-       to original FT_UFast, to match with FT_CacheRec.
+       * src/base/ftobjs.c (ft_remove_renderer): Protect against
+       library == NULL.
+       (ft_property_do): Make function static.
 
-2010-10-24  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/base/ftrfork.c: Include `ftbase.h'.
 
-       [cache] Change the hash types to FT_PtrDist.
+       * src/sfnt/ttsbit.c (tt_face_load_sbix_image)
+       [!FT_CONFIG_OPTION_USE_PNG], src/type1/t1gload.c
+       (T1_Compute_Max_Advance): Avoid compiler warning.
 
-       On LLP64 platforms (e.g. Win64), FT_ULong (32-bit)
-       variables are inappropriate to calculate hash values
-       from the memory address (64-bit).  The hash variables
-       are extended from FT_ULong to FT_PtrDist and new
-       hashing macro functions are introduced.  The hash
-       values on 16-bit memory platforms are changed, but
-       ILP32 and LP64 are not changed.  The hash value in
-       the cache subsystem is not reverted to the memory
-       address, so using signed type FT_PtrDist is safe.
+       * src/truetype/ttinterp.c (TT_New_Context): Reduce scope of
+       variable.
 
-       * src/cache/ftccache.h (_FTC_FACE_ID_HASH): New hash
-       function to replace `FTC_FACE_ID_HASH' for portability.
-       * src/cache/ftcmanag.h (FTC_SCALER_HASH): Replace
-       `FTC_FACE_ID_HASH' by `_FTC_FACE_ID_HASH'.
-       * src/cache/ftccmap.c (FTC_CMAP_HASH): Ditto.
+2014-02-08  Werner Lemberg  <wl@gnu.org>
 
-       * src/cache/ftccache.h (FTC_NodeRec): The type of the
-       member `hash' is changed from FT_UInt32 to FT_PtrDist.
+       Fix Windows build directories.
 
-       * src/cache/ftccache.h (FTC_Cache_Lookup): The type of the
-       argument `hash' is changed from FT_UInt32 to FT_PtrDist.
-       (FTC_Cache_NewNode): Ditto.
-       * src/cache/ftccache.c (ftc_cache_add): Ditto.
-       (FTC_Cache_Lookup): Ditto.  (FTC_Cache_NewNode): Ditto.
-       * src/cache/ftcglyph.h (FTC_GCache_Lookup): Ditto.
-       * src/cache/ftcglyph.c (FTC_GCache_Lookup): Ditto.
+       The build target is now `windows' instead of `win32'.
 
-       * src/cache/ftcbasic.c (FTC_ImageCache_Lookup): The type
-       of the internal variable `hash' is changed to FT_PtrDist
-       from FT_UInt32.  (FTC_ImageCache_LookupScaler): Ditto.
-       (FTC_SBitCache_Lookup): Ditto.
-       (FTC_SBitCache_LookupScaler): Ditto.
-       * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Ditto.
-       * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Ditto.
-       Also the type of the internal variable `_idx' is changed to
-       FT_PtrDist from FT_UFast for better pointer calculation.
+       Problem reported by Nickolas George <darknova.clan@gmail.com>.
 
-2010-10-24  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * builds/modules.mk: Don't use `win32' and `win16' (!) but
+       `windows'.
 
-       [cache] Hide internal macros incompatible with LLP64.
+       * builds/windows/detect.mk, builds/windows/win32-def.mk:
+       s/win32/windows/.
 
-       `FT_POINTER_TO_ULONG', `FTC_FACE_ID_HASH', and
-       `FTC_IMAGE_TYPE_HASH' are enclosed by
-       FT_CONFIG_OPTION_OLD_INTERNALS and hidden from
-       normal clients.
+2014-02-08  Eugen Sawin  <esawin@mozilla.com>
 
-       For the history of these macros, see the investigation:
-       http://lists.gnu.org/archive/html/freetype/2010-10/msg00022.html
+       Fix Savannah bug #41507.
 
-2010-10-24  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap)
+       [!FT_CONFIG_OPTION_USE_PNG] <17, 17, 19>: Fix error handling.
 
-       Change the type of `FT_MEM_VAL' from FT_ULong to FT_PtrDist.
+2014-02-08  Dave Arnold  <darnold@adobe.com>
 
-       On LLP64 platforms (e.g. Win64), unsigned long (32-bit)
-       cannot cover the memory address (64-bit).  `FT_MEM_VAL' is
-       used for hashing only and not dereferred, so using signed
-       type FT_PtrDist is safe.
+       [cff] Fix minor performance bug.
 
-       * src/base/ftdbgmem.c (FT_MEM_VAL): Change the type of the
-       return value from FT_ULong to FT_PtrDist.
-       (ft_mem_table_resize): The type of hash is changed to
-       FT_PtrDist.  (ft_mem_table_get_nodep): Ditto.
+       * src/cff/cf2font.c (cf2_font_setup): Darkening amount and blue zone
+       calculations are now cached and not recomputed on each glyph.
 
-2010-10-24  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-02-05  Werner Lemberg  <wl@gnu.org>
 
-       Replace "%lx" for memory address by "%p", LLP64 platforms.
+       Fix problems with perl 5.8.8 as distributed with current MinGW.
 
-       On LLP64 platforms (e.g. Win64), long (32-bit) cannot cover
-       the memory address (64-bit).  Also the casts from the pointer
-       type to long int should be removed to preserve the address
-       correctly.
+       * src/tools/afblue.pl: Work-around for Perl bug #63402.
+       (string_re): Avoid `possessive quantifiers', which have been
+       introduced in Perl version 5.10.
 
-       * src/raster/ftraster.c (New_Profile): Replace "%lx" by "%p".
-       (End_Profile) Ditto.
-       * src/truetype/ttinterp.c (Init_Context): Ditto.
+2014-02-04  Werner Lemberg  <wl@gnu.org>
 
-2010-10-15  Alexei Podtelezhnikov  <apodtele@gmail.com>
+       Fix compilation with MinGW.
 
-       Fix thinko in spline flattening.
+       Right now, compilation out of the box with latest MinGW is broken
+       due to bugs in header files of mingwrt 4.0.3 in strict ANSI mode,
+       cf.
 
-       FT_MAX_CURVE_DEVIATION is dependent on the value of ONE_PIXEL.
+         https://sourceforge.net/p/mingw/bugs/2024/
+         https://sourceforge.net/p/mingw/bugs/2046/
 
-       * src/smooth/ftgrays.c (FT_MAX_CURVE_DEVIATION): Remove it and
-       replace it everywhere with ONE_PIXEL/8.
+       * builds/unix/configure.raw: Don't set `-ansi' flag for MinGW.
 
-2010-10-13  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-02-04  Werner Lemberg  <wl@gnu.org>
 
-       [raccess] Skip unrequired resource access rules by Darwin VFS.
+       [autofit] Minor fix.
 
-       When a resource fork access rule by Darwin VFS could open the
-       resource fork but no font is found in it, the rest of rules
-       by Darwin VFS are skipped.  It reduces the warnings of the
-       deprecated resource fork access method by recent Darwin kernel.
-       Fix MacPorts ticket #18859:
-               http://trac.macports.org/ticket/18859
+       * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
+       src/autofit/aflatin.c (af_latin_metrics_init_widths): Fix handling
+       of alternative standard characters.
+       This also fixes a compilation warning in non-debug mode.
 
-       * src/base/ftobjs.c (load_face_in_embedded_rfork):
-       When `FT_Stream_New' returns FT_Err_Cannot_Open_Stream, it
-       means that the file is possible to be `fopen'-ed but zero-sized.
-       Also there is a case that the resource fork is not zero-sized,
-       but no supported font exists in it.  If a rule by Darwin VFS
-       falls into such cases, there is no need to try other Darwin VFS
-       rules anymore.  Such cases are marked by vfs_rfork_has_no_font.
-       If it is TRUE, the Darwin VFS rules are skipped.
+2014-02-03  Werner Lemberg  <wl@gnu.org>
 
-2010-10-13  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       [cff] Fix Savannah bug #41363.
 
-       [raccess] Grouping resource access rules based on Darwin VFS.
+       * src/cff/cf2ft.c (cf2_checkTransform): Convert assertion into
+       parameter check.
+       (cf2_decoder_parse_charstrings): Call `cf2_checkTransform' only if
+       we are scaling the outline.
+       (cf2_getPpemY): Remove problematic assertion.
 
-       MacOS X/Darwin kernel supports a few tricky methods to access
-       a resource fork via ANSI C or POSIX interface.  Current resource
-       fork accessor tries all possible methods to support all kernels.
-       But if a method could open a resource fork but no font is found,
-       there is no need to try other methods older than tested method.
-       To determine whether the rule index is for Darwin VFS, a local
-       function `ftrfork.c::raccess_rule_by_darwin_vfs' is introduced.
-       To use this function in ftobjs.c etc but it should be inlined,
-       it is exposed by ftbase.h.
+2014-01-26  Werner Lemberg  <wl@gnu.org>
 
-       * src/base/ftrfork.c (FT_RFork_Rule): New enum type to identify
-       the rules to access the resource fork.
-       (raccess_guess_rec): New structure to bind the rule function and
-       rule enum type.
-       (FT_Raccess_Guess): The list of the rule functions is replaced by
-       (raccess_guess_table): This.  This is exposed to be used by other
-       intra module functions.
-       (raccess_rule_by_darwin_vfs): A function to return a boolean
-       if the rule specified by the rule index is based on Darwin VFS.
+       [autofit] Introduce two more slots for standard characters.
 
-2010-10-13  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       This is useful for OpenType features like `c2sc' (caps to small
+       caps) that don't have lowercase letters by definition, or other
+       features that mainly operate on numerals.
 
-       Prevent to open a FT_Stream for zero-sized file on non-Unix.
+       * src/autofit/afscript.h: Add more standard characters.
 
-       builds/unix/ftsystem.c prevents to open an useless stream from
-       zero-sized file and returns FT_Err_Cannot_Open_Stream, but the
-       stream drivers for ANSI C, Amiga and VMS return useless streams.
-       For cross-platform consistency, all stream drivers should act
-       same.
+       * src/autofit/aftypes.h: Update use of `SCRIPT' macro.
+       (AF_ScriptClassRec): Add members to hold two more standard
+       characters.
+       (AF_DEFINE_SCRIPT_CLASS): Updated.
 
-       * src/base/ftsystem.c (FT_Stream_Open): If the size of the opened
-       file is zero, FT_Err_Cannot_Open_Stream is returned.
-       * builds/amiga/src/base/ftsystem.c (FT_Stream_Open): Ditto.
-       * src/vms/ftsystem.c (FT_Stream_Open): Ditto.
+       * src/autofit/afglobal.c, src/autofit/afglobal.h,
+       * src/autofit/afpic.c, src/autofit/afranges.h, src/autofit/hbshim.c:
+       Update use of `SCRIPT' macro.
 
-2010-10-12  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
+       src/autofit/aflatin.c (af_latin_metrics_init_widths): Scan two more
+       standard characters.
 
-       Fix Savannah bug #31310.
+2014-01-24  Werner Lemberg  <wl@gnu.org>
 
-       * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Protect against
-       invalid `runcnt' values.
+       Fix Savannah bug #41320.
 
-2010-10-08  Chris Liddell  <chris.liddell@artifex.com>
+       * src/autofit/aflatin.c (af_latin_metrics_init_blues)
+       <AF_LATIN_IS_LONG_BLUE>: Avoid negative index of `last'.
 
-       Fix Savannah bug #31275.
+2014-01-23  Werner Lemberg  <wl@gnu.org>
 
-       * src/sfnt/ttpost.c: Include FT_INTERNAL_DEBUG_H.
+       Fix Savannah bug #41310.
 
-2010-10-06  Werner Lemberg  <wl@gnu.org>
+       * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap) <glyph_format==5>:
+       Don't check metrics, which this format doesn't have.
+       This is another correction to the commit from 2013-11-21.
 
-       [truetype] Improve error handling of `SHZ' bytecode instruction.
-       Problem reported by Chris Evans <scarybeasts@gmail.com>.
+2014-01-23  Werner Lemberg  <wl@gnu.org>
 
-       * src/truetype/ttinterp.c (Ins_SHZ): Check `last_point'.
+       Fix Savannah bug #41309.
 
-2010-10-05  Werner Lemberg  <wl@gnu.org>
+       * src/type1/t1load.c (t1_parse_font_matrix): Properly handle result
+       of `T1_ToFixedArray'.
 
-       Fix Savannah bug #31253.
-       Patch submitted by an anonymous reporter.
+       * src/cid/cidload.c (cid_parse_font_matrix): Synchronize with
+       `t1_parse_font_matrix'.
 
-       * configure: Use `awk' instead of `sed' to manipulate output of `ls
-       -id'.
+       * src/type42/t42parse.c (t42_parse_font_matrix): Synchronize with
+       `t1_parse_font_matrix'.
+       (t42_parse_encoding): Synchronize with `t1_parse_encoding'.
 
-2010-10-03  Werner Lemberg  <wl@gnu.org>
+       * src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_BBOX>,
+       <T1_FIELD_TYPE_MMOX>: Properly handle result of `ps_tofixedarray'.
 
-       * Version 2.4.3 released.
-       =========================
+2014-01-22  Werner Lemberg  <wl@gnu.org>
 
+       * src/autofit/hbshim.c (af_get_coverage): Fix memory leaks.
 
-       Tag sources with `VER-2-4-3'.
+2014-01-16  Werner Lemberg  <wl@gnu.org>
 
-       * docs/CHANGES: Updated.
+       [autofit] Improve tracing of style coverages.
 
-       * docs/VERSION.DLL: Update documentation and bump version number to
-       2.4.3
+       * include/internal/fttrace.h: Add `afglobal' for tracing style
+       coverages.
 
-       * 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.2/2.4.3/, s/242/243/.
+       * src/autofit/afglobal.c: Include FT_INTERNAL_DEBUG_H.
+       (FT_COMPONENT): Define.
+       (af_face_globals_compute_style_coverage): Trace `gstyles' array
+       data.
 
-       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
+2014-01-09  Werner Lemberg  <wl@gnu.org>
 
-       * builds/unix/configure.raw (version_info): Set to 12:1:6.
+       Fix Savannah bug #41158.
 
-2010-10-03  Werner Lemberg  <wl@gnu.org>
+       * builds/unix/install.mk (install): Create man page directory.
 
-       Avoid `configure' issues with symbolic links.
-       Based on a patch from Alexander Stohr <Alexander.Stohr@gmx.de>.
+2014-01-08  Chongyu Zhu  <lembacon@gmail.com>
 
-       * configure: Compare directories using `ls -id'.
-       Check existence of `reference' subdirectory before creating it.
+       [arm] Fix Savannah bug #41138, part 2.
 
-2010-10-02  Werner Lemberg  <wl@gnu.org>
+       * builds/unix/ftconfig.in (FT_MulFix_arm), include/config/ftconfig.h
+       (FT_MulFix_arm), src/truetype/ttinterp.c (TT_MulFix14_arm): Fix
+       preprocessor conditionals for `add.w'.
 
-       Fix Savannah bug #31088 (sort of).
+2014-01-08  Werner Lemberg  <wl@gnu.org>
 
-       * src/sfnt/ttload.c (tt_face_load_maxp): Always allocate at least 64
-       function entries.
+       [autofit] Fix Savannah bug #41138, part 1.
 
-2010-10-02  Werner Lemberg  <wl@gnu.org>
+       * src/tools/afblue.pl <Handling #endif>: Produce correct auxiliary
+       enumeration names for generated `#else'.
 
-       [smooth] Fix splitting of cubics for negative values.
+       * src/autofit/afblue.h: Regenerated.
 
-       Reported by Róbert Márki <gsmiko@gmail.com>; see
-       http://lists.gnu.org/archive/html/freetype/2010-09/msg00019.html.
+2014-01-06  Werner Lemberg  <wl@gnu.org>
 
-       * src/smooth/ftgrays.c (gray_render_cubic): Fix thinko.
+       Add manual page for `freetype-config'.
+       Contributed by Nis Martensen <nis.martensen@web.de>.
 
-2010-10-01  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * docs/freetype-config.1: New file.
 
-       Fix Savannah bug #31040.
+       * builds/unix/unix-def.in (mandir): Define.
+       * builds/unix/install.mk (install, uninstall): Handle manpage.
 
-       * src/truetype/ttinterp.c (free_buffer_in_size): Remove.
-       (TT_RunIns): Updated.
+2014-01-05  Werner Lemberg  <wl@gnu.org>
 
-2010-09-20  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       [autofit] Minor fixes for `afblue.pl'.
 
-       [sfnt] Make error message filling NULL names less verbose.
+       * src/tools/afblue.pl (aux_name): Don't use `reverse'.
+       <Handling #endif>: Use proper indentation for generated `#else'.
 
-       * src/sfnt/ttpost.c (load_format_20): Showing 1 summary message
-       when we fill `post' names by NULL, instead of per-entry message.
+       * src/autofit/afblue.h: Regenerated.
 
-2010-09-20  Graham Asher  <graham.asher@btinternet.com>
-           David Bevan  <david.bevan@pb.com>
+2014-01-04  Werner Lemberg  <wl@gnu.org>
 
-       [smooth] Fix and improve spline flattening.
+       [autofit] Fix Indic scripts.
 
-       This fixes the flattening of cubic, S-shaped curves and speeds up
-       the handling of both the conic and cubic arcs.
+       Split the single, incorrect Indic entry into separate scripts so
+       that the covered ranges are the same: Bengali, Devanagari, Gujarati,
+       Gurmukhi, Kannada, Limbu, Malayalam, Oriya, Sinhala, Sundanese,
+       Syloti Nagri, Tamil, Telugu, and Tibetan.  At the same time, remove
+       entries for Meetai Mayak and Sharada – the Unicode ranges were
+       incorrect (and nobody has complained about that), fonts are scarce
+       for those scripts, and the Indic auto-hinter support is rudimentary
+       anyways.
 
-       See the discussions on the freetype-devel mailing list in late
-       August and September 2010 for details.
+       * src/autofit/afscript.h: Updated, using AF_CONFIG_OPTION_INDIC and
+       AF_CONFIG_OPTION_CJK.
 
-       * src/smooth/ftgrays.c (FT_MAX_CURVE_DEVIATION): New macro.
-       (TWorker): Remove `conic_level' and `cubic_level' elements.
-       (gray_render_conic): Simplify algorithm.
-       (gray_render_cubic): New algorithm; details are given in the code
-       comments.
-       (gray_convert_glyph): Remove heuristics.
+       * src/autofit/afstyles.h (STYLE_DEFAULT_INDIC): New auxiliary macro.
+       Use it, together with AF_CONFIG_OPTION_INDIC and
+       AF_CONFIG_OPTION_CJK, to update.
 
-2010-09-19  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afranges.c [AF_CONFIG_OPTION_INDIC]: Updated.
+       [!AF_CONFIG_OPTION_INDIC, !AF_CONFIG_OPTION_CJK]: Removed.
+       Sort entries by tags.
 
-       Minor fixes.
+2014-01-03  Werner Lemberg  <wl@gnu.org>
 
-       * src/cff/cffload.c (cff_charset_compute_cids): `charset->sids[i]'
-       is `FT_UShort'.
-       (cff_index_access_element): Don't use additions in comparison.
-       * src/sfnt/ttpost.c (load_format_20): Make `post_limit' of type
-       `FT_Long'.
-       Don't use additions in comparison.
-       Improve tracing messages.
-       (load_format_25, load_post_names): Make `post_limit' of type
-       `FT_Long'.
+       [autofit] Thinko.
 
-2010-09-19  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/hbshim.c (af_get_char_index): Similar to
+       `af_get_coverage', reject glyphs which are not substituted.
 
-       [cff] Truncate the element length at the end of the stream.
-       See Savannah bug #30975.
+2014-01-03  Werner Lemberg  <wl@gnu.org>
 
-       * src/cff/cffload.c (cff_index_access_element): `off2', the offset
-       to the next element is truncated at the end of the stream to prevent
-       invalid I/O.  As `off1', the offset to the requested element has
-       been checked by `FT_STREAM_SEEK', `off2' should be checked
-       similarly.
+       [autofit] Fix handling of default coverages.
 
-2010-09-19  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       With this commit, the implementation of coverage handling is
+       completed.
 
-       [cff] Ignore CID > 0xFFFFU.
-       See Savannah bug #30975.
+       * src/autofit/hbshim.c (af_get_coverage): Exit early if nothing to
+       do.
+       Reject coverages which don't contain appropriate glyphs for blue
+       zones.
 
-       * src/cff/cffload.c (cff_charset_compute_cids): Ignore CID if
-       greater than 0xFFFFU.  CFF font spec does not mention maximum CID in
-       the font, but PostScript and PDF spec define that maximum CID is
-       0xFFFFU.
+2014-01-03  Werner Lemberg  <wl@gnu.org>
 
-2010-09-19  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       [autofit] Fix handling of default coverages.
 
-       [cff] Make trace message in` cff_charset_load' verbose.
-       See Savannah bug #30975.
+       * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
+       First handle non-default coverages, then the default coverage of the
+       default script, and finally the other default coverages.
 
-       * src/cff/cffload.c (cff_charset_load): Report the original `nleft'
-       and truncated `nleft'.
+2014-01-03  Werner Lemberg  <wl@gnu.org>
 
-2010-09-19  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       [autofit] Fix scaling of HarfBuzz shaping.
 
-       [cff] Correct `max_cid' from CID array length to max CID.
-       See Savannah bug #30975.
+       * src/autofit/hbshim.c (af_get_char_index): Scale to units per EM.
 
-       * src/cff/cffload.c (cff_charset_compute_cids): Don't increment
-       max_cid after detecting max CID.  The array CFF_Charset->cids is
-       allocated by max_cid + 1.
-       (cff_charset_cid_to_gindex): Permit CID is less than or equal to
-       CFF_Charset->max_cid.
-       * src/cff/cffobjs.c (cff_face_init): FT_Face->num_glyphs is
-       calculated as CFF_Charset->max_cid + 1.
+2014-01-03  Werner Lemberg  <wl@gnu.org>
 
-2010-09-19  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       [autofit] Better ftgrid support.
 
-       [truetype] Sanitize the broken offsets in `loca'.
-       See Savannah bug #31040.
+       * src/autofit/afhints.c (af_glyph_hints_get_segment_offset): Add
+       parameters `is_blue' and `blue_offset'.
 
-       * src/truetype/ttpload.c (tt_face_get_location): If `pos1', the
-       offset to the requested entry in `glyf' exceeds the end of the
-       table, return offset=0, length=0.  If `pos2', the offset to the next
-       entry in `glyf' exceeds the end of the table, truncate the entry
-       length at the end of `glyf' table.
+2014-01-01  Werner Lemberg  <wl@gnu.org>
 
-2010-09-19  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       [autofit] Remove some styles.
 
-       [sfnt] Prevent overrunning in `post' table parser.
-       See Savannah bug #31040.
+       * src/autofit/afcover.h: Remove coverages for alternative fractions,
+       denominators, numerators, and fractions.
 
-       * src/sfnt/ttpost.c (load_post_names): Get the length of `post'
-       table and pass the limit of `post' table to `load_format_20' and
-       `load_format_25'.
-       (load_format_20): Stop the parsing when we reached at the limit of
-       `post' table.  If more glyph names are required, they are filled by
-       NULL names.
+       * src/autofit/afstyles.h (META_STYLE_LATIN): Updated.
 
-2010-09-17  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2014-01-01  Werner Lemberg  <wl@gnu.org>
 
-       [truetype] Don't duplicate size->twilight structure to be freed.
-       See Savannah bug #31040 for detail.
+       [autofit] Add more styles.
 
-       * src/truetype/ttinterp.c (free_buffer_in_size): Don't duplicate
-       FT_GlyphZoneRec size->twilight to be freed.  If duplicated,
-       `FT_FREE' erases the duplicated pointers only and leave original
-       pointers.  They can cause the double-free crash when the burst
-       errors occur in TrueType interpreter and `free_buffer_in_size' is
-       invoked repeatedly.
+       * src/autofit/afstyles.h (STYLE_LATIN, META_STYLE_LATIN): New
+       auxiliary macros; use them to define styles for Cyrillic, Greek, and
+       Latin.
 
-2010-09-15  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afcover.h: Remove coverage for oldstyle figures.
+       Since those digits are used in combination with ordinary letters, it
+       makes no sense to handle them separately.
 
-       Make bytecode debugging with FontForge work again.
+       * src/autofit/afglobal.c (af_face_globals_get_metrics): Don't limit
+       `options' parameter to 4 bits.
 
-       * src/truetype/ttinterp.c (TT_RunIns): Don't call
-       `free_buffer_in_size' in case of error if a debugger is active.
+2014-01-01  Werner Lemberg  <wl@gnu.org>
 
-2010-09-14  Werner Lemberg  <wl@gnu.org>
+       [autofit] Fix style assignments to glyphs.
 
-       Improve tracing messages.
+       * src/autofit/hbshim.c (af_get_coverage)
+       [FT_CONFIG_OPTION_USE_HARFBUZZ]: Scan GPOS coverage of features also
+       so that we can skip glyphs that have both GSUB and GPOS data.
 
-       * src/truetype/ttinterp.c (TT_RunIns): Improve wording of tracing
-       message.
-       * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): Add
-       tracing message.
-       * src/truetype/ttgload.c (tt_loader_init): Add tracing message.
-       * src/cache/ftcsbits.c (ftc_snode_load): Emit tracing message if
-       glyph doesn't fit into a small bitmap container.
+2014-01-01  Werner Lemberg  <wl@gnu.org>
 
-2010-09-13  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/hbshim.c: s/{lookups,glyphs}/gsub_{lookups,glyphs}/.
 
-       Fix minor issues reported by <muktha.narayan@wipro.com>.
+2014-01-01  Werner Lemberg  <wl@gnu.org>
 
-       * src/autofit/aflatin.c (af_latin_compute_stem_width): Remove
-       redundant conditional check.
-       * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Ditto.
-       * src/cff/cffload.c (cff_encoding_load): Remove conditional check
-       which always evaluates to `true'.
-       * src/pshinter/pshalgo.c (ps_glyph_interpolate_strong_points):
-       Ditto.
-       * src/truetype/ttinterp.c (Ins_IUP): Ditto.
-       * src/cid/cidgload.c (cid_slot_load_glyph): Don't check for NULL if
-       value is already dereferenced.
-       * src/winfonts/winfnt.c (FNT_Load_Glyph): Fix check of `face'.
+       [autofit] Implement and use `af_get_char_index' with HarfBuzz.
 
-2010-08-31  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/hbshim.c (COVERAGE) [FT_CONFIG_OPTION_USE_HARFBUZZ]:
+       Redefine to construct HarfBuzz features.
+       (af_get_char_index) [FT_CONFIG_OPTION_USE_HARFBUZZ]: Rewritten.
 
-       Ignore the environmental setting of LIBTOOL.
-       Patch is suggested by Adrian Bunk, to prevent unexpected
-       reflection of environmental LIBTOOL.  See:
-       http://savannah.nongnu.org/patch/?7290
+       * src/autofit/aflatin.c (af_latin_metrics_init_blues): Use
+       `y_offset' to adjust `best_y'.
 
-       * builds/unix/unix-cc.in: LIBTOOL is unconditionally set to
-       $(FT_LIBTOOL_DIR)/libtool.  FT_LIBTOOL_DIR is set to $(BUILD_DIR)
-       by default.
-       * configure: When configured for the building out of source tee,
-       FT_LIBTOOL_DIR is set to $(OBJ_DIR).
+2013-12-31  Werner Lemberg  <wl@gnu.org>
 
-2010-08-31  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       [autofit] s/AF_STYLE_...._DEFAULT/AF_STYLE_...._DFLT/i.
 
-       [truetype] Decrease the trace level catching the interpreter error.
+2013-12-31  Werner Lemberg  <wl@gnu.org>
 
-       * src/truetype/ttinterp.c (TT_RunIns): Decrease the trace level
-       showing the error when the interpreter returns with an error,
-       from` FT_TRACE7' to `FT_TRACE1'.
+       [autofit] Fix interface of `af_get_char_index'.
 
-2010-08-30  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/hbshim.c (af_get_char_index): Return error value.
+       Add argument for y offset (to be used in a yet-to-come patch).
 
-       [truetype] Prevent bytecode reuse after the interpretation error.
+       * src/autofit/hbshim.h, src/autofit/afcjk.c,
+       src/autofit/aflatin.c: Updated.
 
-       * src/truetype/ttinterp.c (free_buffer_in_size): New function to
-       free the buffer allocated during the interpretation of this glyph.
-       (TT_RunIns): Unset FT_Face->size->{cvt_ready,bytecode_ready} if
-       an error occurs in the bytecode interpretation.  The interpretation
-       of invalid bytecode may break the function definitions and referring
-       them in later interpretation is danger.  By unsetting these flags,
-       `fpgm' and `prep' tables are executed again in next interpretation.
+2013-12-30  Werner Lemberg  <wl@gnu.org>
 
-       This fixes Savannah bug #30798, reported by Robert Święcki.
+       [autofit] Don't combine multiple features into one set.
 
-2010-08-29  Werner Lemberg  <wl@gnu.org>
+       Combining them, as originally envisioned, would lead to much more
+       complicated code, as investigations have shown meanwhile.  The major
+       drawback is that we run out of available style slots much earlier.
+       However, this is only a theoretical issue since we don't support a
+       large number of scripts currently.
 
-       [ftraster] Pacify compiler.
+       * src/autofit/afcover.h: Replace `COVERAGE_{1,2,3}' macros with
+       a single-element `COVERAGE' macro, sort the elements by the feature
+       tags, and add entry for `ruby'.
 
-       * src/raster/ftraster.c (ft_black_new) [_STANDALONE_]: `memory' is
-       not used.
+       * src/autofit/aftypes.h: Updated.
+       * src/autofit/hbshim.c: Updated.
 
-2010-08-29  Werner Lemberg  <wl@gnu.org>
+2013-12-28  Werner Lemberg  <wl@gnu.org>
 
-       [cff] Allow SIDs >= 65000.
+       [autofit] Code shuffling to reduce use of cpp macros.
 
-       * src/cff/cffload.c (cff_charset_load): Fix change from 2009-03-20:
-       The threshold for SIDs is not applicable here.  I misinterpreted the
-       `SID values 65000 and above are available for implementation use'
-       sentence in the CFF specification.
+       * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
+       Call `af_get_coverage' unconditionally.
 
-       Problem reported by Ivan Ninčić <inincic@pdftron.com>.
+       * src/autofit/autofit.c: Include `hbshim.c' unconditionally.
 
-2010-08-28  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/hbshim.c (af_get_coverage)
+       [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Provide dummy function.
 
-       Force hinting when the font lacks its familyname.
+       * src/autofit/hbshim.h: Provide function declarations
+       unconditionally.
 
-       In Type42 or Type11 font embedded in PostScript & PDF, TrueType sfnt
-       stream may lack `name' table because they are not required.  Hinting
-       for nameless fonts is safer for PDFs including embedded Chinese
-       fonts.  Written by David Bevan, see:
+2013-12-28  Werner Lemberg  <wl@gnu.org>
 
-       http://lists.gnu.org/archive/html/freetype-devel/2010-08/msg00021.html
-       http://lists.freedesktop.org/archives/poppler/2010-August/006310.html
+       [autofit] Add wrapper function for `FT_Get_Char_Index'.
 
-       * src/truetype/ttobjs.c (tt_check_trickyness): If a NULL pointer by
-       nameless font is given, TRUE is returned to enable hinting.
+       Yet-to-come changes will provide HarfBuzz functionality for the new
+       function.
 
-2010-08-28  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/hbshim.c (af_get_char_index): New function.
+       * src/autofit/hbshim.h: Updated.
 
-       Register yet another tricky TrueType font.
+       * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
+       af_cjk_metrics_init_blues, af_cjk_metrics_check_digits): Updated.
 
-       * src/truetype/ttobjs.c (tt_check_trickyness): Add `HuaTianKaiTi?',
-       a Kaishu typeface paired with `HuaTianSongTi?' by Huatian
-       Information Industry.
+       * src/autofit/aflatin.c (af_latin_metrics_init_widths,
+       af_latin_metrics_init_blues, af_latin_metrics_check_digits):
+       Updated.
 
-2010-08-17  Teijo Kinnunen <Teijo.Kinnunen@nuance.com>
+2013-12-28  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #30788.
+       [autofit] Use `global' HarfBuzz font object.
 
-       * src/cache/ftccache.c (FTC_Cache_Clear): Check `cache->buckets' for
-       NULL too.
+       We now use `hb_font' instead of `hb_face' since yet-to-come changes
+       need this.
 
-2010-08-10  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afglobal.h: Include `hbshim.h'.
+       (AF_FaceGlobalsRec) [FT_CONFIG_OPTION_USE_HARFBUZZ]: New member
+       `hb_font'.
 
-       Try to fix Savannah bug #30717 (and probably #30719 too).
+       * src/autofit/afglobal.c (af_face_globals_new)
+       [FT_CONFIG_OPTION_USE_HARFBUZZ]: Create `hb_font'.
+       (af_face_globals_free) [FT_CONFIG_OPTION_USE_HARFBUZZ]: Destroy
+       `hb_font'.
 
-       * src/smooth/ftsmooth.c (ft_smooth_render_generic): Add another
-       overflow test for `width' and `height'.
+       * src/autofit/hbshim.h: Include HarfBuzz headers.
 
-2010-08-06  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/hbshim.c: Include `hbshim.h' instead of HarfBuzz
+       headers.
+       (af_get_coverage): Updated.
 
-       * Version 2.4.2 released.
-       =========================
+2013-12-27  Werner Lemberg  <wl@gnu.org>
 
+       [autofit] Handle `DFLT' OpenType script for coverages.
 
-       Tag sources with `VER-2-4-2'.
+       * include/ftautoh.h: Document new `default-script' property.
 
-       * docs/CHANGES: Updated.
+       * src/autofit/hbshim.c (af_get_coverage): Use `AF_FaceGlobals' for
+       type of first parameter.
+       (script_tags): Add one more element.
+       (af_get_coverage): Adjust `script_tags' to handle `DFLT' script tag.
 
-       * docs/VERSION.DLL: Update documentation and bump version number to
-       2.4.2
+       * src/autofit/hbshim.h: Updated.
 
-       * 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/.
+       * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
+       Updated.
 
-       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
+       * src/autofit/afglobal.h (AF_SCRIPT_DEFAULT): New macro.
 
-       * builds/unix/configure.raw (version_info): Set to 12:0:6.
+       * src/autofit/afmodule.h (AF_ModuleRec): New `default_script'
+       member.
 
-2010-08-06  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/afmodule.c (af_property_set, af_property_get): Handle
+       `default-script' property.
+       (af_autofitter_init): Updated.
 
-       Fix Savannah bug #30648.
+2013-12-27  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-       * 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.
+       [ftrfork] Fix the face order difference between POSIX and Carbon.
 
-2010-08-06  Yuriy Kaminskiy  <yumkam@mail.ru>
+       The fragmented resources in Suitcase and .dfont should be reordered
+       when `POST' resource for Type1 is being restored, but reordering of
+       sfnt resources induces the different face order.  Now the ordering
+       is restricted to `POST' resource only, to prevent the different
+       order issue (e.g. the face index in the fontconfig cache generated
+       with Carbon framework is incompatible with that by FreeType 2
+       without Carbon framework.)  Found by Khaled Hosny and Hin-Tak Leung.
 
-       [raster] Fix valgrind warning.
+       http://lists.gnu.org/archive/html/freetype-devel/2013-02/msg00035.html
+       http://lists.gnu.org/archive/html/freetype-devel/2013-12/msg00027.html
 
-       * src/raster/ftraster.c (Decompose_Curve) <default>: Access point[0]
-       only if we don't hit `limit'.
+       * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Add a switch
+       `sort_by_res_id' to control the fragmented resource ordering.
+       * include/internal/ftrfork.h: Declare new switch.
+       * src/base/ftobjs.c (IsMacResource): Enable the sorting for `POST'
+       resource, and disable the sorting for `sfnt' resource.
 
-2010-08-06  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2013-12-25  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #30658.
+       Fix Savannah bug #40997.
 
-       * src/base/ftobjs.c (Mac_Read_POST_Resource): Check that the total
-       length of collected POST segments does not overrun the allocated
-       buffer.
+       * src/bdf/bdfdrivr.c (BDF_Face_Init): Only use OR operator to
+       adjust face flags since FT_FACE_FLAG_EXTERNAL_STREAM might already
+       be set.
+       * src/cff/cffobjs.c (cff_face_init): Ditto.
+       * src/cid/cidobjs.c (cid_face_init): Ditto.
+       * src/pcf/pcfread.c (pcf_load_font): Ditto.
+       * src/pfr/pfrobjs.c (pfr_face_init): Ditto.
+       * src/type1/t1objs.c (T1_Face_Init): Ditto.
+       * src/type42/t42objs.c (T42_Face_Init): Ditto.
+       * src/winfonts/winfnt.c (FNT_Face_Init): Ditto.
 
-2010-08-06  Yuriy Kaminskiy  <yumkam@mail.ru>
+2013-12-21  Werner Lemberg  <wl@gnu.org>
 
-       Fix conditional usage of FT_MulFix_i386.
-       With -ansi flag, gcc does not define `i386', only `__i386__'.
+       [autofit] Introduce `coverages'.
 
-       * include/freetype/config/ftconfig.h, builds/unix/ftconfig.in:
-       s/i386/__i386__/.
+       Coverages are the interface to the HarfBuzz library to acces
+       OpenType features for handling glyphs not addressable by the cmap.
 
-2010-08-05  Werner Lemberg  <wl@gnu.org>
+       Right now, compilation of HarfBuzz is only added to the development
+       build.  A solution for standard build mode will be delayed until
+       HarfBuzz gets split into two libraries to avoid mutual dependencies
+       between FreeType and HarfBuzz.
 
-       Fix Savannah bug #30657.
+       Note that this is only a first step in handling coverages, basically
+       providing the framework only.  Code for handling selected OpenType
+       features (this is, actually using the data in `afcover.h') will
+       follow.
 
-       * src/truetype/ttinterp.c (BOUNDSL): New macro.
-       Change `BOUNDS' to `BOUNDSL' where appropriate.
+       * devel/ftoption.h, include/config/ftoption.h
+       (FT_CONFIG_OPTION_USE_HARFBUZZ): New macro.
 
-       * src/truetype/ttinterp.h (TT_ExecContextRec): Fix type of
-       `cvtSize'.
+       * src/autofit/hbshim.c, src/autofit/hbshim.h, src/autofit/afcover.h:
+       New files.
 
-2010-08-05  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afscript.h: Add HarfBuzz script name tags.
 
-       Fix Savannah bug #30656.
+       * src/autofit/afstyles.h: Add default coverage enumeration values.
 
-       * src/type42/t42parse.c (t42_parse_sfnts): Protect against negative
-       string_size.
-       Fix comparison.
+       * src/autofit/aftypes.h: Update use of `SCRIPT' and `STYLE' macros.
+       (AF_Coverage): New enumeration (generated by `afcover.h').
+       (AF_StyleClassRec): New member `coverage'.
+       (AF_DEFINE_STYLE_CLASS): Updated.
 
-2010-08-05  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * include/internal/fttrace.h: Add `afharfbuzz' for tracing coverage
+       data.
 
-       [cff] Don't use any values in decoder after parsing error.
+       * src/autofit/afglobal.h: Update use of `SCRIPT' and `STYLE' macros.
+       (AF_SCRIPT_FALLBACK): Renamed to ...
+       (AF_STYLE_FALLBACK): ... this.
 
-       * src/cff/cffgload.c (cff_slot_load): Skip the evaluations
-       of the values in decoder, if `cff_decoder_parse_charstrings'
-       returns any error.
+       * src/autofit/afglobal.c: Include `hbshim.c'.
+       Update use of `SCRIPT' and `STYLE' macros.
+       (af_face_globals_compute_style_coverage)
+       [FT_CONFIG_OPTION_USE_HARFBUZZ]: Call `af_get_coverage'.
+       Update.
 
-2010-08-04  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afmodule.h (AF_ModuleRec):
+       s/fallback_script/fallback_style/.
 
-       Fix Savannah bug #30644.
+       * src/autofit/afmodule.c (af_property_set): Adapt handling of
+       `fallback-script' property to set a fallback style.
+       (af_property_get, af_autofitter_init): Updated.
 
-       * src/base/ftstream.c (FT_Stream_EnterFrame): Fix comparison.
+       * src/autofit/afpic.c: Update use of `SCRIPT' and `STYLE' macros.
 
-2010-08-04  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afranges.h: Update use of `SCRIPT' macro.
 
-       `make devel' fails if FT_CONFIG_OPTION_OLD_INTERNALS is set.
+       * src/autofit/autofit.c [FT_CONFIG_OPTION_USE_HARFBUZZ]: Include
+       `hbshim.c'.
 
-       * devel/ftoption.h: Synchronize with
-       include/freetype/config/ftoption.h.
+       * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `hbshim.c'.
+       (AUTOF_DRV_H): Add `afcover.h'.
 
-2010-08-04  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * builds/freetype.mk (INCLUDE_FLAGS) [DEVEL_DIR]: Use pkg-config for
+       all libraries needed by FreeType.
 
-       [cff] Improve stack overflow test.
+2013-12-21  Werner Lemberg  <wl@gnu.org>
 
-       * src/cff/cffgload.c (cff_decoder_parse_charstrings): Check stack
-       after execution of operations too.
+       Fix Savannah bug #40975 (sort of).
 
-2010-07-18  Werner Lemberg  <wl@gnu.org>
+       * src/truetype/ttinterp.c (Ins_IP): Fix sign typo to make FreeType
+       behave the same as the Windows TrueType engine for the invalid case.
 
-       Add reference counters and to FT_Library and FT_Face objects.
+2013-12-21  Werner Lemberg  <wl@gnu.org>
 
-       * include/freetype/freetype.h (FT_Reference_Face): New function.
-       * include/freetype/ftmodapi.h (FT_Rererence_Library): New function.
+       [autofit] Make PIC mode work actually.
 
-       * include/freetype/internal/ftobjs.h (FT_Face_InternalRec,
-       FT_LibraryRec): New field `refcount'.
+       * src/autofit/afpic.h (AFModulePIC): Fix array sizes to fit the
+       enumeration values automatically generated by including `afscript.h'
+       and friends.
 
-       * 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'.
+       * src/autofit/afpic.c (autofit_module_class_pic_init): Updated.
 
-       * docs/CHANGES: Updated.
+2013-12-21  Werner Lemberg  <wl@gnu.org>
 
-2010-07-18  Werner Lemberg  <wl@gnu.org>
+       Fix PIC linking.
 
-       * Version 2.4.1 released.
-       =========================
+       * include/internal/ftrfork.h (CONST_FT_RFORK_RULE_ARRAY_BEGIN): Fix
+       generated function name.
 
+       * src/base/basepic.c (FT_Init_Table_raccess_guess_table): Rename
+       to ...
+       (FT_Init_Table_ft_raccess_guess_table): ... this so that the
+       function name correctly corresponds to what the macro framework
+       expects.
 
-       Tag sources with `VER-2-4-1'.
+       * src/psnames/rules.mk (PSNAMES_DRV_SRC_S): Use correct file name so
+       that PIC functions are compiled also.
 
-       * docs/CHANGES: Updated.
+2013-12-21  Werner Lemberg  <wl@gnu.org>
 
-       * docs/VERSION.DLL: Update documentation and bump version number to
-       2.4.1.
+       [base] Add missing dependencies to Makefile.
 
-       * 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.0/2.4.1/, s/240/241/.
+       * src/base/rules.mk (BASE_SRC): Add `basepic.c' and `ftpic.c'.
+       (BASE_H): Add `basepic.h'.
 
-       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+2013-12-20  Werner Lemberg  <wl@gnu.org>
 
-       * builds/unix/configure.raw (version_info): Set to 11:1:5.
+       [autofit] Fix PIC compilation.
 
-2010-07-17  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
+       src/autofit/aflatin.c (af_latin_metrics_init_widths)
+       [FT_CONFIG_OPTION_PIC]: Declare `globals'.
 
-       [cff] Final try to fix `hintmask' and `cntrmask' limit check.
+       * src/autofit/afglobal.c: Always call AF_DEFINE_SCRIPT_CLASS, and
+       AF_DEFINE_STYLE_CLASS.
 
-       Problem reported by Tobias Wolf <towolf@gmail.com>.
+       * src/autofit/afpic.c: Include `afglobal.h'.
+       (autofit_module_class_pic_init): Typo.
 
-       * src/cff/cffgload.c (cff_decoder_parse_charstrings)
-       <cff_op_hintmask>: Sigh.  I'm apparently too silly to fix this
-       correctly in less than three tries.
+       * src/autofit/aftypes.h (AF_DEFINE_SCRIPT_CLASS,
+       AF_DEFINE_STYLE_CLASS): Don't use the same identifier for macro
+       parameter and structure member.
 
-2010-07-12  Werner Lemberg  <wl@gnu.org>
+2013-12-20  Werner Lemberg  <wl@gnu.org>
 
-       * Version 2.4.0 released.
-       =========================
+       [autofit] Introduce `styles'.
 
+       This is the new top-level structure for handling glyph input data;
+       scripts are now defined separately.
 
-       Tag sources with `VER-2-4-0'.
+       * src/autofit/aftypes.h (SCRIPT): Updated.
+       (AF_ScriptClassRec): Move `blue_stringset' and `writing_system'
+       members to ...
+       (AF_Style_ClassRec): ... this new structure.
+       (AF_Style): New enumeration.
+       (AF_StyleMetricsRec): Replace `script' enumeration with
+       `style_class' pointer.
+       (AF_DEFINE_SCRIPT_CLASS, AF_DECLARE_SCRIPT_CLASS): Updated.
+       (AF_DEFINE_STYLE_CLASS, AF_DECLARE_STYLE_CLASS): New macros.
 
-       * docs/CHANGES: Updated.
+       * src/autofit/afstyles.h: New file, using data from `afscript.h'.
+       * src/autofit/afscript.h: Updated.
 
-       * docs/VERSION.DLL: Update documentation and bump version number to
-       2.4.0.
+       * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
+       af_cjk_metrics_init_blues, af_cjk_hint_edges): Updated.
 
-       * 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.3.12/2.4.0/, s/2312/240/.
+       * src/autofit/afglobal.c (SCRIPT): Updated.
+       (STYLE): Redefine macro to load `afstyles.h'.
+       (af_script_names) [FT_DEBUG_LEVEL_TRACE]: Replace with...
+       (af_style_names): ... this array.
+       (af_face_globals_compute_script_coverage): Renamed to...
+       (af_face_globals_compute_style_coverage): ... this.
+       Updated.
+       (af_face_globals_new, af_face_globals_free,
+       af_face_globals_get_metrics): Updated.
 
-       * include/freetype/freetype.h (FREETYPE_MINOR): Set to 4.
-       (FREETYPE_PATCH): Set to 0.
+       * src/autofit/afglobal.h (SCRIPT): Updated.
+       (STYLE): Redefine macro to load `afstyles.h'.
+       (AF_SCRIPT_FALLBACK): Update definition.  This will get more
+       refinements with later on.
+       (AF_SCRIPT_UNASSIGNED): Replace with...
+       (AF_STYLE_UNASSIGNED): ... this macro.
+       (AF_FaceGlobalsRec): Updated.
 
-       * builds/unix/configure.raw (version_info): Set to 11:0:5.
+       * src/autofit/aflatin.c (af_latin_metrics_init_widths,
+       af_latin_metrics_init_blues, af_latin_metrics_scale_dim,
+       af_latin_hint_edges): Updated.
 
-2010-07-12  Werner Lemberg  <wl@gnu.org>
+       * src/autofit/aflatin2.c (af_latin2_metrics_init_widths): Updated.
+       (af_ltn2_uniranges): Removed.
 
-       Remove C++ warnings.
+       * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
+       Updated.
 
-       */*: Initialize pointers where necessary to make g++ happy.
+       * src/autofit/afpic.c (autofit_module_class_pic_init): Updated.
+       * src/autofit/afpic.h (AF_STYLE_CLASSES_GET): New macro.
+       (AFModulePIC): Add `af_style_classes' and `af_style_classes_rec'
+       members.
 
-2010-07-12  malc  <av1474@comtv.ru>
-           Richard Henderson  <rth@redhat.com>
+       * src/autofit/afranges.h: Updated.
 
-       Fix type-punning issues with C++.
+       * src/autofit/rules.mk (AUTOF_DRV_H): Add `afstyles.h'.
 
-       * include/freetype/internal/ftmemory.h (FT_ASSIGNP) [__cplusplus]:
-       Emulate a `typeof' operator with an inline template which uses
-       `static_cast'.
+2013-12-19  Werner Lemberg  <wl@gnu.org>
 
-2010-07-11  Werner Lemberg  <wl@gnu.org>
+       [autofit] Factor scripts and uniranges out of writing system files.
 
-       Fix C++ compilation issue.
+       * src/autofit/afranges.c, src/autofit/afranges.h: New files.
 
-       * src/tools/apinames.c (names_dump) <OUTPUT_WATCOM_LBC>: Fix
-       type of `dot' variable.
+       * src/autofit/afscript.h: Extend `SCRIPT' macro with more
+       parameters, taking data from the writing system files.
 
-2010-07-10  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/aftypes.h: Updated.
 
-       Fix another case reported in Savannah bug #30373.
-       Permit a face for Type1, Type42 and CFF without charmap,
-       patch by Tor Andersson.
+       * src/autofit/afglobal.c: Include `afranges.h'.
+       Load `afscript.h' to call AF_DEFINE_SCRIPT_CLASS.
+       * src/autofit/afglobal.c: Include `afranges.h'.
+       Load `afscript.h' to call AF_DECLARE_SCRIPT_CLASS.
 
-       * src/type1/t1objs.c (T1_Face_Init): Reset the error if it
-       is FT_Err_No_Unicode_Glyph_Name.
-       * src/type42/t42objs.c (T42_Face_Init): Ditto.
-       * src/cff/cffobjs.c (cff_face_init): Ditto.
+       * src/autofit/afcjk.c, src/autofit/afcjk.h: Updated.
+       * src/autofit/afdummy.c, src/autofit/afdummy.h: Updated.
+       * src/autofit/afindic.c, src/autofit/afindic.h: Updated.
+       * src/autofit/aflatin.c, src/autofit/aflatin.h: Updated.
+       * src/autofit/aflatn2.c, src/autofit/aflatn2.h: Updated.
 
-2010-07-09  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/autofit/afpic.c: Updated.
 
-       Use defined macros to set {platform,encoding}_id.
+       * src/autofir/autofit.c: Include `afranges.c'.
+       * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `afranges.c'.
 
-       * src/bdf/bdfdrivr.c: Include ttnameid.h and use macros to
-       set charmap.{platfom,encoding}_id.
-       * src/pcf/pcfdrivr.c: Ditto.
-       * src/winfonts/winfnt.c: Ditto.
-       * src/type1/t1objs.c: Ditto.
-       * src/type42/t42objs.c: Ditto.
-       * src/cff/cffobjs.c: Ditto.
-       * src/pfr/pfrobjs.c: Ditto.
+2013-12-18  Werner Lemberg  <wl@gnu.org>
 
-2010-07-09  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       [autofit] More code orthogonality.
 
-       Fix Savannah bug #30373.
-       Too serious check of errors by `FT_CMap_New' since 2010-07-04
-       is fixed. Reported by Tor Andersson.
+       * src/autofit/aftypes.h (AF_StyleMetrics): Replace `script_class'
+       pointer to an `AF_ScriptClass' structure with `script' index of type
+       `AF_Script'.
+       Move some code around.
 
-       * include/freetype/fterrdef.h
-       (PSnames_Err_No_Unicode_Glyph_Name): New error code to
-       indicate the Unicode charmap synthesis failed because
-       no Unicode glyph name is found.
+       * src/autofit/afcjk.c: Include `afpic.h'.
+       (af_cjk_metrics_init_widths, af_cjk_metrics_init_blues,
+       af_cjk_hint_edges): Updated.
 
-       * src/psnames/psmodule.c (ps_unicodes_init): Return
-       PSnames_Err_No_Unicode_Glyph_Name when no Unicode glyph name
-       is found in the font.
-       * src/cff/cffcmap.c (cff_cmap_unicode_init): Return
-       CFF_Err_No_Unicode_Glyph_Name when no SID is available.
+       * src/autofit/aflatin.c: Include `afpic.h'.
+       (af_latin_metrics_init_widths, af_latin_metrics_init_blues,
+       af_latin_metrics_scale_dim, af_latin_hint_edges): Updated.
 
-       * src/type1/t1objs.c (T1_Face_Init): Proceed if `FT_CMap_New'
-       is failed by the lack of Unicode glyph name.
-       * src/type42/t42objs.c (T42_Face_Init): Ditto.
-       * src/cff/cffobjs.c (cff_face_init): Ditto.
+       * src/autofit/afglobal.c (af_face_globals_get_metrics): Updated.
 
-2010-07-09  Ken Sharp  <ken.sharp@artifex.com>
+       * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
+       Updated.
 
-       Make ftraster.c compile in stand-alone mode with MSVC compiler.
+2013-12-18  Werner Lemberg  <wl@gnu.org>
 
-       * src/raster/ftmisc.h (FT_Int64) [_WIN32, _WIN64]: Fix typedef
-       since there is no `inttypes.h' for MSVC.
+       [autofit] s/ScriptMetrics/StyleMetrics/.
 
-2010-07-08  Werner Lemberg  <wl@gnu.org>
+2013-12-18  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #30361.
+       [autofit] s/script_{metrics,hints}/style_{metrics,hints}/
 
-       * src/truetype/ttinterp.c (Ins_IUP): Fix bounds check.
+2013-12-18  Werner Lemberg  <wl@gnu.org>
 
-2010-07-06  Werner Lemberg  <wl@gnu.org>
+       [autofit] s/gscripts/gstyles/.
 
-       Pacify compiler.
+2013-12-18  Werner Lemberg  <wl@gnu.org>
 
-       * src/cff/cffload.c (cff_index_get_pointers): Initialize
-       `new_bytes'.
+       [autofit] s/glyph_scripts/glyph_styles/.
 
-2010-07-05  Eugene A. Shatokhin  <spectre@ispras.ru>
+       This is the first commit of a series to create a new top-level
+       structure (a `style') for handling scripts, writing_systems, and
+       soon-to-be-added coverages.
 
-       Fix Savannah bug #27648.
+2013-12-17  Werner Lemberg  <wl@gnu.org>
 
-       * src/base/ftobjs.c (ft_remove_renderer, FT_Add_Module): Call
-       `raster_done' only if we have an outline glyph format.
+       [autofit] s/AF_Script_/AF_WritingSystem_/ where appropriate.
 
-2010-07-05  Werner Lemberg  <wl@gnu.org>
+2013-12-11  Infinality  <infinality@infinality.net>
 
-       Fix Savannah bug #30030.
+       [truetype] Simplify logic of rendering modes.
 
-       * builds/win32/*/freetype.vcproj: Add ftxf86.c.
+       This patch unifies the subpixel and non-subpixel cases.
 
-2010-07-05  Werner Lemberg  <wl@gnu.org>
+       * src/truetype/ttinterp.h (TT_ExecContextRec): Remove
+       `grayscale_hinting'; all code should refer to `grayscale' instead.
+       Remove unused `native_hinting' member.
+       Rename `subpixel_hinting' member to `subpixel.
 
-       [cff] Next try to fix `hintmask' and `cntrmask' limit check.
+       * src/truetype/ttgload.c (TT_LOADER_SET_PP): Updated.
+       (tt_loader_init): Updated.
 
-       Problem reported by malc <av1474@comtv.ru>.
+       * src/truetype/ttinterp.c (Ins_GETINFO): Simplify.
+       Updated.
 
-       * src/cff/cffgload.c (cff_decoder_parse_charstrings)
-       <cff_op_hintmask>: It is possible that there is just a single byte
-       after the `hintmask' or `cntrmask', e.g., a `return' instruction.
+2013-12-11  Werner Lemberg  <wl@gnu.org>
 
-2010-07-04  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       [documentation] Add section how to include FreeType header files.
+       Problem reported by David Kastrup <dak@gnu.org>.
 
-       Restrict the number of the charmaps in a rogue-compatible mode.
-       Fix for Savannah bug #30059.
+       Surprisingly, a description how to do that was completely missing in
+       the API reference.
 
-       * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Replace `16' the
-       minimum character code passed by a legacy rogue client by...
-       * include/freetype/config/ftoption.h (FT_MAX_CHARMAP_CACHEABLE):
-       This.  It is undefined when FT_CONFIG_OPTION_OLD_INTERNALS is
-       undefined (thus the rogue client compatibility is not required).
+       * include/freetype.h, include/ftchapters.h: New documentation
+       section `header_inclusion'.
 
-       * src/cff/cffobjs.c (cff_face_init): Abort the automatic
-       selection or synthesis of Unicode cmap subtable when the charmap
-       index exceeds FT_MAX_CHARMAP_CACHEABLE.
-       * src/sfnt/ttcmap.c (tt_face_build_cmaps): Issue error message
-       when the charmap index exceeds FT_MAX_CHARMAP_CACHEABLE.
+2013-12-10  Werner Lemberg  <wl@gnu.org>
 
-       * src/base/ftobjs.c (find_unicode_charmap): When Unicode charmap
-       is found after FT_MAX_CHARMAP_CACHEABLE, ignore it and search
-       earlier one.
-       (find_variant_selector_charmap): When UVS charmap is found after
-       FT_MAX_CHARMAP_CACHEABLE, ignore it and search earlier one.
-       (FT_Select_Charmap): When a charmap matching with requested
-       encoding but after FT_MAX_CHARMAP_CACHEABLE, ignore and search
-       earlier one.
-       (FT_Set_Charmap): When a charmap matching with requested
-       charmap but after FT_MAX_CHARMAP_CACHEABLE, ignore and search
-       earlier one.
-       (FT_Get_Charmap_Index): When a requested charmap is found
-       after FT_MAX_CHARMAP_CACHEABLE, return the inverted charmap
-       index.
+       [autofit] s/DFLT/NONE/, s/dflt/none/.
 
-2010-07-04  Werner Lemberg  <wl@gnu.org>
+2013-12-10  Werner Lemberg  <wl@gnu.org>
 
-       TrueType hinting is no longer patented.
+       [autofit] s/AF_SCRIPT_NONE/AF_SCRIPT_UNASSIGNED/.
 
-       * include/freetype/config/ftoption.h, devel/ftoption.h
-       (TT_CONFIG_OPTION_BYTECODE_INTERPRETER): Define.
-       (TT_CONFIG_OPTION_UNPATENTED_HINTING): Undefine.
+2013-12-10  Werner Lemberg  <wl@gnu.org>
 
-       * docs/CHANGES, docs/INSTALL, include/freetype/freetype.h: Updated.
-       * docs/TRUETYPE, docs/PATENTS: Removed.
+       [truetype] Fix scaling of vertical phantom points.
 
-2010-07-04  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       * src/truetype/ttgload.c (load_truetype_glyph): Scale pp3.x and
+       pp4.x also.
 
-       Check error value by `FT_CMap_New'.
+2013-12-10  Werner Lemberg  <wl@gnu.org>
 
-       * src/cff/cffobjs.c (cff_face_init): Check error value by
-       `FT_CMap_New'.
-       * src/pfr/pfrobjs.c (pfr_face_init): Ditto.
-       * src/type1/t1jobjs.c (T1_Face_Init): Ditto.
-       * src/type42/t42jobjs.c (T42_Face_Init): Ditto.
+       [truetype] Fix positioning of composite glyphs.
+       Problem reported by Nigel Tao <nigeltao@golang.org>.
 
-2010-07-03  Werner Lemberg  <wl@gnu.org>
+       * src/truetype/ttgload.c (TT_Hint_Glyph): Remove code that shifts
+       the glyph (component) by a fractional value computed from the LSB
+       phantom point.  This is wrong, since the horizontal phantom points
+       get rounded horizontally later on.
 
-       Make ftgrays.c compile stand-alone again.
+2013-12-08  Werner Lemberg  <wl@gnu.org>
 
-       * src/smooth/ftgrays.c [_STANDALONE_]: Include `stddef.h'.
-       (FT_INT_MAX, FT_PtrDist)[_STANDALONE_]: Define.
+       * Version 2.5.2 released.
+       =========================
 
-2010-07-02  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-       Additional fix for Savannah bug #30306.
+       Tag sources with `VER-2-5-2'.
 
-       * src/base/ftobjs.c (Mac_Read_POST_Resource): If the type of the
-       POST fragment is 0, the segment is completely ignored.  The declared
-       length of the segment is not cared at all.  According to Adobe
-       Technical Note 5040, type 0 segment is a comment only and should not
-       be loaded for the interpreter.  Reported by Robert Święcki.
+       * docs/VERSION.DLL: Update documentation and bump version number to
+       2.5.2.
+
+       * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+       builds/windows/vc2005/index.html,
+       builds/windows/vc2008/freetype.vcproj,
+       builds/windows/vc2008/index.html,
+       builds/windows/vc2010/freetype.vcxproj,
+       builds/windows/vc2010/index.html,
+       builds/windows/visualc/freetype.dsp,
+       builds/windows/visualc/freetype.vcproj,
+       builds/windows/visualc/index.html,
+       builds/windows/visualce/freetype.dsp,
+       builds/windows/visualce/freetype.vcproj,
+       builds/windows/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.5.1/2.5.2/, s/251/252/.
 
-2010-07-01  Werner Lemberg  <wl@gnu.org>
+       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
 
-       [truetype] Protect against code range underflow.
+       * builds/unix/configure.raw (version_info): Set to 17:1:11.
+       * CMakeLists.txt (VERSION_PATCH): Set to 2.
+       * docs/CHANGES: Updated.
 
-       * src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF): Don't allow
-       negative IP values.
+2013-12-07  Werner Lemberg  <wl@gnu.org>
 
-2010-07-01  Werner Lemberg  <wl@gnu.org>
+       [truetype] Next round in phantom point handling.
 
-       [truetype] Add rudimentary tracing for bytecode instructions.
+       Greg Hitchcock provided very interesting insights into the
+       complicated history of the horizontal positions of the TSB and BSB
+       phantom points.
 
-       * src/truetype/ttinterp.c (opcode_name) [FT_DEBUG_LEVEL_TRACE]: New
-       array.
-       (TT_RunIns): Trace opcodes.
+       * src/truetype/ttgload.c (TT_LOADER_SET_PP)
+       [TT_CONFIG_OPTION_SUBPIXEL_HINTING]: Use `subpixel_hinting' and
+       `grayscale_hinting' flags as conditionals for the x position of TSB
+       and BSB.
 
-2010-06-30  Werner Lemberg  <wl@gnu.org>
+2013-12-05  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #30263.
+       * builds/freetype.mk (FT_CC): Removed.  Unused.
 
-       * src/smooth/ftgrays.c (gray_render_span): Use cast to `unsigned
-       int' to avoid integer overflow.
+2013-12-04  Werner Lemberg  <wl@gnu.org>
 
-       * src/smooth/ftsmooth.c (ft_smooth_render_generic): Use smaller
-       threshold values for `width' and `height'.  This is not directly
-       related to the bug fix but makes sense anyway.
+       [sfnt] Fix handling of embedded bitmap strikes.
 
-2010-07-01  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       This corrects the commit from 2013-11-21.  Problem reported by
+       Andrey Panov <panov@canopus.iacp.dvo.ru>.
 
-       Initial fix for Savannah bug #30306.
+       * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Fix logic to
+       detect excessive bytes for bit-aligned bitmaps.
 
-       * src/base/ftobjs.c (Mac_Read_POST_Resource): Check `rlen', the
-       length of fragment declared in the POST fragment header, and prevent
-       an underflow in length calculation.  Some fonts set the length to
-       zero in spite of the existence of a following 16bit `type'.
-       Reported by Robert Święcki.
+2013-12-03  Werner Lemberg  <wl@gnu.org>
 
-2010-07-01  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       [truetype] Remove dead code.
 
-       Additional fix for Savannah bug #30248 and #30249.
+       Reported by Nigel Tao <nigeltao@golang.org>.
 
-       * src/base/ftobjs.c (Mac_Read_POST_Resource): Check the buffer size
-       during gathering PFB fragments embedded in LaserWriter PS font for
-       Macintosh.  Reported by Robert Święcki.
+       * include/internal/tttypes.h (TT_LoaderRec): Remove unused
+       `preserve_pps' field.
+       * src/truetype/ttgload.c (TT_Hint_Glyph): Updated.
 
-2010-06-30  Alexei Podtelezhnikov  <apodtele@gmail.com>
+2013-12-03  Werner Lemberg  <wl@gnu.org>
 
-       Minor optimizations by avoiding divisions.
+       [truetype] Fix phantom point handling.
 
-       * src/sfnt/ttkern.c (tt_face_load_kern, tt_face_get_kerning):
-       Replace divisions with multiplication in comparisons.
+       This is a further improvement to the changes from 2013-11-06.
 
-2010-06-29  Werner Lemberg  <wl@gnu.org>
+       * src/truetype/ttgload.c (TT_Hint_Glyph): Horizontal phantom points
+       are rounded horizontally, vertical ones are rounded vertically.
+       (TT_LOADER_SET_PP): The horizontal position of vertical phantom
+       points in pre-ClearType mode is zero, as shown in the OpenType
+       specification.
 
-       Fix minor tracing issues.
+2013-12-02  Werner Lemberg  <wl@gnu.org>
 
-       * src/cff/cffgload.c, src/truetype/ttgload.c: Adjust tracing levels.
+       [truetype] Fix change from 2013-11-20.
 
-2010-06-27  Werner Lemberg  <wl@gnu.org>
+       Problem reported by Akira Kakuto <kakuto@fuk.kindai.ac.jp>.
 
-       [cff] Really fix `hintmask' and `cntrmask' limit check.
+       * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Protect call to
+       `Update_Max' with both a TT_USE_BYTECODE_INTERPRETER guard and a
+       `IS_HINTED' clause.
+       Also remove redundant check using `maxSizeOfInstructions' – in
+       simple glyphs, the bytecode data comes before the outline data, and
+       a validity test for this is already present.
 
-       * src/cff/cffgload.c (cff_decoder_parse_charstrings)
-       <cff_op_hintmask>: Fix thinko and handle tracing also.
+2013-11-27  Werner Lemberg  <wl@gnu.org>
 
-2010-06-27  Werner Lemberg  <wl@gnu.org>
+       [autofit] Fix use of dumping functions in `ftgrid' demo program.
 
-       Fix valgrind warning.
+       * src/autofit/afhints.c (AF_DUMP) [FT_DEBUG_AUTOFIT]: New macro.
+       (af_glyph_hints_dump_points, af_glyph_hints_dump_segments,
+       af_glyph_hints_dump_edges) [FT_DEBUG_AUTOFIT]: Add parameter to
+       handle output to stdout.
+       Use AF_DUMP.
+       (af_glyph_hints_dump_points, af_glyph_hints_dump_segments,
+       af_glyph_hints_dump_edges) [!FT_DEBUG_AUTOFIT]: Removed.
 
-       * src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize
-       `result' array.
+2013-11-25  Werner Lemberg  <wl@gnu.org>
 
-2010-06-27  Werner Lemberg  <wl@gnu.org>
+       * Version 2.5.1 released.
+       =========================
 
-       [cff] Fix memory leak.
 
-       * src/cff/cffgload.c (cff_operator_seac): Free charstrings even in
-       case of errors.
+       Tag sources with `VER-2-5-1'.
 
-2010-06-27  Werner Lemberg  <wl@gnu.org>
+       * docs/VERSION.DLL: Update documentation and bump version number to
+       2.5.1.
+
+       * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+       builds/windows/vc2005/index.html,
+       builds/windows/vc2008/freetype.vcproj,
+       builds/windows/vc2008/index.html,
+       builds/windows/vc2010/freetype.vcxproj,
+       builds/windows/vc2010/index.html,
+       builds/windows/visualc/freetype.dsp,
+       builds/windows/visualc/freetype.vcproj,
+       builds/windows/visualc/index.html,
+       builds/windows/visualce/freetype.dsp,
+       builds/windows/visualce/freetype.vcproj,
+       builds/windows/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.5.0/2.5.1/, s/250/251/.
 
-       [cff] Protect against invalid `hintmask' and `cntrmask' operators.
+       * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
 
-       * src/cff/cffgload.c (cff_decoder_parse_charstrings)
-       <cff_op_hintmask>: Ensure that we don't exceed `limit' while parsing
-       the bit masks of the `hintmask' and `cntrmask' operators.
+       * builds/unix/configure.raw (version_info): Set to 17:0:11.
+       * CMakeLists.txt (VERSION_PATCH): Set to 1.
+       * docs/CHANGES, docs/release: Updated.
 
-2010-06-26  Werner Lemberg  <wl@gnu.org>
+2013-11-23  Werner Lemberg  <wl@gnu.org>
 
-       Fix PFR change 2010-06-24.
+       [truetype]: Add tricky font names `hkscsiic.ttf' and `iicore.ttf'.
 
-       * src/pfr/pfrgload.c (pfr_glyph_load_simple): Really protect against
-       invalid indices.
+       * src/truetype/ttobjs.c (TRICK_NAMES_MAX_CHARACTERS,
+       TRICK_NAMES_COUNT): Updated.
+       (trick_names): Add family name for the two fonts.
 
-2010-06-26  Werner Lemberg  <wl@gnu.org>
+2013-11-23  Werner Lemberg  <wl@gnu.org>
 
-       Improve PFR tracing messages.
+       * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Typo.
 
-       * src/pfr/pfrgload.c (pfr_glyph_load_rec): Emit tracing messages for
-       simple and compound glyph offsets.
+2013-11-21  Werner Lemberg  <wl@gnu.org>
 
-2010-06-26  Werner Lemberg  <wl@gnu.org>
+       [sfnt] Typo.
 
-       Fix last PFR change.
+       Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
 
-       * src/pfr/pfrobjs.c (pfr_face_init): Fix rejection logic.
+       * src/sfnt/sfobjs.c (sfnt_load_face): Return correct `bsize->width'
+       value if the font lacks an `OS/2' table.
 
-2010-06-26  Werner Lemberg  <wl@gnu.org>
+2013-11-21  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #30262.
+       [sfnt] Improve handling of buggy embedded bitmap strikes.
 
-       * src/sfnt/ttload.c (tt_face_load_maxp): Limit `maxComponentDepth'
-       arbitrarily to 100 to avoid stack exhaustion.
+       We are now able to successfully load `AppleMyoungJo.ttf'.
+       Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
 
-2010-06-26  Werner Lemberg  <wl@gnu.org>
+       * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Don't trust glyph
+       format.
 
-       Add some memory checks (mainly for debugging).
+2013-11-20  Werner Lemberg  <wl@gnu.org>
 
-       * src/base/ftstream.c (FT_Stream_EnterFrame): Exit with error
-       if the frame size is larger than the stream size.
+       [truetype] Don't trust `maxp's `maxSizeOfInstructions'.
 
-       * src/base/ftsystem.c (ft_ansi_stream_io): Exit with error if
-       seeking a position larger than the stream size.
+       Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>; see
 
-2010-06-25  Werner Lemberg  <wl@gnu.org>
+         http://lists.nongnu.org/archive/html/freetype-devel/2013-08/msg00005.html
 
-       Fix Savannah bug #30261.
+       for details.
 
-       * src/pfr/pfrobjs.c (pfr_face_init): Reject fonts which contain
-       neither outline nor bitmap glyphs.
+       * src/base/ftobjs.c (FT_Load_Glyph): Check size of `fpgm' and `prep'
+       tables also for setting `autohint'.
 
-2010-06-25  Werner Lemberg  <wl@gnu.org>
+       * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Use code from
+       `TT_Process_Composite_Glyph' for handling unreliable values of
+       `maxSizeOfInstructions'.
 
-       Fix Savannah bug #30254.
+2013-11-16  Werner Lemberg  <wl@gnu.org>
 
-       * src/cff/cffload.c (cff_index_get_pointers): Do sanity check for
-       first offset also.
+       [sfnt] Fix `OS/2' table version 5 support.
 
-2010-06-25  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       We now follow the `official' announcement from Microsoft (on the
+       OpenType mailing list, which unfortunately hasn't a public archive).
 
-       Initial fix for Savannah bug #30248 and #30249.
+       * include/freetype/tttables.h (TT_OS2):
+       s/usLowerPointSize/usLowerOpticalPointSize/,
+       s/usUpperPointSize/usUpperOpticalPointSize/.
 
-       * src/base/ftobjs.c (Mac_Read_POST_Resource): Check the error during
-       reading a PFB fragment embedded in LaserWriter PS font for Macintosh.
-       Reported by Robert Święcki.
+       * src/sfnt/ttload.c (tt_face_load_os2): Update, and set correct
+       default values.
 
-2010-06-24  Werner Lemberg  <wl@gnu.org>
+2013-11-13  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #30247.
+       * builds/unix/ft2unix.h: Remove.  No longer necessary.
 
-       * src/pcf/pcfread.c (pcf_get_metrics): Disallow (invalid) fonts with
-       zero metrics.
+       * builds/unix/install.mk (install): Updated.
 
-2010-06-24  Graham Asher  <graham.asher@btinternet.com>
+2013-11-13  Werner Lemberg  <wl@gnu.org>
 
-       * src/smooth/ftgrays.c (gray_render_cubic): Fix algorithm.
-       The previous version was too aggressive, as demonstrated in
-       http://lists.gnu.org/archive/html/freetype-devel/2010-06/msg00020.html.
+       Simplify header file hierarchy.
 
-2010-06-24  Werner Lemberg  <wl@gnu.org>
+       This large patch changes the header file directory layout from
+       `include/freetype/...' to `include/...', effectively removing one
+       level.  Since the file `ft2build.h' is also located in `include'
+       (and it stays there even after installation), all FreeType header
+       files are now in a single directory.
 
-       */*: Use module specific error names where appropriate.
+       Applications that use (a) `freetype-config' or FreeType's
+       `pkg-config' file to get the include directory for the compiler, and
+       (b) the documented way for header inclusion like
 
-2010-06-24  Werner Lemberg  <wl@gnu.org>
+         #include <ft2build.h>
+         #include FT_FREETYPE_H
+         ...
 
-       Fix Savannah bug #30236.
+       don't need any change to the source code.
 
-       * src/sfnt/ttcmap.c (tt_face_build_cmaps): Improve check for pointer
-       to `cmap_table'.
+       * include/freetype/*: Move up to...
+       * include/*: ... this directory.
 
-2010-06-24  Werner Lemberg  <wl@gnu.org>
+       * builds/amiga/include/freetype/*: Move up to...
+       * builds/amiga/include/*: ... this directory.
 
-       Fix Savannah bug #30235.
+       */*: Essentially do `s@/freetype/@/@' where appropriate.
 
-       * src/pfr/pfrgload.c (pfr_glyph_load_simple): Protect against
-       invalid indices if there aren't any coordinates for indexing.
+       * CMakeList.txt: Simplify.
+       * builds/unix/freetype-config.in, builds/unix/freetype2.in: For
+       `--cflags', return a single directory.
+       * builds/unix/install.mk (install): No longer try to remove `cache'
+       and `internal' subdirectories; instead, remove the `freetype'
+       subdirectory.
 
-2010-06-24  Werner Lemberg  <wl@gnu.org>
+2013-11-12  Werner Lemberg  <wl@gnu.org>
 
-       [bdf]: Font properties are optional.
+       [truetype] Fix last `truetype' commit.
 
-       * src/bdf/bdflib.c (_bdf_readstream): Use special error code to
-       indicate a redo operation.
-       (_bdf_parse_start): Handle `CHARS' keyword here too and pass current
-       input line to `_bdf_parse_glyph'.
+       * src/truetype/ttgload.c (tt_get_metrics): Preserve stream position.
+       Return error value.
+       (load_truetype_glyph): Updated.
 
-2010-06-23  Werner Lemberg  <wl@gnu.org>
+2013-11-10  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #30220.
+       * docs/CMAKE: New dummy file.
 
-       * include/freetype/fterrdef.h
-       (BDF_Err_Missing_Fontboundingbox_Field): New error code.
+2013-11-08  Dave Arnold  <darnold@adobe.com>
 
-       * src/bdf/bdflib.c (_bdf_parse_start): Check for missing
-       `FONTBOUNDINGBOX' field.
-       Avoid memory leak if there are multiple `FONT' lines (which is
-       invalid but doesn't hurt).
+       [cff] Fix for hints that touch.
 
-2010-06-21  Werner Lemberg  <wl@gnu.org>
+       * src/cff/cf2hints.c (cf2_hintmap_insertHint): Fix condition for
+       finding index value of insertion point.
 
-       Fix Savannah bug #30168.
+2013-11-06  Werner Lemberg  <wl@gnu.org>
 
-       * src/pfr/pfrgload.c (pfr_glyph_load_compound): Limit the number of
-       subglyphs to avoid endless recursion.
+       [truetype] Fix handling of phantom points in composite glyphs.
+       Problem reported by Nigel Tao <nigeltao@golang.org>.
 
-2010-06-20  Werner Lemberg  <wl@gnu.org>
+       This is a follow-up commit to the previous one.
 
-       Fix Savannah bug #30145.
+       * src/truetype/ttgload.c (load_truetype_glyph): Call
+       `tt_get_metrics' after loading the glyph header.
 
-       * src/psaux/psobjs.c (t1_builder_add_contour): Protect against
-       `outline == NULL' which might happen in invalid fonts.
+2013-11-06  Werner Lemberg  <wl@gnu.org>
 
-2010-06-19  Werner Lemberg  <wl@gnu.org>
+       [truetype] Improve emulation of vertical metrics.
 
-       Fix Savannah bug #30135.
+       This commit also improves the start values of vertical phantom
+       points.  Kudos to Greg Hitchcock for help.
 
-       * src/bdf/bdflib.c (_bdf_list_join): Don't modify value in static
-       string `empty'.
-       (_bdf_parse_glyph): Avoid memory leak in case of error.
+       * src/truetype/ttgload.c (TT_Get_VMetrics): Add parameter to pass
+       `yMax' value.  Replace code with fixed Microsoft definition.
+       (tt_get_metrics): Updated.
+       (TT_LOADER_SET_PP): Add explanation how to initialize phantom
+       points, taken from both the OpenType specification and private
+       communication with Greg (which will eventually be added to the
+       standard).
+       Fix horizontal position of `pp3' and `pp4'.
 
-2010-06-15  Werner Lemberg  <wl@gnu.org>
+       * src/truetype/ttgload.h: Updated.
 
-       Fix Savannah bug #30108.
+       * src/truetype/ttdriver.c (tt_get_advances): Updated.
 
-       * src/autofit/afglobal.c (af_face_globals_compute_script_coverage):
-       Properly mask AF_DIGIT bit in comparison.
+       * docs/CHANGES: Updated.
 
-2010-06-11  Werner Lemberg  <wl@gnu.org>
+2013-11-05  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #30106.
+       * builds/windows/vc2010/freetype.vcxproj: s/v110/v100/.
+       PlatformToolSet version 110 is for VC2012.
 
-       Point numbers for FreeType's implementation of hinting masks are
-       collected before the final number of points of a glyph has been
-       determined; in particular, the code for handling the `endchar'
-       opcode can reduce the number of points.
+       Problem reported (with solution) by Dave Arnold <darnold@adobe.com>.
 
-       * src/pshinter/pshalgo.c (psh_glyph_find_strong_points): Assure that
-       `end_point' is not larger than `glyph->num_points'.
+2013-11-05  Werner Lemberg  <wl@gnu.org>
 
-2010-06-11  Werner Lemberg  <wl@gnu.org>
+       [truetype] Correctly reset point tags for glyph components.
+       Problem reported by Nigel Tao <nigeltao@golang.org>.
 
-       [cff]: Improve debugging output.
+       * src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix loop.
 
-       * src/cff/cffgload.c (cff_decoder_parse_charstrings)
-       <cff_op_hintmask>: Implement it.
+2013-11-02  Werner Lemberg  <wl@gnu.org>
 
-2010-06-10  Graham Asher  <graham.asher@btinternet.com>
+       [truetype] Fix GETINFO opcode handling of subpixel hinting bits.
 
-       ftgrays: Speed up rendering of small cubic splines.
+       * src/truetype/ttinterp.c (Ins_GETINFO): Don't request bit 6 set to
+       get info on subpixel hinting.
 
-       * src/smooth/ftgrays.c (gray_render_cubic): Implement new,
-       simplified algorithm to find out whether the spline can be replaced
-       with two straight lines.  See this thread for more:
+       * docs/CHANGES: Updated.
 
-         http://lists.gnu.org/archive/html/freetype-devel/2010-06/msg00000.html
+2013-11-02  Werner Lemberg  <wl@gnu.org>
 
-2010-06-09  Werner Lemberg  <wl@gnu.org>
+       Fix Savannah bug #40451.
 
-       Fix Savannah bug #30082.
+       Simply apply the patch from the bug report.
 
-       * src/cff/cffgload.c (cff_decoder_parse_charstrings)
-       <cff_op_callothersubr>: Protect against stack underflow.
+       * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
+       include/freetype/config/ftconfig.h: The used #pragma directives only
+       work with gcc versions 4.6 and higher.
 
-2010-06-08  Werner Lemberg  <wl@gnu.org>
+2013-11-01  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #30053.
+       * docs/CHANGES: Updated.
 
-       * src/cff/cffparse.c (cff_parse_real): Handle border case where
-       `fraction_length' has value 10.
+2013-11-01  Werner Lemberg  <wl@gnu.org>
 
-2010-06-07  Werner Lemberg  <wl@gnu.org>
+       [truetype] Minor code refactoring.
 
-       Fix Savannah bug #30052.
-       This bug has been introduced with commit 2415cbf3.
+       Two benefits: The allocated FDEF (and IDEF) array gets slightly
+       smaller, and the `ttdebug' demo program has access to function
+       numbers without additional costs.
 
-       * src/base/ftobjs.c (FT_Get_First_Char, FT_Get_Next_Char): Protect
-       against endless loop in case of corrupted font header data.
+       Fortunately, no changes to FontForge are necessary – this is the
+       only external TrueType debugger I know of, but others may exist and
+       should check the code accordingly.
 
-2010-05-26  Werner Lemberg  <wl@gnu.org>
+       * src/truetype/ttinterp.h (TT_CallRec): Replace `Cur_Restart' and
+       `Cur_End' with a pointer to the corresponding `TT_DefRecord'
+       structure.
 
-       Remove unused variable.
-       Found by Graham.
+       * src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF, Ins_ENDF,
+       Ins_CALL, Ins_LOOPCALL, Ins_UNKNOWN, TT_RunIns <Invalid_Opcode>):
+       Updated.
 
-       * src/autofit/afhints.c (af_glyph_hints_reload): Remove unused
-       variable `first' in first block.
+2013-10-27  Werner Lemberg  <wl@gnu.org>
 
-2010-05-22  Werner Lemberg  <wl@gnu.org>
+       [sfnt] Implement support for `OS/2' table version 5.
 
-       Fix various memory problems found by linuxtesting.org.
+       See
 
-       * src/base/ftgxval.c (FT_TrueTypeGX_Free, FT_ClassicKern_Free),
-       src/base/ftotval.c (FT_OpenType_Free), src/base/ftpfr.c
-       (ft_pfr_check): Check `face'.
+         http://typedrawers.com/discussion/470/new-microsoft-size-specific-design-selection-mechanism
 
-       * src/base/ftobjs.c (FT_Get_Charmap_Index): Check `charmap' and
-       `charmap->face'.
-       (FT_Render_Glyph): Check `slot->face'.
-       (FT_Get_SubGlyph_Info): Check `glyph->subglyphs'.
+       for the announcement.
 
-2010-05-22  Werner Lemberg  <wl@gnu.org>
+       * include/freetype/tttables.h (TT_OS2): Add fields
+       `usLowerPointSize' and `usUpperPointSize'.  Since FreeType returns
+       this structure only as a pointer through `FT_Get_Sfnt_Table', there
+       shouldn't be any ABI problems.
 
-       autofit: Remove dead code.
-       Suggested by Graham.
+       * src/sfnt/ttload.c (tt_face_load_os2): Implement it.
 
-       * src/autofit/afhints.c (af_glyph_hints_compute_inflections):
-       Removed.
-       (af_glyph_hints_reload): Remove third argument.
-       Update all callers.
+       * docs/CHANGES: Updated.
 
-2010-05-21  Bram Tassyns  <bramt@enfocus.be>
+2013-10-24  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #27987.
+       * README.git, docs/CHANGES, docs/INSTALL: Updated.
 
-       * src/cff/cffobjs.c (remove_subset_prefix): New function.
-       (cff_face_init): Use it to adjust `cffface->family_name'.
+2013-10-24  John Cary  <cary@txcorp.com>
 
-2010-05-20  Werner Lemberg  <wl@gnu.org>
+       Provide cmake support.
 
-       TrueType: Make FreeType ignore maxSizeOfInstructions in `maxp'.
+       * CMakeLists.txt: New file.
 
-       Acroread does the same.
+2013-10-23  Kenneth Miller  <kennethadammiller@yahoo.com>
+           Werner Lemberg  <wl@gnu.org>
 
-       * src/truetype/ttgload.c (TT_Process_Composite_Glyph): Call
-       `Update_Max' to adjust size of instructions array if necessary and
-       add a rough safety check.
+       Provide support for x64 builds in Visual C++ project files.
 
-       (load_truetype_glyph): Save `loader->byte_len' before recursive
-       call.
+       * src/builds/win32: Renamed to...
+       * src/builds/windows: This.
 
-       * src/truetype/ttinterp.h, src/truetype/ttinterp.c (Update_Max):
-       Declare it as FT_LOCAL.
+       * src/builds/windows/vc2010/*: Updated to handle x64 target.
 
-2010-05-18  Hongbo Ni  <hongbo@njstar.com>
+       * src/builds/windows/*.mk, docs/INSTALL.GNU: s/win32/windows/ where
+       appropriate.
 
-       Apply Savannah patch #7196.
+2013-10-22  Werner Lemberg  <wl@gnu.org>
 
-       * src/cff/cffgload.c (cff_slot_load): Prevent crash if CFF subfont
-       index is out of range.
+       * src/base/md5.c, src/base/md5.h: Updated to recent version.
 
-2010-05-11  Werner Lemberg  <wl@gnu.org>
+       * src/base/ftobjs.c: Updated; `md5.c' no longer uses `free'.
 
-       * docs/formats.txt: Give pointer to PCF documentation.
-       Information provided by Alan Coopersmith
-       <alan.coopersmith@oracle.com>.
+       The canonical URL to get updates for this file is
 
-2010-05-10  Ken Sharp  <ken.sharp@artifex.com>
+         http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/popa3d/popa3d/md5/
 
-       Fix Savannah bug #29846.
+       as the author told me in private communication.
 
-       Previously we discovered fonts which used `setcurrentpoint' to set
-       the initial point of a contour to 0,0.  This caused FreeType to
-       raise an error, because the `setcurrentpoint' operator is only
-       supposed to be used with the results from an OtherSubr subroutine.
+2013-10-19  Werner Lemberg  <wl@gnu.org>
 
-       This was fixed by simply ignoring the error and carrying on.
+       [autofit] s/SMALL_TOP/X_HEIGHT/.
 
-       Now we have found a font which uses setcurrentpoint to actually
-       establish a non-zero point for a contour during the course of a
-       glyph program.  FWIW, these files may be produced by an application
-       called `Intaglio' on the Mac, when converting TrueType fonts to
-       Type 1.
+       * src/autofit/afblue.dat: Updated.
 
-       The fix allows the new invalid behaviour, the old invalid behaviour
-       and real proper usage of the operator to work the same way as Adobe
-       interpreters apparently do.
+       * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
 
-       (t1_decoder_parse_charstrings): Make `setcurrentpoint' use the top
-       two elements of the stack to establish unconditionally the current x
-       and y coordinates.
+       * src/autofit/aflatin.c, src/autofit/aflatin.h,
+       src/autofit/atlatin2.c: Updated.
 
-       Make the `flex' subroutine handling (OtherSubr 0) put the current
-       x,y coordinates onto the stack, instead of two dummy uninitialised
-       values.
+2013-10-19  Werner Lemberg  <wl@gnu.org>
+
+       * src/autofit/afblue.dat: s/MINOR/DESCENDER/.
+
+       * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+2013-10-16  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Add description strings to script entries.
+
+       Currently, this is unused.
+
+       * src/autofit/afscript.h: Do it.
+       * src/autofit/afglobal.c, src/autofit/afpic.c,
+       src/autofit/aftypes.h: Updated.
+
+2013-10-16  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Improve tracing message for extra light flag.
+
+       * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Do it.
+
+2013-10-15  Chongyu Zhu  <lembacon@gmail.com>
+
+       [arm] Fix thumb2 inline assembly under LLVM.
+
+       When using `ADD' with an immediate operand, the instruction is
+       actually `ADD Rd, Rn, #<imm12>', that is, the maximum of the
+       immediate operand cannot exceed 4095.  It will fail to compile with
+       LLVM.
+
+       However, in GCC, due to some legacy compatibility considerations,
+       `ADD.W' will be automatically emitted when the immediate operand is
+       larger than 4095.
+
+       * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h
+       (FT_MulFix_arm) [__GNUC__]: Support clang compiler.
+
+       * src/truetype/ttinterp.c (TT_MulFix14_arm) [__GNUC__]: Ditto.
+
+2013-10-12  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Improve tracing of `latin' hinter.
+
+       * src/autofit/aflatin.c (af_latin_metrics_init_blues): Report blue
+       zone types.
+       (af_latin_metrics_scale_dim): Report scaling changes due to x height
+       alignment.
+       Report scaled stroke width and blue zone values.
+
+2013-10-03  Dave Arnold  <darnold@adobe.com>
+
+       * src/cff/cf2font.c (cf2_computeDarkening): Avoid division by zero.
+
+       Note that the old code avoided using a region of the piecewise
+       linear function where the slope was zero.  The recovery was to use a
+       different section of the function, which produced a different,
+       incorrect amount of darkening.
+
+2013-10-02  Darrell Bellert  <darrell.bellert@hl.konicaminolta.us>
+
+       * src/sfnt/ttload.c (tt_face_load_pclt): Fix `pclt_fields'.
+
+2013-10-02  Dave Arnold  <darnold@adobe.com>
+
+       * src/cff/cf2font.c (cf2_computeDarkening): Initialize darkenAmount.
+
+       This line was lost in commit 89ca1fd6 (from 2013-06-25).  The effect
+       is to use a previous darkening amount when producing an unhinted,
+       unscaled outline.  This can cause autohint samples in ftgrid and
+       ftview to be based on darkened CFF outlines instead of unhinted,
+       undarkened ones.
+
+2013-09-29  Dave Arnold  <darnold@adobe.com>
+
+       Fix Savannah bug #39295.
+
+       The bug was caused by switching to the initial hintmap (the one in
+       effect when `moveto' executes) just before drawing the final element
+       in the charstring.  This ensured that the path was closed (in both
+       Character Space and Device Space).  But if the final element was a
+       curve and if the final hintmap was different enough from the initial
+       one, then the curve was visibly distorted.
+
+       The first part of the fix is to draw the final curve using the final
+       hintmap as specified by the charstring.  This corrects the
+       distortion but does not ensure closing in Device Space.  It may
+       require the rasterizer to automatically generate an extra closing
+       line.  Depending on the hintmap differences, this line could be from
+       zero to a couple pixels in length.
+
+       The second part of the fix covers the case where the charstring
+       subpath is closed with an explicit line.  We now modify that line's
+       end point to avoid the distortion.
+
+       Some glyphs in the bug report font (TexGyreHeros-Regular) that show
+       the change are:
+
+         25ppem    S (98)
+         24ppem    eight (52)
+         25.5ppem  p (85)
+
+       Curves at the *end* of a subpath are no longer distorted.  However,
+       some of these glyphs have bad hint substitutions in the middle of a
+       subpath, and these are not affected.
+
+       The patch has been tested with a set of 106 fonts that shipped with
+       Adobe Creative Suite 4, together with 756 Open Source CFF fonts from
+       Google Fonts.  There are 1.5 million glyphs, of which some 20k are
+       changed with the fix.  A sampling of a few hundred of these changes
+       have been examined more closely, and the changes look good (or at
+       least acceptable).
+
+       * src/cff/cf2hints.h (CF2_GlyphPathRec): New element `pathIsClosing'
+       to indicate that we synthesize a closepath line.
+
+       * src/cff/cf2hints.c (cf2_glyphpath_init): Updated.
+       (cf2_glyphpath_pushPrevElem): If closing, use first hint map (for
+       `lineto' operator) and adjust hint zone.
+       For synthesized closing lines, use end point in first hint zone.
+       (cf2_glyphpath_lineTo): Take care of synthesized closing lines.  In
+       particular, shift the detection of zero-length lines from character
+       space to device space.
+       (cf2_glyphpath_closeOpenPath): Remove assertion.
+       Updated.
+
+2013-09-25  Werner Lemberg  <wl@gnu.org>
+
+       * src/autofit/aflatin.c (af_{grek,cyrl}_uniranges): Fix arrays.
+
+2013-09-25  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
+       [bdf, pcf] Refuse non-zero face_index.
+
+       Suggested by Akira Tagoh, see
+
+         http://lists.gnu.org/archive/html/freetype/2013-09/msg00030.html
+
+       * src/bdf/bdfdrivr.c (BDF_Face_Init): Return `Invalid_Argument'
+       error if the font could be opened but non-zero `face_index' is
+       given.
+       * src/pcf/pcfdrivr.c (PCF_Face_Init): Ditto.
+
+       * src/type42/t42objs.c (T42_Face_Init): Remove unrequired FT_UNUSED
+       macro for `face_index' because it is validated later.
+
+2013-09-23  Werner Lemberg  <wl@gnu.org>
+
+       Fix Savannah bug #40090.
+
+       * src/autofit/afcjk.c (af_cjk_metrics_scale): Revert commit
+       306f8c5d (from 2013-08-25) affecting this function.
+
+2013-09-22  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Disunify Cyrillic and Greek handling from Latin.
+
+       * src/autofit/afscript.h: Add Cyrillic and Greek.
+
+       * src/autofit/afblue.dat (AF_BLUE_STRINGSET_GREK,
+       AF_BLUE_STRINGSET_CYRL): Add blue zones for Greek and Cyrillic.
+       (AF_BLUE_STRINGSET_LATN): Fix typo.
+       * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+       * src/autofit/aflatin.c (af_grek_uniranges, af_cyrl_uniranges): New
+       arrays.
+       (af_grek_script_class, af_cyrl_script_class): New scripts.
+       * src/autofit/aflatin.h: Updated.
+
+2013-09-20  Werner Lemberg  <wl@gnu.org>
+
+       * docs/CHANGES: Updated.
+
+2013-09-20  Behdad Esfahbod  <behdad@behdad.org>
+
+       Fix vertical size of emboldened glyphs.
+
+       Cf. https://bugzilla.gnome.org/show_bug.cgi?id=686709
+
+       * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Adjust `horiBearingY'
+       also.
+
+2013-09-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+       * include/freetype/ftoutln.h: Correct FT_Outline_Get_Orientation
+       algorithm description.
+
+2013-09-11  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Improve Hebrew rendering.
+
+       This change introduces a new blue zone property
+       `AF_BLUE_PROPERTY_LATIN_LONG' to make the auto-hinter ignore short
+       top segments.
+
+       * src/autofit/afblue.dat: Fix Hebrew blue strings.
+       Use AF_BLUE_PROPERTY_LATIN_LONG for AF_BLUE_STRING_HEBREW_TOP.
+
+       * src/autofit/afblue.hin (AF_BLUE_PROPERTY_LATIN_LONG): New macro.
+
+       * src/autofit/afblue.c, src/autofit/afblue.h: Updated.
+
+       * src/autofit/aflatin.c (af_latin_metrics_init_blues): Handle
+       `AF_LATIN_IS_LONG_BLUE'.
+
+       * src/autofit/aflatin.h (AF_LATIN_IS_LONG_BLUE): New macro.
+
+2013-08-28  Behdad Esfahbod  <behdad@google.com>
+
+       [sfnt] Fix frame access while reading WOFF table directory.
+
+       * src/sfnt/sfobjs.c (woff_open_font): Using single memory frame
+       while reading the directory entries for the whole loop.
+
+2013-08-29  Werner Lemberg  <wl@gnu.org>
+            Behdad Esfahbod  <behdad@google.com>
+
+       Implement support for WOFF containers.
+
+       We simply synthesize a SFNT from the WOFF, create a memory stream
+       for the new data, and load the SFNT as usual.
+
+       Does NOT add any API to access WOFF metadata or private blocks.
+
+       * include/freetype/internal/tttypes.h (WOFF_HeaderRec,
+       WOFF_TableRec): New structures.
+
+       * include/freetype/tttags.h (TTAG_wOFF): New macro.
+
+       * src/base/ftobjs.c (FT_Open_Face): Set `stream' after calling
+       `open_face'.
+
+       * src/sfnt/sfobjs.c [FT_CONFIG_OPTION_SYSTEM_ZLIB]: Include
+       `FT_GZIP_H'.
+       (WRITE_BYTE, WRITE_USHORT, WRITE_ULONG): New temporary macros for
+       writing to a stream.
+       (sfnt_stream_close, compare_offsets, woff_open_font): New functions.
+       (sfnt_open_font): Handle `TTAG_wOFF'.
+       (sfnt_init_face): Set `stream' after calling `sfnt_open_font'.
+
+       * src/truetype/ttobjs.c (tt_face_init): Set `stream' after calling
+       `sfnt->init_face'.
+
+       * src/base/ftobjs.c (open_face): Use a pointer to FT_Stream as an
+       argument so that a changed stream survives.
+       Update callers.
+
+2013-08-28  Werner Lemberg  <wl@gnu.org>
+
+       [gzip] New function `FT_Gzip_Uncompress'.
+
+       This is modeled after zlib's `uncompress' function.  We need this
+       for WOFF support.
+
+       * include/freetype/ftgzip.h, src/gzip/ftgzip.c (FT_Gzip_Uncompress):
+       New function.
+
+       * src/gzip/rules.mk: Rewrite to better reflect dependencies.
+
+2013-08-28  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Fix `make multi' compilation.
+
+       * src/autofit/afblue.cin, src/autofit/afblue.c: Don't include
+       `afblue.h' but `aftypes.h'.
+       * src/autofit/afcjk.c: Don't include `aftypes.h' but `afglobal.h'.
+
+2013-08-28  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Fix C++ compilation.
+
+       * src/autofit/afglobal.c (af_face_globals_get_metrics),
+       src/autofit/afdummy.c (af_dflt_script_class), src/autofit/afindic.c
+       (af_deva_script_class): Use proper casts.
+
+2013-08-27  Behdad Esfahbod  <behdad@google.com>
+
+       * src/sfnt/ttload.c (tt_face_load_font_dir): Fix sign typos.
+
+2013-08-27  Behdad Esfahbod  <behdad@google.com>
+
+       FT_Open_Face: Improve external stream handling.
+
+       If the font's `clazz->init_face' function wants to swap to new
+       stream, handling of whether original stream was external could
+       result to either memory leak or double free.  Mark externality into
+       face flags before calling `init_face' such that the clazz can handle
+       external streams properly.
+
+       * src/base/ftobjs.c (FT_Open_Face): Move code to set
+       FT_FACE_FLAG_EXTERNAL_STREAM to...
+       (open_face): This function.
+
+2013-08-27  Werner Lemberg  <wl@gnu.org>
+
+       Remove `FT_SqrtFixed' function.
+
+       It's no longer used.
+
+       * include/freetype/internal/ftcalc.h, src/base/ftcalc.c: Do it.
+
+2013-08-27  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] While tracing, report script names instead of ID values.
+
+       * src/autofit/afglobal.c (af_script_names) [FT_DEBUG_LEVEL_TRACE]:
+       New array.
+       * src/autofit/afglobal.h: Updated.
+
+       * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
+       af_cjk_hint_edges): Use `af_script_names'.
+       * src/autofit/aflatin.c (af_latin_metrics_init_widths,
+       af_latin_hint_edges): Ditto.
+
+2013-08-26  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Report used script while hinting a glyph.
+
+       * src/autofit/afcjk.c (af_cjk_hint_edges), src/autofit/aflatin.c
+       (af_latin_hint_edges): Implement it.
+
+2013-08-26  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Add support for Hebrew script.
+
+       * src/autofit/afblue.dat: Add blue strings for Hebrew.
+       * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+       * src/autofit/aflatin.c (af_hebr_uniranges): New array.
+       (af_hebr_script_class): New script.
+       * src/autofit/aflatin.h, src/autofit/afscript.h: Updated.
+
+2013-08-26  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Improve tracing messages.
+
+       * src/autofit/afcjk.c (af_cjk_metrics_init_widths): Mention script
+       ID in tracing message.
+       (af_cjk_metrics_init_blues): Initialize `axis' outside of the inner
+       loop.
+       Improve tracing messages.
+       (af_cjk_hint_edges) [FT_DEBUG_LEVEL_TRACE]: New variable
+       `num_actions' to count hinting actions.
+       Improve tracing messages.
+
+       * src/autofit/aflatin.c (af_latin_metrics_init_widths): Mention
+       script ID in tracing message.
+       (af_latin_metrics_init_blues, af_latin_hint_edges): Improve tracing
+       messages.
+
+2013-08-26  Werner Lemberg  <wl@gnu.org>
+
+       Better tracing of loaded glyphs.
+
+       Previously, the loading of a glyph was traced at level 4, if at all.
+       With this change, all font loading routines emit a tracing message
+       at level 1, making it easier to select tracing output (for example
+       using F2_DEBUG="any:1 afhints:7 aflatin:7").
+
+       * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Add tracing message.
+       * src/cff/cffdrivr.c (cff_glyph_load): Ditto.
+       * src/cff/cffgload.c (cff_decoder_prepare): Improve tracing
+       messages.
+       * src/cid/cidgload.c (cid_load_glyph): Use level 1 for tracing
+       message.
+       * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Ditto.
+       * src/pfr/pfrobjs.c (pfr_slot_load): Add tracing message.
+       * src/truetype/ttgload.c (TT_Load_Glyph): Ditto.
+       * src/type1/t1gload.c (T1_Load_Glyph): Ditto.
+       * src/type42/t42objs.c (T42_GlyphSlot_Load): Ditto.
+       * src/winfonts/winfnt.c (FNT_Load_Glyph): Ditto.
+
+2013-08-26  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Fix script selection.
+
+       * src/autofit/afglobal.c (af_face_globals_get_metrics): Use
+       `AF_SCRIPT_DFLT', not value 0.
+       Simplify code.
+
+       * src/autofit/afscript.h: Sort by script name.
+
+2013-08-26  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Make `dummy' hinter work as expected.
+
+       * src/autofit/afdummy.c (af_dummy_hints_init): Properly set scaling
+       information.
+       (af_dummy_hints_apply): Scale the glyphs.
+
+2013-08-25  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Make `cjk' module use blue stringsets.
+
+       * src/autofit/afcjk.c (AF_CJK_MAX_TEST_CHARACTERS): Removed.
+       (af_cjk_hani_blue_chars): Removed.
+       (AF_CJK_BLUE_TYPE_*): Removed.
+       (af_cjk_metrics_init_blues): Replace AF_CJK_MAX_TEST_CHARACTERS with
+       AF_BLUE_STRING_MAX_LEN.
+       Change loops to use offsets (in file `afblue.h') into the new arrays
+       `af_blue_stringsets' and `af_blue_strings' (in file `afblue.c').
+       Instead of three dimensions (as used in the old blue string array)
+       we now use properties to do the same, saving one loop nesting level.
+
+       * src/autofit/afcjk.h: Remove old enumeration values superseded by
+       the new data in `afblue.h'.
+       (AF_CJK_IS_TOP_BLUE, AF_CJK_IS_HORIZ_BLUE, AF_CJK_IS_FILLED_BLUE,
+       AF_CJK_IS_RIGHT_BLUE): New macros, to be used in
+       `af_cjk_metrics_init_blues'.
+       (AF_CJK_BLUE_IS_RIGHT): Remove this now redundant enum value.
+       (AF_CJK_BLUE_IS_TOP): Renamed to...
+       (AF_CJK_BLUE_TOP): This.
+       (AF_CJK_MAX_BLUES): Remove.
+       (AF_CJKAxisRec): Updated.
+
+2013-08-25  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Typo.
+
+       * src/autofit/afblue.hin, src/autofit/afblue.c (GET_UTF8_CHAR): Use
+       cast.
+
+2013-08-25  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Synchronize `cjk' with `latin' module (and vice versa).
+
+       * src/autofit/afcjk.c (af_cjk_metrics_init_widths): Add tracing
+       messages.
+       (af_cjk_metrics_init_blues): Don't pass blue string array as
+       argument but use the global array directly.
+       Use `outline' directly.
+       Update and add tracing messages.
+       (af_cjk_metrics_init): Simplify code.
+       (af_cjk_metrics_scale_dim): Improve tracing message.
+       (af_cjk_metrics_scale): Synchronize.
+
+       * src/autofit/aflatin.c (af_latin_metrics_init_widths,
+       af_latin_metrics_init_blues): Improve and add tracing messages.
+
+2013-08-25  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Make `latin' module use blue stringsets.
+
+       * src/autofit/aflatin.c (AF_LATIN_MAX_TEST_CHARACTERS): Removed.
+       (af_latin_blue_chars): Removed.
+       (af_latin_metrics_init_blues): Replace AF_LATIN_MAX_TEST_CHARACTERS
+       with AF_BLUE_STRING_MAX_LEN.
+       Change loops to use offsets (in file `afblue.h') into the new arrays
+       `af_blue_stringsets' and `af_blue_strings' (in file `afblue.c').
+       Use `AF_LATIN_IS_SMALL_TOP_BLUE' macro.
+
+       * src/autofit/aflatin.h: Remove old enumeration values superseded by
+       the new data in `afblue.h'.
+       (AF_LATIN_IS_TOP_BLUE): Updated definition.
+       (AF_LATIN_IS_SMALL_TOP_BLUE): New macro.
+       (AF_LATIN_MAX_BLUES): Remove.
+       (AF_LatinAxisRec): Updated.
+
+2013-08-25  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Add blue stringsets.
+
+       * src/autofit/aftypes.h: Include `afblue.h'.
+       (AF_ScriptClassRec): Add `blue_stringset' field.
+       (AF_DEFINE_SCRIPT_CLASS): Updated.
+
+       * src/autofit/autofit.c: Include `afblue.c'.
+
+       * src/autofit/afcjk.c (af_hani_script_class), src/autofit/afdummy.c
+       (af_dflt_script_class), src/autofit/afindic.c
+       (af_deva_script_class), src/autofit/aflatin.c
+       (af_latn_script_class), src/autofit/aflatin2.c
+       (af_ltn2_script_class): Updated.
+
+       * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `afblue.c'.
+
+2013-08-25  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Introduce data file for blue strings.
+
+       The idea is to have a central file which gets processed by a Perl
+       script to create proper `.c' and `.h' files using templates.  There
+       are two other reasons to do that:
+
+         . The data file should be easily readable.  We use UTF-8 encoding
+           which then gets converted to single bytes.
+
+         . Since the number of supported scripts will increase soon, the
+           current usage of blue string arrays is a waste of space.  Using
+           the Perl script it is possible to imitate jagged arrays,
+           defining enumeration constants as offsets into the arrays.
+
+       This commit only adds files without changing any functionality.
+
+       * src/autofit/afblue.dat: New data file.
+       * src/tools/afblue.pl: New Perl script for processing `afblue.dat'.
+
+       * src/autofit/afblue.cin, src/autofit/afblue.hin: New template files
+       for...
+       * src/autofit/afblue.c, src/autofit/afblue.c: New source files.
+       To avoid a dependency on Perl, we add them too.
+
+2013-08-19  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+       [base] Enable new algorithm for `BBox_Cubic_Check'.
+
+       * src/base/ftbbox.c: Enable new BBox_Cubic_Check algorithm, remove
+       the old one.
+       Improve comments.
+
+2013-08-18  Werner Lemberg  <wl@gnu.org>
+
+       * builds/unix/unix-def.in (freetype2.pc): Don't set executable bit.
+
+2013-08-18  Werner Lemberg  <wl@gnu.org>
+
+       Fix Savannah bug #39804.
+
+       * builds/unix/configure.raw (LIBPNG): Define and export.
+       * builds/unix/freetype-config.in, builds/unix/freetype2.in: Handle
+       libpng.
+
+2013-08-17  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+       [base] Clean up BBox_Conic_Check.
+
+       * src/base/ftbbox.c (BBox_Conic_Check): Remove redundant checks for
+       extremum at the segment ends, which are already within the bbox.
+       Slightly modify calculations.
+
+2013-08-15  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+       [base] Finish experimental (disabled) BBox_Cubic_Check implementation.
+
+       * src/base/ftbbox.c (BBox_Cubic_Check): Scale arguments to improve
+       accuracy and avoid overflows.
+
+2013-08-13  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+       [base] Refactor experimental (disabled) BBox_Cubic_Check.
+
+       * src/base/ftbbox.c (BBox_Cubic_Check): Implement the minimum search
+       as the mirror image of the maximum search implemented here...
+       (update_max): New function.
+
+2013-08-06  John Tytgat  <John.Tytgat@esko.com>
+
+       Fix Savannah bug #39702.
+
+       * src/cff/cffload.c (cff_index_get_pointers): Check for `cur_offset
+       != 0'; this stronger test is mandated by the CFF specification.
+       Fix test for INDEX structures which have one or more empty entries
+       at the end.
+
+2013-08-05  Werner Lemberg  <wl@gnu.org>
+
+       Fix gcc pragmas, part 2.
+
+       * src/truetype/ttinterp.c (TT_MulFix14_long_long,
+       TT_DotFix14_long_long): `#pragma gcc diagnostic {push,pop}' has been
+       introduced with gcc version 4.6.
+
+2013-08-05  Werner Lemberg  <wl@gnu.org>
+
+       Fix gcc pragmas.
+
+       * src/truetype/ttinterp.c (TT_MulFix14_long_long,
+       TT_DotFix14_long_long): Older gcc versions don't accept diagnostic
+       pragmas within a function body.
+
+2013-08-05  Werner Lemberg  <wl@gnu.org>
+
+       Fix Savannah bug #39700.
+
+       * builds/unix/ftconfig.h: Synchronize with
+       `include/freetype/config/ftconfig.h'.
+
+       * builds/vms/ftconfig.h: Ditto.
+       Make the differences to the master `ftconfig.h' file as small as
+       possible for easier maintainance.
+
+2013-08-05  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Improve handling of `near' points.
+
+       Points which are very near to each other are now marked as such.
+       The `weak' flag is then computed by using the `in' vector of the
+       first and the `out' vector of the last point of a group of near
+       points.
+
+       For example, this fixes the rendering of glyph `Oslash' in
+       `Roboto-Thin.ttf'.
+
+       * src/autofit/afhints.h (AF_Flags): New value `AF_FLAGS_NEAR'.
+
+       * src/autofit/afhints.c (af_glyph_hints_reload): Introduce
+       the heuristic value `near_limit' to decide whether the current point
+       is near to the previous one, then set `AF_FLAG_NEAR' accordingly.
+       Store good `in' vector (of last non-near point) in
+       `last_good_in_{x,y}' and use it as an argument to
+       `ft_corner_is_flat' if necessary.
+
+2013-08-02  Werner Lemberg  <wl@gnu.org>
+
+       * include/freetype/ftcffdrv.h: Improve documentation.
+       This is based on blog entries from David Lemon and Dave Arnold (both
+       from Adobe) with kind permission.  Dave also helped in
+       proof-reading.
+
+2013-08-02  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Move declaration of scripts into separate file.
+
+       This has the benefit that we don't need to duplicate the data at
+       different places.
+
+       * src/autofit/afscript.h: New file.
+
+       * src/autofit/aftypes.h (AF_Script): Include `afscript.h' to define
+       the enumeration values.
+
+       * src/autofit/afglobal.c: Include `afscript.h' to get the script
+       specific header files.
+       (af_script_classes): Include `afscript.h' to fill this array.
+
+       * src/autofit/afpic.c: Include `afscript.h' to get the script
+       specific header files.
+       (autofit_module_class_pic_init): Include `afscript.h' for
+       initialization.
+       * src/autofit/afpic.h (AF_SCRIPT_CLASSES_COUNT,
+       AF_SCRIPT_CLASSES_REC_COUNT): Removed.  Use `AF_SCRIPT_MAX' instead.
+
+       * src/autofit/rules.mk (AUTOF_DRV_H): Updated.
+
+2013-08-02  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Move declaration of writing systems into separate file.
+
+       This has the benefit that we don't need to duplicate the data at
+       different places.
+
+       * src/autofit/afwrtsys.h: New file.
+
+       * src/autofit/aftypes.h (AF_WritingSystem): Include `afwrtsys.h' to
+       define the enumeration values.
+
+       * src/autofit/afglobal.c: Include `afwrtsys.h' to get the writing
+       system specific header files.
+       Include `afpic.h'.
+       (af_writing_system_classes): Include `afwrtsys.h' to fill this
+       array.
+
+       * src/autofit/afpic.c: Include `afwrtsys.h' to get the writing
+       system specific header files.
+       (autofit_module_class_pic_init): Include `afwrtsys.h' for
+       initialization.
+       * src/autofit/afpic.h (AF_WRITING_SYSTEM_CLASSES_COUNT,
+       AF_WRITING_SYSTEM_CLASSES_REC_COUNT): Removed.  Use
+       `AF_WRITING_SYSTEM_MAX' instead.
+
+2013-08-02  Werner Lemberg  <wl@gnu.org>
+
+       [sfnt] Fix compilation with g++.
+
+       * src/sfnt/pngshim.c (error_callback, read_data_from_FT_stream): Use
+       cast.
+       (Load_SBit_Png): Pacify compiler.
+
+2013-08-02  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+            Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Fix `make multi'.
+
+       * include/freetype/config/ftconfig.h (FT_LOCAL_ARRAY,
+       FT_LOCAL_ARRAY_DEF): New macros.
+
+       * src/autofit/afglobal.c (af_writing_system_classes,
+       af_script_classes): Use FT_LOCAL_ARRAY_DEF.
+       * src/autofit/afglobal.h: Declare `af_writing_system_classes' and
+       `af_script_classes'.
+       * src/autofit/afloader.c: Include `afpic.h'.
+
+2013-08-01  Werner Lemberg  <wl@gnu.org>
+
+       Another round of cppcheck nitpicks.
+
+       The call was (from the top-level of the FreeType tree):
+
+         cppcheck --force \
+                  --enable=all \
+                  -I /usr/include \
+                  -I /usr/local/include \
+                  -I /usr/lib/gcc/i586-suse-linux/4.7/include \
+                  -I include \
+                  -I include/freetype \
+                  -I include/freetype/config \
+                  -I include/freetype/internal \
+                  -DFT2_BUILD_LIBRARY \
+                  . &> cppcheck.log
+
+       using cppcheck git commit f7e93f99.
+
+       Note that cppcheck still can't handle `#include FOO' (with `FOO' a
+       macro).
+
+       */* Improve variable scopes.
+       */* Remove redundant initializations which get overwritten.
+
+       * src/gxvalid/*: Comment out redundant code or guard it with
+       FT_DEBUG_LEVEL_TRACE.
+
+2013-07-30  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Introduce `writing systems'.
+
+       This patch adds a new top level to the auto-hinter's script class
+       hierarchy.  It defines `writing systems' which can contain multiple
+       scripts.
+
+       For example, the `latin' writing system (in file `aflatin.c') is
+       able to support scripts like Latin, Cyrillic, Armenian, etc., which
+       can be handled similarly.
+
+       Scripts are now named using four-letter OpenType tags.
+
+       * src/autofit/aftypes.h (AF_ScriptClassRec): Move relevant members
+       to...
+       (AF_WritingSystemClassRec): This new structure.  It holds pointers
+       to functions which can be shared among related scripts.
+       (AF_WritingSystem): New enumeration.
+       (AF_Script): Revised values using four-letter tags.
+       (AF_DEFINE_WRITING_SYSTEM_CLASS): New macro.
+       (AF_DEFINE_SCRIPT_CLASS): Updated.
+
+       * src/autofit/afglobal.c (af_writing_system_classes): New global,
+       constant array.
+       (af_script_classes): Updated.
+       (af_face_globals_free): Updated.
+       Remove assertion.
+       (af_face_globals_get_metrics): Updated.
+
+       * src/autofit/afglobal.h (AF_SCRIPT_FALLBACK)
+       [!AF_CONFIG_OPTION_CJK]: Handle this case.
+
+       * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
+       Updated.
+
+       * src/autofit/afpic.c (autofit_module_class_pic_init): Updated;
+       initialize structures for both writing systems and scripts.
+       * src/autofit/afpic.h: Updated.
+       (AF_WRITING_SYSTEM_CLASSES_GET): New macro.
+
+       * src/autofit/afcjk.c (af_cjk_writing_system_class): New writing
+       system.
+       (af_cjk_uniranges): Renamed to...
+       (af_hani_uniranges): This.
+       (af_cjk_script_class): Reduced and renamed to...
+       (af_hani_script_class): This.
+       * src/autofit/afcjk.h: Updated.
+
+       * src/autofit/afdummy.c (af_dummy_writing_system_class): New writing
+       system.
+       (af_dummy_script_class): Reduced and renamed to...
+       (af_dflt_script_class): This.
+       * src/autofit/afdummy.h: Updated.
+
+       * src/autofit/afindic.c (af_indic_writing_system_class): New writing
+       system.
+       (af_indic_uniranges): Renamed to...
+       (af_deva_uniranges): This.
+       (af_indic_script_class): Reduced and renamed to...
+       (af_deva_script_class): This.
+       * src/autofit/afcjk.h: Updated.
+
+       * src/autofit/aflatin.c (af_latin_writing_system_class): New writing
+       system.
+       (af_latin_uniranges): Renamed to...
+       (af_latn_uniranges): This.
+       (af_latin_script_class): Reduced and renamed to...
+       (af_latn_script_class): This.
+       * src/autofit/aflatin.h: Updated.
+
+       * src/autofit/aflatin2.c (af_latin2_writing_system_class): New
+       writing system.
+       (af_latin2_uniranges): Renamed to...
+       (af_ltn2_uniranges): This.
+       Synchronize ranges with `latin'.
+       (af_latin2_script_class): Reduced and renamed to...
+       (af_ltn2_script_class): This.
+       * src/autofit/aflatin2.h: Updated.
+
+2013-07-30  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Variable renaming.
+
+       * src/autofit/aftypes.h (AF_ScriptMetricsRec):
+       s/clazz/script_class/.
+       Update all users.
+
+2013-07-30  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
+       Ignore libpng-config under cross-building configuration,
+       because it will return the flags for the hosting environment.
+
+       * builds/unix/configure.raw: Ignore libpng-config when
+       `cross_compiling' == yes.
+
+2013-07-30  Behdad Esfahbod  <behdad@google.com>
+
+       Prevent division by zero by a transparent color.
+
+       * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra):
+       Return 0 immediately, when alpha channel is zero.
+
+2013-07-25  Behdad Esfahbod  <behdad@google.com>
+
+       Add FT_FACE_FLAG_COLOR and FT_HAS_COLOR.
+
+       Also disambiguate Google's color bitmap tables.
+
+       * include/freetype/freetype.h (FT_FACE_FLAG_COLOR, FT_HAS_COLOR):
+       New macros.
+
+       * include/freetype/internal/tttypes.h (TT_SbitTableType): Add
+       TT_SBIT_TABLE_TYPE_CBLC.
+
+       * src/sfnt/sfobjs.c (sfnt_load_face): Handle FT_FACE_FLAG_COLOR.
+
+       * src/sfnt/ttsbit.c (tt_face_load_sbit,
+       tt_face_load_strike_metrics, tt_face_load_sbit_image): Handle
+       TT_SBIT_TABLE_TYPE_CBLC.
+
+2013-07-24  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
+       [sfnt] Fix for `make multi' target.
+
+       * src/sfnt/pngshim.c (Load_SBit_Png): Use FT_LOCAL_DEF().
+
+2013-07-20  Werner Lemberg  <wl@gnu.org>
+
+       * docs/INSTALL.GNU: Updated.
+
+2013-07-20  Behdad Esfahbod  <behdad@google.com>
+
+       [sfnt] Fix `sbix' table version handling.
+
+       * src/sfnt/ttsbit.c (tt_face_load_sbit) [TT_SBIT_TABLE_TYPE_SBIX]:
+       USHORT version numbers are to be considered as `minor'.
+
+2013-07-19  Werner Lemberg  <wl@gnu.org>
+
+       [autofit] Fix segment classification for blue zones.
+
+       The old code (essentially unchanged since the very beginning)
+       incorrectly handled this configuration
+
+                      x -o- x
+                       /   \
+                      /     \
+                     /       \
+                    o         o
+
+       as flat and this
+
+                       o               o
+                      /               /
+                    x|              x|
+                     |               |
+                     o---------------o
+
+       as round.  (`o' and `x' are on and off points, respectively).
+
+       This is a major change which should improve the rendering results
+       enormously for many TrueType fonts, especially in the range approx.
+       20-40ppem, fixing the appearance of many overshoots.
+
+       * src/autofit/aflatin.c (af_latin_metrics_init_blues): Look at the
+       first and last points of the segment, not the points right before
+       and after.
+
+2013-07-19  Behdad Esfahbod  <behdad@google.com>
+
+       [sfnt] `sbix' fix-ups.
+
+       * src/sfnt/sfobjs.c (sfnt_load_face): Apple's `sbix' color bitmaps
+       are rendered scaled and then the `glyf' outline rendered on top.  We
+       don't support that yet, so just ignore the `glyf' outline and
+       advertise it as a bitmap-only font.
+
+       * src/sfnt/ttsbit.c (tt_face_load_strike_metrics)
+       [TT_SBIT_TABLE_TYPE_SBIX]: Return metrics in 26.6 units.
+       (tt_face_load_sbix_image): Typo.
+
+2013-07-18  Behdad Esfahbod  <behdad@google.com>
+
+       [sfnt] Add support for Apple's `sbix' color bitmap table.
+
+       * include/freetype/internal/tttypes.h (TT_SBit_MetricsRec): Widen
+       fields to FT_Short and FT_UShort, respectively.
+       (TT_SBitTableType): New enumeration.
+       (TT_FaceRec): Add `sbit_table_type' field.
+
+       * include/freetype/tttags.h (TTAG_sbix): New macro.
+
+       * src/sfnt/pngshim.c (Load_SBit_Png): Pass a more generic
+       FT_GlyphSlot argument instead FT_Bitmap.
+       Add flag to control map and metrics handling.
+       Update all users.
+
+       * src/sfnt/ttsbit.c: Include `ttmtx.h'.
+       (tt_face_load_eblc): Renamed to...
+       (tt_face_load_sbit): This.
+       Handlic `sbix' bitmaps.
+       (tt_face_free_eblc): Renamed to...
+       (tt_face_load_sbit): This.
+       Updated.
+       (tt_face_load_strike_metrics): Handle `sbix' bitmaps.
+       (tt_face_load_sbix_image): New function.
+       (tt_sbit_decoder_alloc_bitmap, tt_sbit_decoder_load_image,
+       tt_sbit_decoder_load_byte_aligned, tt_sbit_decoder_load_bit_aligned,
+       tt_sbit_decoder_load_compound, tt_sbit_decoder_load_png,
+       tt_sbit_decoder_load_image, tt_sbit_decoder_load_bitmap): Don't pass
+       and handle load flags.
+       (tt_sbit_decoder_load_bitmap) [!FT_CONFIG_OPTION_USE_PNG]: Better
+       handle formats 17-19.
+       Move color to grayscale conversion to...
+       (tt_face_load_sbit_image): Here.
+       Handle `sbix' bitmaps.
+
+       * src/sfnt/pngshim.h: Updated.
+       * src/sfnt/ttsbit.h: Updated.
+       * src/sfnt/sfdriver.c: Updated.
+
+2013-07-18  Werner Lemberg  <wl@gnu.org>
+
+       [sfnt] Ignore invalid magic number in `head' or `bhed'.
+
+       Other font engines seem to ignore it also.  Problem reported by
+       Hin-Tak Leung <htl10@users.sourceforge.net>.
+
+       * src/sfnt/ttload.c (check_table_dir): Don't abort but warn only if
+       we have an invalid magic number.
+
+2013-07-16  Werner Lemberg  <wl@gnu.org>
 
-2010-04-14  Ken Sharp  <ken.sharp@artifex.com>
+       [smooth] Fix segfault caused by previous commit.
 
-       Fix Savannah bug #29444.
+       * src/smooth/ftgrays.c (gray_set_cell): Always compute
+       `ras.invalid'.
 
-       * src/psaux/psobjs.c (t1_builder_start_point): Accept (invalid)
-       `lineto' immediately after `hsbw', in accordance with Acrobat, GS,
-       and others.
+2013-07-16  David Turner  <digit@google.com>
 
-2010-04-14  Michał Cichoń  <thedmd@artifexmundi.com>
+       [smooth] Improve performance.
 
-       Fix Savannah bug #27999.
+       Provide a work-around for an ARM-specific performance bug in GCC.
+       This speeds up the rasterizer by more than 5%.
 
-       * src/cache/ftcmanag.c (FTC_Manager_RemoveFaceID): Only remove
-       selected entry, not all.
+       Also slightly optimize `set_gray_cell' and `gray_record_cell' (which
+       also improves performance on other platforms by a tiny bit (<1%).
 
-2010-04-06  Jonathan Kew  <jfkthame@gmail.com>
+       * src/smooth/ftgrays.c (FT_DIV_MOD): New macro.
+       Use it where appropriate.
 
-       Add overflow check to `fvar' table.
+       (gray_record_cell, gray_set_cell, gray_move_to,
+       gray_convert_glyph_inner): Streamline condition handling.
 
-       * src/truetype/ttgxvar.c (TT_Get_MM_Var): Check axis and instance
-       count.
+2013-07-16  David Turner  <digit@google.com>
 
-2010-04-05  Ken Sharp  <ken.sharp@artifex.com>
+       [truetype] Add assembler code for TT_MulFix14 and TT_DotFix14.
 
-       Fix Savannah bug #29335.
+       This patch provides slightly optimized versions for ARM, x86, and
+       x86_64 CPUs if built with GCC.
 
-       * src/raster/ftraster.c (Line_Up): Use slow multiplication to
-       prevent overflow.  This shouldn't have any serious impact on speed,
-       however.
+       Also remove some dead code.
 
-2010-04-05  Werner Lemberg  <wl@gnu.org>
+       * src/truetype/ttinterp.c (TT_MulFix14_arm, TT_MulFix14_long_long,
+       TT_DotFix14_long_long): New functions.
 
-       Add new function `FT_Library_SetLcdFilterWeights'.
+2013-07-16  David Turner  <digit@google.com>
 
-       This is based on code written by Lifter
-       <http://unixforum.org/index.php?showuser=11691>.  It fixes
-       FreeDesktop bug #27386.
+       Optimize FT_MulFix for x86_64 GCC builds.
 
-       * src/base/ftlcdfil.c (FT_Library_SetLcdFilterWeights): New
-       function.
+       This patch provides an optimized `FT_MulFix' implementation for
+       x86_64 machines when FreeType is built with GCC, or compatible
+       compilers like Clang.
+
+       Example:
+         bin/ftbench -p -t 5 -s 14 -f 0008 Arial.ttf
+
+       Before:
+
+         Load                       4.863 us/op
+         Load_Advances (Normal)     4.816 us/op
+         Load_Advances (Fast)       0.028 us/op
+         Render                     2.753 us/op
+         Get_Glyph                  0.463 us/op
+         Get_CBox                   0.077 us/op
+         Get_Char_Index             0.023 us/op
+         Iterate CMap              13.898 us/op
+         New_Face                  12.368 us/op
+         Embolden                   0.028 us/op
+         Get_BBox                   0.302 us/op
+
+       After:
+
+         Load                       4.617 us/op
+         Load_Advances (Normal)     4.645 us/op
+         Load_Advances (Fast)       0.027 us/op
+         Render                     2.789 us/op
+         Get_Glyph                  0.460 us/op
+         Get_CBox                   0.077 us/op
+         Get_Char_Index             0.024 us/op
+         Iterate CMap              13.403 us/op
+         New_Face                  12.278 us/op
+         Embolden                   0.028 us/op
+         Get_BBox                   0.301 us/op
+
+       * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h
+       (FT_MulFix_x86_64): New function.
+
+2013-07-16  David Turner  <digit@google.com>
+
+       Speed up ARMv7 support.
+
+       When building for ARMv7 with thumb2 instructions, the optimized
+       `FT_MulFix_arm' assembly routine was not being used.
+
+       The reason for this is in the `ftconfig.h' header, namely:
+
+       - The assembly routine uses the `smull' instruction which is not
+         available when generating Thumb-1 machine code.  It is available
+         in Thumb-2 mode, though.
+
+       - The header was written a long time ago before Thumb-2 became
+         widely popular (e.g. with Android).  So it simply doesn't use the
+         assembly routine if the `__thumb__' built-in macro is defined.
+
+       - When compiling in Thumb-2 mode, the compiler will define both
+         `__thumb__' and `__thumb2__'.
+
+       By checking for `(__thumb2__ || !__thumb__)', we ensure that the
+       assembly routine is only avoided when generating Thumb-1 code.
 
-       * include/freetype/ftlcdfil.h: Updated.
+       Given that this is performance-sensitive function, this improves
+       `ftbench' as follows on a Galaxy Nexus:
+
+                                  Before (us/op)   After (us/op)
+
+         - loading Arial.ttf glyphs at 14 ppem [1]
+
+             Load                   34.285          33.098
+
+         - same operation with the light auto-hinter [2]
+
+             Load                   31.317          29.590
+
+         - same operation without hinting [3]
+
+             Load                    6.143           5.376
+
+         - loading Arial.ttf advances at 14 ppem [4]
+
+             Load_Advances (normal) 34.216          33.016
+             Load_Advances (fast)    0.176           0.176
+
+         [1] ftbench -t 5 -p -s 14 -b a -f 0008 Arial.ttf
+         [2] ftbench -t 5 -p -s 14 -b a -r 1 -f 0028 Arial.ttf
+         [3] ftbench -t 5 -p -s 14 -b a -f 000a Arial.ttf
+         [4] ftbench -t 5 -p -s 14 -b b -f 0008 Arial.ttf
+
+       * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h
+       (FT_MULFIX_ASSEMBLER): Fix handling for ARMv7.
+
+2013-06-28  Werner Lemberg  <wl@gnu.org>
 
        * docs/CHANGES: Updated.
 
-2010-04-01  John Tytgat  <John.Tytgat@esko.com>
+2013-06-27  Werner Lemberg  <wl@gnu.org>
+
+       * src/winfonts/winfnt.c (FNT_Load_Glyph): Fix bitmap width guard.
+
+2013-06-25  Werner Lemberg  <wl@gnu.org>
+
+       [cff] Add darkening limit to `darkening-parameters'.
+
+       * src/cff/cffdrivr.c (cff_property_set): Add check.
+
+2013-06-25  Werner Lemberg  <wl@gnu.org>
+
+       [cff] Add `darkening-parameters' property.
+
+       * include/freetype/ftcffdrv.h: Document it.
+
+       * src/cff/cffdrivr.c (cff_property_set, cff_property_get): Handle
+       `darkening-parameters' property.
+
+       * src/cff/cf2font.h (CF2_FontRec): Add `darkenParams' array.
+
+       * src/cff/cf2font.c (cf2_computeDarkening): Add `darkenParams'
+       argument and use it.
+       Update all callers.
+
+       * src/cff/cf2ft.c (cf2_decoder_parse_charstrings): Copy
+       `darken_params' values.
+
+       * src/cff/cffobjs.h (CFF_DriverRec): Add `darken_params' array.
+
+       * src/cff/cffobjs.c (cff_driver_init): Set default values for
+       `darken_params'.
+
+2013-06-25  Werner Lemberg  <wl@gnu.org>
+
+       [docmaker] Code shuffling.
+
+       * src/tools/docmaker/tohtml.py (re_url): Move regexp...
+       * src/tools/docmaker/sources.py: ... to this file.
+
+2013-06-25  Werner Lemberg  <wl@gnu.org>
+
+       [docmaker] Remove unused functions.
+
+       * src/tools/docmaker/content.py (DocMarkup.get_start,
+       DocBlock.get_markup_name): Removed.
+       * src/tools/docmaker/tohtml.py (html_quote0, dump_html_code,
+       HtmlFormatter.make_html_words): Removed.
+
+2013-06-25  Werner Lemberg  <wl@gnu.org>
+
+       * builds/freetype.mk (dll): Remove target.
+
+       Problem reported by Jörg Günnewig <joerg.guennewig@googlemail.com>.
+
+2013-06-25  Werner Lemberg  <wl@gnu.org>
+
+       [docmaker] Recognise URLs.
+
+       * src/tools/docmaker/tohtml.py (re_url): New regular expression.
+       (make_html_para): Use it.
+
+2013-06-19  Werner Lemberg  <wl@gnu.org>
+
+       * Version 2.5.0.1 released.
+       ===========================
+
+
+       Tag sources with `VER-2-5-0-1'.
+
+       * include/freetype/config/ftoption.h: Undefine
+       CFF_CONFIG_OPTION_OLD_ENGINE.
+       * devel/ftoption.h: Define CFF_CONFIG_OPTION_OLD_ENGINE.
+
+2013-06-19  Werner Lemberg  <wl@gnu.org>
+
+       * builds/unix/install.mk (install): Don't create `cache' directory.
+
+       Found by Peter Breitenlohner <peb@mppmu.mpg.de>.
+
+2013-06-19  Werner Lemberg  <wl@gnu.org>
+
+       * Version 2.5.0 released.
+       =========================
+
+
+       Tag sources with `VER-2-5-0'.
+
+       * docs/VERSION.DLL: Update documentation and bump version number to
+       2.5.0.
+
+       * 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/vc2010/freetype.vcxproj, builds/win32/vc2010/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.12/2.5.0/, s/2412/250/.
+
+       * include/freetype/freetype.h (FREETYPE_MINOR): Set to 5.
+       (FREETYPE_PATCH): Set to 0.
+
+       * builds/unix/configure.raw (version_info): Set to 16:2:10.
+
+       * src/base/ftobjs.c (FT_Open_Face): Pacify compiler.
+       * src/truetype/ttinterp.c (Ins_MSIRP, Ins_MIRP): Ditto.
+
+2013-06-18  Werner Lemberg  <wl@gnu.org>
+
+       Fix Savannah bug #39269.
+
+       * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Free memory in
+       case of reacollocation failures.
+
+2013-06-18  Andrew Church  <achurch+savannah@achurch.org>
+
+       Fix Savannah bug #39266.
+
+       If memory allocations fail at certain points while opening a font,
+       FreeType can either crash due to a NULL dereference or leak memory.
+
+       * include/freetype/internal/ftobjs.c (FT_Face_InternalRec,
+       FT_LibraryRec): Make `refcount' a signed integer.  If, for example,
+       FT_Open_Face() fails in a memory allocation before the face's
+       reference count is set to 1, a subsequent `FT_Done_Library' call
+       would otherwise loop over `FT_Done_Face' 2^32 times before freeing
+       the face.
+
+       * src/base/ftobjs.c (open_face): Initialize `stream' and friends
+       earlier.
+       (FT_Open_Face) <Fail>: Behave correctly if `node' is NULL.
+       (FT_Destroy_Module) <Fail>: Check that `renderer_clazz' is valid.
+
+2013-06-14  Werner Lemberg  <wl@gnu.org>
+
+       * src/smooth/ftgrays.c One final pragma to silence 64-bit MSVC.
+
+2013-06-06  Dave Arnold  <darnold@adobe.com>
+           Werner Lemberg  <wl@gnu.org>
+
+       [cff] Add code to Adobe's engine to handle ppem > 2000.
+
+       * src/cff/cffgload.c (cff_slot_load): If we get
+       FT_Err_Glyph_Too_Big, retry unhinted and scale up later on.
+
+2013-06-12  Werner Lemberg  <wl@gnu.org>
+
+       Another try on pragmas.
+
+       * include/freetype/internal/ftdebug.h: Move pragmas to...
+       * include/freetype/internal/internal.h: ... this file since it gets
+       included by all source files.
+       * include/freetype/internal/ftserv.h: Remove pragma which has no
+       effect.
+
+2013-06-12  Werner Lemberg  <wl@gnu.org>
+
+       * include/freetype/internal/ftdebug.h: Disable MSVC warning C4127.
+
+       This partially undoes commit 3f6e0e0c.
+
+2013-06-12  Werner Lemberg  <wl@gnu.org>
+
+       More compiler warning fixes.
+
+       */*: Use cast to `FT_Bool' (or `Bool') where appropriate.
+
+2013-06-10  Werner Lemberg  <wl@gnu.org>
+
+       [truetype] Improve handling of broken sbit advance widths.
+
+       * src/truetype/ttgload.c (TT_Load_Glyph): Use the glyph's (scaled)
+       `linearHoriAdvance' if the sbit's `horiAdvance' value is zero.
+
+       Cf. font `Fixedsys Excelsior' v3.01 (FSEX300.ttf), glyph A, 16ppem.
+
+2013-06-10  Werner Lemberg  <wl@gnu.org>
+
+       [sfnt] Improve embedded bitmap tracing.
+
+       * src/base/ftobjs.c (FT_Request_Size): Move trace message regarding
+       bitmap strike match to...
+       (FT_Match_Size): This function.
+
+       * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics,
+       tt_sbit_decoder_load_byte_aligned, tt_sbit_decoder_load_bit_aligned,
+       tt_sbit_decoder_load_compound, tt_sbit_decoder_load_png,
+       tt_sbit_decoder_load_image): Decorate with tracing messages.
+
+2013-06-10  Werner Lemberg  <wl@gnu.org>
+
+       Fix Savannah bug #39160.
+
+       * src/truetype/ttinterp.c (Ins_SDPVTL): Set projection vector too
+       for the degenerate case.
+
+2013-06-09  David Turner  <digit@google.com>
+
+       * src/cache/ftcmanag.c (FTC_Manager_Reset): Add missing cache flush.
+
+       This code, present since eight(!) years in the unused `CACHE'
+       branch, has been forgotten to apply to the master branch.  It's
+       really amazing that noone has ever complained since
+       `FTC_Manager_Reset' is pretty useless without flushing the cache.
+
+2013-06-07  Werner Lemberg  <wl@gnu.org>
+
+       Add and improve pragmas for MSVC compiler.
+
+       * include/freetype/internal/ftdebug.h: Remove pragmas.
+       * include/freetype/internal/ftserv.h: Use push and pop for pragmas.
+       * include/freetype/internal/ftvalid.h: Handle warning C4324.
+       * src/base/ftobjs.c: Use push and pop for pragmas.
+       * src/gzip/ftgzip.c: Handle warning C4244.
+
+2013-06-07  Werner Lemberg  <wl@gnu.org>
 
-       Fix Savannah bug #29404.
+       [cff] s/cf2_getGlyphWidth/cf2_getGlyphOutline/.
 
-       * src/truetype/ttgload.c: Revert change 2752bd1a (check on bit 1
-       of `head' table of TrueType fonts).
+       * src/cff/cf2font.c, src/cff/cf2font.h, src/cff/cf2ft.c: Do it.
 
-2010-03-14  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+2013-06-06  Dave Arnold  <darnold@adobe.com>
 
-       Fix `multi build' for Tytgat's CFF driver improvement.
+       [cff] Add early exit feature for width-only calls.
 
-       * src/base/cffload.h (cff_index_get_name): Added.
+       This is for `FT_Get_Advance'.
 
-2010-03-12  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+       There are 7 places where the spec says the width can be defined:
 
-       Remove duplicated inclusion of `FT_OUTLINE_H' in ftobjs.c.
+         hstem/hstemhm
+         vstem/vstemhm
+         cntrmask/hintmask
+         hmoveto
+         vmoveto
+         rmoveto
+         endchar
 
-       * src/base/ftobjs.c: Remove 2nd inclusion of `FT_OUTLINE_H'.
+       * src/cff/cf2intrp.c (cf2_doStems): Exit early for width-only calls,
+       if possible.
 
-2010-03-11  Chris Liddell  <chris.liddell@artifex.com>
+       (cf2_interpT2CharString) <cf2_cmdHSTEM>, <cf2_cmdVSTEM>,
+       <cf2_cmdVMOVETO>, <cf2_cmdENDCHAR>, <cf2_cmdHINTMASK>,
+       <cf2_cmdRMOVETO>, <cf2_cmdHMOVETO>: Exit early for width-only calls.
 
-       Fix Savannah bug #27442.
+2013-06-06  Werner Lemberg  <wl@gnu.org>
 
-       * src/raster/ftraster.c (ft_black_reset): Fix `buffer_size'.
+       Next round of compiler fixes.
 
-2010-03-09  Werner Lemberg  <wl@gnu.org>
+       * builds/win32/ftdebug.c, builds/wince/ftdebug.c (ft_debug_init):
+       Add proper cast.
 
+       * include/freetype/internal/ftserv.h (FT_SERVICE_UNAVAILABLE): Fix
+       cast.
+       * include/freetype/internal/ftstream.h: Decorate stream and frame
+       macros with `FT_Long' and `FT_ULong' as appropriate.
+
+       * src/base/ftrfork.c (raccess_guess_darwin_hfsplus,
+       raccess_guess_darwin_newvfs): Use cast.
+
+       * src/bdf/bdflib.c (_bdf_set_default_spacing): Use cast.
+
+       * src/cache/ftcmanag.c (FTC_Manager_Check): Fix cast.
+       * src/cache/ftcmanag.h (FTC_ManagerRec): Ditto.
+
+       * src/cff/cf2arrst.c (cf2_arrstack_setNum_Elements): Use cast.
+       * src/cff/cf2ft.c (cf2_freeSeacComponent): Ditto.
+       * src/cff/cffobjs.c (remove_subset_prefix, remove_style): Ditto.
+
+       * src/cid/cidparse.c (cid_parser_new): Use cast.
+
+       * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Use cast.
+
+       * src/psaux/psobjs.c (reallocate_t1_table): Fix argument type.
+
+       * src/raster/ftraster.c (ft_black_reset): Use cast.
+
+       * src/truetype/ttgxvar.c (FT_Stream_FTell): Use cast.
+       (ALL_POINTS): Fix cast.
+
+       * src/type1/t1driver.c (t1_ps_get_font_value): Add casts.
+       * src/type1/t1parse.c (T1_Get_Private_Dict): Add cast.
+
+2013-06-05  Dave Arnold  <darnold@adobe.com>
+
+       Fix more MSVC Win32 compiler warnings.
+
+       * src/base/ftobjs.c: Fix typo in MS pragma.
+
+       * src/base/bdflib.c (_bdf_set_default_spacing, _bdf_add_property):
+       `lineno' is only used in debug mode.
+
+       * src/cff/cf2ft.c (cf2_builder_moveTo): `params' is only used in
+       debug mode.
+
+2013-06-05  Werner Lemberg  <wl@gnu.org>
+
+       Fix compiler warnings.
+
+       * include/freetype/internal/ftmemory.h: Decorate memory allocation
+       macros with `FT_Long' where appropriate.
+       Remove duplicate of FT_MEM_QRENEW_ARRAY definition.
+
+       * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use
+       cast.
+
+       * src/base/ftobjs.c: Add warning disabling pragma for MSVC while
+       including `md5.c'.
+
+       * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdESC>: Add
+       cast.
+
+       * src/sfnt/ttsbit.c (tt_sbit_decoder_load_compound): Fix casts.
+       (tt_sbit_decoder_load_bitmap): Beautification.
+
+       * src/smooth/ftsmooth.c (ft_smooth_render_generic): Initialize
+       variables (earlier).
+
+       * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Pacify compiler.
+
+       * src/truetype/ttgxvar.c (TT_Get_MM_Var): Use unsigned constants
+       where appropriate.
+
+       * src/type1/t1load.c (T1_Get_MM_Var): Ditto.
+
+2013-06-04  Werner Lemberg  <wl@gnu.org>
+
+       * src/cff/cf2font.c (cf2_getGlyphWidth): Initialize `advWidth'.
+
+       Problem reported by Ingmar Sittl <ingmar.sittl@elektrobit.com>.
+
+2013-06-04  Werner Lemberg  <wl@gnu.org>
+
+       Apply fixes for cppcheck nitpicks.
+
+         http://cppcheck.sourceforge.net/
+
+       The call was (from the top-level of the FreeType tree):
+
+         cppcheck --force \
+                  --enable=all \
+                  -I include \
+                  -I include/freetype/ \
+                  -I include/freetype/config/ \
+                  -I include/freetype/internal/ \
+                  . &> cppcheck.log
+
+       Note that the current version heavily chokes on FreeType, delivering
+       many wrong results.  I will report those issues to the cppcheck team
+       so that a newer version gives improved results hopefully.
+
+       */* Improve variable scopes.
+       */* Remove redundant initializations which get overwritten.
+
+       * src/base/ftmac.c, builds/mac/ftmac.c (count_faces_scalable):
        Remove unused variable.
-       Reported by Graham.
-
-       * src/cff/cffparse.c (cff_parse_real): Remove `rest'.
-
-2010-03-02  John Tytgat  <John.Tytgat@esko.com>
-
-       Improve CFF string (especially glyphname) lookup performance.
-
-       We do this by avoiding memory allocation and file I/O.  This is
-       Savannah patch #7104.
-
-       * src/cff/cfftypes.h: Include PS cmaps service and
-       FT_INTERNAL_POSTSCRIPT_HINTS_H.
-       (CFF_SubFontRec): Remove `num_local_subrs'.
-       (CFF_FontRec): Add `num_strings', `strings', and `string_pool'
-       fields.
-       Remove `string_index' and `num_global_subrs' fields.
-       Use real types instead of `void' for `pshinter' and `psnames' fields.
-
-       * src/cff/cffload.c: Don't include PS cmaps service.
-       (cff_index_get_pointers): Add `pool' parameter which allows to
-       insert an extra NUL character for each String INDEX entry.
-       (cff_index_get_name): Make it a local function.
-       (cff_index_get_string): New function.
-       (cff_subfont_load): Updated.
-       (cff_font_load): Initialize `num_strings', `strings', and
-       `string_pool' fields in the `CFF_FontRec' structure.
-       (cff_index_get_sid_string): Use `cff_index_get_string' instead of
-       `cff_index_get_name'.
-       (cff_font_done): Updated.
-
-       * src/cff/cffload.h: Don't include PS cmaps service.
-       (cff_index_get_string): Added.
-       (cff_index_get_sid_string): Updated.
-
-       * src/cff/cffobjs.c: Don't include PS cmaps service and
-       FT_INTERNAL_POSTSCRIPT_HINTS_H.
-       (cff_size_get_globals_funcs, cff_slot_init): Updated.
-       (cff_face_init): Follow `cff_index_get_name',
-       `cff_index_get_string', and `cff_index_get_sid_string' changes.
-
-       * src/cff/cffcmap.c (cff_sid_free_glyph_name): Removed.
-       (cff_sid_to_glyph_name): Use `cff_index_get_cid_string'.
-       (cff_cmap_unicode_init): Updated.
-
-       * src/cff/cffdrivr.c: Don't include PS cmap service.
-       (cff_get_glyph_name): Avoid unnecessary lookup for POSTSCRIPT_CMAPS
-       service.
-       (cff_get_glyph_name, cff_ps_get_font_info, cff_get_ros): Follow API
-       `cff_index_get_sid_string' change.
-       (cff_get_name_index): Use `cff_index_get_string' instead of
-       `cff_index_get_name'.
-
-       * src/cff/cffgload.c: Don't include FT_INTERNAL_POSTSCRIPT_HINTS_H.
-       (cff_decoder_init, cff_decoder_prepare): Updated.
-
-2010-02-27  Werner Lemberg  <wl@gnu.org>
 
-       Simplify code.
-       Suggested by Behdad.
+       * src/base/ftdbgmem.c (ft_mem_table_destroy): `table' can't be zero.
 
-       * src/base/ftobjs.c (FT_Get_First_Char): Don't use a loop since we
-       call FT_Get_Next_Char anyway if necessary.
+       * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt1_entry_validate):
+       Remove functionless code.
 
-2010-02-26  Behdad Esfahbod  <behdad@behdad.org>
+       * src/tools/ftrandom.c (main): Fix memory leak.
 
-       Improve handling of invalid glyph indices in char->index functions.
+2013-06-03  Werner Lemberg  <wl@gnu.org>
 
-       * src/base/ftobjs.c (FT_Get_First_Char, FT_Get_Next_Char): Use a
-       loop.
+       Add CFF_CONFIG_OPTION_OLD_ENGINE configuration option.
+
+       This controls whether the old FreeType CFF engine gets compiled into
+       FreeType.  It is now disabled by default.
+
+       * devel/ftoption.h, include/freetype/config/ftoption.h
+       (CFF_CONFIG_OPTION_OLD_ENGINE): New macro.
+
+       * src/cff/cffdrivr.c (cff_property_set), src/cff/cffgload.c
+       (CFF_Operator, cff_argument_counts, cff_builder_add_point,
+       cff_operator_seac, cff_decoder_parse_charstrings, cff_slot_load),
+       src/cff/cffgload.h, src/cff/cffobjs.c (cff_driver_init): Use
+       CFF_CONFIG_OPTION_OLD_ENGINE to guard the affected code.
+
+       * docs/CHANGES: Updated.
+
+2013-06-02  Werner Lemberg  <wl@gnu.org>
+
+       Fix PNG library handling.
 
-2010-02-18  Chris Liddell  <chris.liddell@artifex.com>
+       * builds/unix/configure.raw: Don't use LIBPNG_LIBS but
+       LIBPNG_LDFLAGS.
 
-       Fix Savannah bug #28905.
+2013-05-23  Behdad Esfahbod  <behdad@google.com>
 
-       Initialize phantom points before calling the incremental interface
-       to update glyph metrics.
+       Add support for color embedded bitmaps (eg. color emoji).
 
-       * src/truetype/ttgload.c (tt_get_metrics_incr_overrides)
-       [FT_CONFIG_OPTION_INCREMENTAL]: New function, split off from...
-       (tt_get_metrics): This.
+       A new load flag, FT_LOAD_COLOR, makes FreeType load color
+       embedded-bitmaps, following this draft specification
+
+         https://color-emoji.googlecode.com/git/specification/v1.html
+
+       which defines two new SFNT tables, `CBDT' and `CBLC' (named and
+       modeled after `EBDT' and `EBLC', respectively).  The color bitmaps
+       are stored in the new FT_PIXEL_MODE_BGRA format to represent BGRA
+       pre-multiplied sRGB images.  If PNG support is available, PNG color
+       images as defined in the same proposed specification are supported
+       also.
+
+       Note that color bitmaps are converted to grayscale if client didn't
+       ask for color.
+
+       * builds/unix/configure.raw: Search for libpng.
+       Add `--without-png' option.
+
+       * devel/ftoption.h, include/freetype/config/ftoption.h
+       (FT_CONFIG_OPTION_USE_PNG): New macro.
+
+       * include/freetype/freetype.h (FT_LOAD_COLOR): New load flag.
+
+       * include/freetype/ftimage.h (FT_Pixel_Mode): Add
+       `FT_PIXEL_MODE_BGRA'.
+
+       * include/freetype/tttags.h (TTAG_CBDT, TTAG_CBLC): New tags.
+
+       * src/base/ftbitmap.c (FT_Bitmap_Embolden): Updated.
+       (ft_gray_for_premultiplied_srgb_bgra): New function.
+       (FT_Bitmap_Convert): Handle FT_PIXEL_MODE_BGRA.
+
+       * src/sfnt/pngshim.c, src/sfnt/pngshim.h: New files.
+
+       * src/sfnt/sfnt.c: Include `pngshim.c'.
+
+       * src/sfnt/ttsbit.c: Include FT_BITMAP_H and `pngshim.h'
+       (tt_face_load_eblc): Load `CBLC'.
+       (tt_sbit_decoder_init): Load `CBDT'.
+       (tt_sbit_decoder_alloc_bitmap): Pass load flags to select between
+       color and grayscale bitmaps.
+       Set `num_grays'.  This is used by `ftview' to choose the blending
+       algorithm.
+       (tt_sbit_decoder_load_byte_aligned,
+       tt_sbit_decoder_load_bit_aligned, tt_sbit_decoder_load_compound,
+       tt_sbit_decoder_load_image): Pass load flag.
+       s/write/pwrite/.
+       Don't call `tt_sbit_decoder_alloc_bitmap'.
        Updated.
-       (load_truetype_glyph): Use tt_get_metrics_incr_overrides.
+       (tt_sbit_decoder_load_png) [FT_CONFIG_OPTION_USE_PNG]: New function.
+       (tt_sbit_decoder_load_bitmap): Pass load flag.
+       Handle new glyph formats 17, 18, and 19.
+       Call `tt_sbit_decoder_alloc_bitmap'.
+       Flatten color bitmaps if necessary.
+       (tt_face_load_sbit_image): Updated.
+
+       * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `pngshim.c'.
+
+       * docs/CHANGES: Updated.
+
+2013-05-24  Guenter  <info@gknw.net>
+
+       Apply Savannah patch #8055.
+
+       Make `apinames' create an import file for NetWare.
+
+       * src/tools/apinames.c (PROGRAM_VERSION): Set to 0.2.
+       (OutputFormat): Add `OUTPUT_NETWARE_IMP'.
+       (names_dump): Handle it.
+       (usage): Updated.
+       (main): Handle new command line flag `-wN'.
+
+2013-05-23  Behdad Esfahbod  <behdad@behdad.org>
+
+       Compilation fix.
+
+       * src/truetype/ttinterp.c (TT_RunIns)
+       [!TT_CONFIG_OPTION_SUBPIXEL_HINTING]: Make it work.
+
+2013-05-22  Infinality  <infinality@infinality.net>
+
+       [truetype] Formatting and an additional subpixel tweak.
+
+       * src/truetype/ttinterp.c (Ins_SHPIX): Formatting fix.
+       * src/truetype/ttsubpix.c (SKIP_NONPIXEL_Y_MOVES_Rules):
+       Revert previous modification for Verdana clones.
+
+2013-05-22  Infinality  <infinality@infinality.net>
+
+       [truetype] Adjust subpixel zp2 moves and tweak rules.
+
+       These modifications fix thin diagonal stems in some legacy fonts.
+
+       * src/truetype/ttinterp.c (Direct_Move_X): Remove unused macro.
+       (Move_Zp2_Point): Don't always disable x moves for subpixel rendering.
+       (Ins_SHP): Disable x moves here for subpixel rendering.
+       (Ins_SHPIX): Only disable x moves in compatibility mode.
+       Split out zp2 move reversals and reorder conditional respectively.
+
+       * src/truetype/ttsubpix.c (SKIP_NONPIXEL_Y_MOVES_Rules): Fix oversight.
+       Only adjust Verdana clones for 17 ppem.
+       (SKIP_NONPIXEL_Y_MOVES_Rules_Exceptions): Add Courier New.
+       (ALWAYS_SKIP_DELTAP_Rules): Found additional cases for Arial `s'.
+
+2013-05-20  Infinality  <infinality@infinality.net>
+
+       [truetype] Simplify and improve subpixel function detection.
+
+       Some small enhancements have allowed the removal of many macros and
+       the simplification of existing rules in `ttsubpix.c'.
+
+       * src/truetype/ttsubpix.h (SPH_TWEAK_ALLOW_X_DMOVEX,
+       SPH_TWEAK_ALLOW_X_MOVE_ZP2,
+       SPH_TWEAK_DELTAP_SKIP_EXAGGERATED_VALUES,
+       SPH_TWEAK_SKIP_INLINE_DELTAS, SPH_TWEAK_MIRP_CVT_ZERO): Removed.
+       (SPH_TWEAK_SKIP_NONPIXEL_Y_MOVES_DELTAP): New rule macro.
+
+       * src/truetype/ttsubpix.c: Updated affected rules.
+
+       * src/truetype/ttinterp.c (Direct_Move_X): Updated.
+       (INS_FDEF): Add additional function detection.
+       (INS_ENDF): Set runtime flag.
+       (Ins_CALL): Skip the call under certain conditions.
+       Remove bad code.
+       (Ins_LOOPCALL): Skip the call under certain conditions.
+       Remove bad code.
+       (Move_Zp2_Point): Updated.
+       (Ins_SHPIX): Updated.
+       Skip the move under some situations.
+       (Ins_MIAP): Improve conditions.
+       (Ins_MIRP): Updated.
+       (Ins_DELTAP): Skip move under certain conditions.
+       Simplify conditions.
+       (TT_RunIns): Updated.
+       Add code to handle new function detection.
+       Trace messages.
+
+2013-05-17  Werner Lemberg  <wl@gnu.org>
+
+       Update more FT_Err_XXX macros using FT_ERR and FT_THROW;
+
+       * builds/amiga/src/base/ftsystem.c, builds/mac/ftmac.c,
+       builds/unix/ftsystem.c, builds/vms/ftsystem.c: Do it.
+
+2013-05-15  Werner Lemberg  <wl@gnu.org>
+
+       [truetype] Add `interpreter-version' property.
+
+       This makes the option TT_CONFIG_OPTION_SUBPIXEL_HINTING controllable
+       at runtime.
+
+       * include/freetype/ftttdrv.h: New file.
+
+       * include/freetype/config/ftheader.h (FT_TRUETYPE_DRIVER_H): New
+       macro.
+
+       * src/truetype/ttdriver.c: Include FT_TRUETYPE_DRIVER_H.
+       (tt_property_set, tt_property_get): Fill templates.
+
+       * src/truetype/ttobjs.h (TT_DriverRec): Add `interpreter_version'
+       member.
+       Remove unused `extension_component' member.
+
+       * src/truetype/ttgload.c: Include FT_TRUETYPE_DRIVER_H.
+       (tt_get_metrics, TT_Hint_Glyph, TT_Process_Simple_Glyph,
+       compute_glyph_metrics, tt_loader_init): Use `interpreter_version'.
+
+       * src/truetype/ttinterp.c: Include FT_TRUETYPE_DRIVER_H.
+       (SUBPIXEL_HINTING): New macro to check `interpreter_version' flag.
+       Update all affected functions to use it.
+       Use TT_INTERPRETER_VERSION_XXX where appropriate.
+
+       * src/truetype/ttobjs.c: Include FT_TRUETYPE_DRIVER_H.
+       (tt_driver_init): Initialize `interpreter_version'.
+
+       * src/truetype/ttsubpix.c: Include FT_TRUETYPE_DRIVER_H.
+       Use TT_INTERPRETER_VERSION_XXX where appropriate.
+
+2013-05-13  Werner Lemberg  <wl@gnu.org>
+
+       [truetype] Avoid empty source file.
+
+       * src/truetype/ttsubpix.c [!TT_CONFIG_OPTION_SUBPIXEL_HINTING]:
+       Provide dummy typedef.
+
+2013-05-13  Werner Lemberg  <wl@gnu.org>
+
+       * src/cff/cf2font.c (cf2_getGlyphWidth): Fix uninitialized variable.
+
+       Fix suggested by Vaibhav Nagarnaik <vnagarnaik@gmail.com>.
+
+2013-05-13  Brian Nixon  <bnixon@yahoo.com>
+
+       Fix Savannah bug #38970.
+
+       * src/base/ftdebug.c, builds/win32/ftdebug.c,
+       builds/wince/ftdebug.c, builds/amiga/src/base/ftdebug.c
+       (ft_debug_init): Don't read past the environment variable FT2_DEBUG.
+
+2013-05-12  Werner Lemberg  <wl@gnu.org>
+
+       [truetype] Add framework for TrueType properties.
+
+       * src/truetype/ttdrivr.c: Include FT_SERVICE_PROPERTIES_H.
+       (tt_property_set, tt_property_get): New functions, still empty.
+       Define `tt_service_properties' service.
+       Update `tt_services'.
+
+       * src/truetype/ttpic.h: Include FT_SERVICE_PROPERTIES_H.
+       (TT_SERVICE_PROPERTIES_GET): New macro.
+       (TTModulePIC): Add `tt_service_properties'.
+
+2013-05-12  Werner Lemberg  <wl@gnu.org>
+
+       Fix Savannah bug #38967.
+
+       * src/base/ftcalc.c (FT_DivFix) [FT_LONG64]: Fix cast.
+
+2013-05-12  Werner Lemberg  <wl@gnu.org>
+
+       Introduce unsigned 64bit type (if available).
+
+       * include/freetype/config/ftconfig.h: Define FT_UINT64 if available.
+       [FT_LONG64]: Provide FT_UInt64.
+
+       * builds/unix/ftconfig.in: Synchronized.
+
+2013-05-12  Werner Lemberg  <wl@gnu.org>
+
+       Fix Savannah bug #38968.
+
+       * include/freetype/ftmodapi.h: Add `FT_EXPORT' to
+       FT_Property_{Set,Get}.
+       * src/base/ftobjs.c: Add `FT_EXPORT_DEF' to
+       FT_Property_{Set,Get}.
+
+2013-05-10  Werner Lemberg  <wl@gnu.org>
+
+       [sfnt] Clean up bitmap code.
+
+       * src/sfnt/ttsbit.c: Deleted.
+       * src/sfnt/ttsbit0.c: Renamed to `ttsbit.c'.
+       * rules.mk (SFNT_DRV_H): Updated.
+
+2013-05-10  Werner Lemberg  <wl@gnu.org>
+
+       */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code.
 
 ----------------------------------------------------------------------------
 
-Copyright 2010-2012 by
+Copyright 2013-2014 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This file is part of the FreeType project, and may only be used, modified,