[freetype2] Update to version 2.10.4

Custom changes in:
- BUILD.gn
- freetype-fuchsia-config/ftmodule.h

TEST: integration patch
      Id855a7fa52478dd47240eecc99522a8e772f042a

Bug: 62377

Squashed commit of the following:

commit 6a2b3e4007e794bfc6c91030d0ed987f925164a8
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Oct 20 07:10:27 2020 +0200

    * Version 2.10.4 released.
    ==========================

    Tag sources with `VER-2-10-4'.

    * docs/VERSION.TXT: Add entry for version 2.10.4.
    * docs/CHANGES: Updated.

    * README, src/base/ftver.rc, builds/windows/vc2010/index.html,
    builds/windows/visualc/index.html,
    builds/windows/visualce/index.html,
    builds/wince/vc2005-ce/index.html,
    builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
    s/2.10.3/2.10.4/, s/2103/2104/.

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

    * builds/unix/configure.raw (version_info): Set to 23:4:17.
    * CMakeLists.txt (VERSION_PATCH): Set to 4.

commit a3bab162b2ae616074c8877a04556932998aeacd
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Oct 19 23:45:28 2020 +0200

    [sfnt] Fix heap buffer overflow (#59308).

    This is CVE-2020-15999.

    * src/sfnt/pngshim.c (Load_SBit_Png): Test bitmap size earlier.

commit 840ce58f94bafdd24a138a9f7920becb5a30695f
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun Oct 18 07:36:57 2020 -0400

    * src/sfnt/tt{colr,cpal}.c: Fix signedness warnings from VC++.

commit a93f50b61150605745771e95e8f522c2cb714ff9
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Oct 17 21:58:50 2020 -0400

    * src/sfnt/sfwoff2.c (Read255UShort): Tweak types to please VC++.

commit 82d331556ce73de07c16afd51a865ba1ff806a65
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun Oct 11 21:56:50 2020 -0400

    Unnest markdown.

commit 337670af0a1e94df3718c6467ca544ecb0282731
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Oct 10 18:14:57 2020 +0200

    * Version 2.10.3 released.
    ==========================

    Tag sources with `VER-2-10-3'.

    * docs/VERSION.TXT: Add entry for version 2.10.3.

    * README, src/base/ftver.rc, builds/windows/vc2010/index.html,
    builds/windows/visualc/index.html,
    builds/windows/visualce/index.html,
    builds/wince/vc2005-ce/index.html,
    builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
    s/2.10.2/2.10.3/, s/2102/2103/.

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

    * builds/unix/configure.raw (version_info): Set to 23:3:17.
    * CMakeLists.txt (VERSION_PATCH): Set to 3.

commit c9f588be56a6c89c210284711417130ea53bd72e
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Oct 10 12:48:18 2020 +0200

    Document changes to last release.

commit 40479fad93fd939450f1c0efb54a99074cb1b5d3
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Sep 25 17:44:00 2020 +0200

    [autofit] Synchronize with ttfautohint.

    This corresponds to the following commits in the ttfautohint git
    repository:

      bb6842bd3bd437b7b4a7921b0376c860f5e73d18  Typo, formatting.
      d5c91ddb1cb310257a3dfe9a8e20e1fc51335faa  Add Medefaidrin script.

    * src/autofit/afblue.dat: Add blue zone data for Medefaidrin.
    * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.

    * src/autofit/afscript.h: Add Medefaidrin standard characters.

    * src/autofit/afranges.c, src/autofit/afstyles.h: Add Medefaidrin
    data.

commit e8ee98e669c25d0b8e67cdaace9a6b7e49c7a0c0
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Sep 25 07:22:08 2020 +0200

    Move `scripts/make_distribution_archives.py` to `src/tools`.

    * scr/tools/scripts/make_distribution_archives.py: (_TOP_DIR,
    _SCRIPT_DIR): Updated to new location.
    (main): s/shutils.copyfile/shutils.copy/ to preserve file
    permissions.
    (main): Prefix source file paths with `git_dir` while copying files
    to allow calls of the script from other places than the top-level
    directory.

commit 4f13a43ab32ba77793d8528d4b4c057c6f76b835
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Sep 24 09:35:24 2020 +0200

    * src/cff/cffgload.c (cff_slot_load): Scale `vertBearingY`.

    Towards the end of the the function there is a call to
    `FT_Outline_Get_CBox` that retrieves the glyph bbox in scaled units.
    That sets `horiBearing{X,Y}` and `vertBearingX` but `vertBearingY`
    is left alone, and is not scaled.

    Patch from Eric Muller <emuller@amazon.com>.

commit bed960d9484df1a0c9547ba6855f457d6629ffb5
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Sep 24 09:31:56 2020 +0200

    * src/base/ftobjs.c (FT_Load_Glyph): Trace glyph metrics.

commit 3ce0df52e2bba8a8f788a05c705b90fd10275665
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Sep 22 20:05:37 2020 +0200

    [meson] Move auxiliary scripts to `builds/meson`.

    Suggested by Alexei.

    * scripts/*.py: Move meson scripts to...
    * builds/meson/*.py: ... this new location.

    * meson.build: Updated.

commit d686f2ff9c40235085558fed91a57d05c7656335
Author: David Turner <david.turner.dev@gmail.com>
Date:   Tue Aug 25 20:52:32 2020 +0200

    Add python script for building tarballs.

    * scripts/make_distribution_archives.py: New file.

    This standalone Python script should be equivalent to running `make
    dist` with the Make-based build system, with the following minor
    differences:

    - Since `make distclean` doesn't always clean up `objs/` properly,
      `make dist` archives may contain some stale binaries like
      `objs/.libs/libfreetype.so.6` or others.

    - `config.guess` and `config.sub` are not updated unless option
      `--gnu-config-dir=DIR` is used to specify the location of these
      files.

    - Some bits of the auto-generated reference documentation may
      appear in slightly different order, probably due to issues related
      to mkdocs and docwriter.

    As an example, the call

      scripts/make_distribution_archives.py /tmp/freetype2-dist

    creates the following files under `/tmp/freetype2-dist`:

      freetype-<version>.tar.gz
      freetype-<version>.tar.xz
      ft<winversion>.zip

commit 46417607e67f89a5c9948d4deed6ad8ead51318d
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Sep 21 09:03:13 2020 +0200

    * scripts/extract_freetype_version.py: Fix regex typos.

commit 66978a58874169c6a4f2f984a7461e2901901784
Author: David Turner <david.turner.dev@gmail.com>
Date:   Sun May 17 18:45:41 2020 +0200

    Add Meson build project file.

    Example usage:

      # Configure Meson build in directory `build-meson` to generate
      # release binaries comparable to to the ones from the
      # autotools/make build system.
      meson setup build-meson \
            --prefix=/usr/local \
            --buildtype=debugoptimized \
            --strip \
            -Db_ndebug=true

      # After configuring the Meson build with the above command,
      # compile and install to `/usr/local/`; this includes a pkg-config
      # file.
      ninja -C build-meson install

      # Alternatively, compile and install to `/tmp/aa/usr/local/...`
      # for packaging.
      DESTDIR=/tmp/aa ninja -C build-meson install

      # Generate documentation under `build-meson/docs`.
      ninja -C build-meson docs

    Library size comparison for stripped `libfreetype.so` generated by
    all three build systems:

      - Default build (autotools + libtool): 712 KiB
      - CMake build (RelWithDebInfo):        712 KiB
      - Meson build:                         712 KiB

    * meson.build: New top-level Meson build file for the library.

    * meson_options.txt: New file.  It holds user-selectable options for
    the build, which can be printed with `meson configure`, and selected
    at `meson setup` or `meson --reconfigure` time with
    `-D<option>=<value>`.

    * scripts/parse_modules_cfg.py: A script invoked by `meson.build` to
    parse `modules.cfg` and extract important information out of it
    (i.e., the list of modules).

    * scripts/process_ftoption_h.py: New script invoked by `meson.build`
    to process the original `ftoption.h` file.  It enables or disables
    configuration macro variables based on the available dependencies.
    This is similar to what other build systems are using (i.e., Meson's
    `configure_file()` command is not used here).

    * scripts/extract_freetype_version.py: New script invoked by
    `meson.build` to extract the FreeType version number from
    `<freetype/freetype.h>`.

    * scripts/extract_libtool_version.py: New script invoked by
    `meson.build` to extract the libtool `revision_info` data from
    `builds/unix/configure.raw`, and to generate the corresponding
    shared library suffix.

    * scripts/generate_reference_docs.py: New script invoked by
    `meson.build` to generate the FreeType 2 reference documentation
    (using the `docwriter` and `mkdocs` packages, which must be already
    installed).

commit ab6a21b73314ef302299b47b1707f5b2d03826cf
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Sep 18 22:32:20 2020 -0400

    Documentation updates.

commit 20186d1be6415d1bd7cb79ac56f1b806c26b677c
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Sep 11 23:47:54 2020 -0400

    [raster] Improve the second pass (#58373).

    Besides dropout control the second horizontal sweep is supposed to
    clean up straight horizontal edges that are mishandled by the first
    vertical sweep when a line passes through pixel centers.  This line
    would present as perfectly aligned span edges in the second sweep.

    * src/raster/ftraster.c (Horizontal_Sweep_Span): Replace the old
    implementation with a better one focusing on aligned span edges only.

commit c3721642f1d373f363d02081a94f24984960484e
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Sep 11 23:13:02 2020 -0400

    [raster] Tune SMART macro (#58352).

    Windows seems to perform smart dropout control at 26.6 precision.
    To mimick Windows independent of increased precision, we need to tweak
    the macro so that some close calls break down rather than up.

    * src/raster/ftraster.c (SMART): Tweak the macro.

commit cb4733136992265ba8b52c5f009864a0b7769949
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Sep 8 22:41:53 2020 -0400

    [raster] Introduce SMART macro.

    * src/raster/ftraster.c (SMART): New macro for smart dropout rounding.
    (Verstical_Sweep_Drop, Horizontal_Sweep_Drop): Use it.

commit 3594eaee595f174fc6d9f39f55e9918aa4eaa9e7
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Sep 8 22:20:11 2020 -0400

    [raster] Improve tracing.

commit fa82803f46aa27e5f173d35a3e2bffcd67dc2e5a
Author: Nikolaus Waxweiler <madigens@gmail.com>
Date:   Thu Sep 3 11:11:41 2020 +0100

    * ChangeLog: Add entry for last commit.

commit 69353a19a197b0ab89b8382966c07f072fed8453
Author: Boris Dalstein <dalboris@gmail.com>
Date:   Tue Aug 25 13:53:54 2020 +0200

    Export version info (#58935)

commit 600d59e343a0d6529a2cd714bf90b70a107b39d7
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Sep 2 15:48:03 2020 -0400

    [truetype] Reduce Infinality footprint (cont'd).

    * src/truetype/ttinterp.c (Ins_DELTAP): Shrink variable scope.
    (Ins_SHPIX, Ins_MIRP): Revise if-logic.

commit 51a5e3389cef401cecd0860e717a5075e715786d
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Sep 2 00:02:28 2020 -0400

    [truetype] Reduce Infinality footprint.

    * src/truetype/ttinterp.c (Ins_SHPIX, Ins_MSIRP, Ins_MIAP, Ins_MDRP,
    Ins_MIRP): Shrink variable scopes and consolidate ifdefs.

commit e6c7e4b42bc39a7cfa438b2fa628aa3198374124
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Sep 1 21:49:52 2020 -0400

    [truetype] Refactor compensation color.

    * src/truetype/ttinterp.h (TT_Round_Func): Change the last argument.
    * src/truetype/ttinterp.c (Ins_ROUND, Ins_NROUND, Ins_MDAP, Ins_MIAP,
    Ins_MDRP, Ins_MIRP): Move compensation retrieval from here...
    (Round_*): ... to here.
    * src/truetype/ttobjs.c (tt_size_init_bytecode): Reserve zero
    compensation at color index 3.

commit 16ee2a22abb642a310dcbf08accf70b1c38e3181
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Aug 28 23:08:42 2020 -0400

    [smooth] Don't set target in direct mode.

    * src/smooth/ftsmooth.c (ft_smooth_raster_overlap): Remove assignment.
    (ft_smooth_raster_lcd) [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Ditto.

commit d8228a00704d7932bd54a87dc5b69561ac7ba594
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Aug 28 22:28:47 2020 -0400

    Improve FT_Outline_Render docs.

commit 6730854c397130879c64bd766c673b9bccf9c04a
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Aug 25 23:16:27 2020 -0400

    * src/smooth/ftsmooth.c (ft_smooth_raster_overlap): Limit width.

    Segmentation fault reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24729

commit cdc009c24afac88846ed24e21c84e33792384665
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Aug 22 13:30:11 2020 +0200

    * src/truetype/ttgload.c (TT_Get_VMetrics): Add tracing message.

commit f9f6adb625c48ef15b5d61a3ac1709a068ea95a3
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Aug 5 08:24:15 2020 -0400

    [truetype] Retain OVERLAP_SIMPLE and OVERLAP_COMPOUND.

    For glyphs with OVERLAP_SIMPLE or OVERLAP_COMPOUND, set
    FT_OUTLINE_OVERLAP to render them with direct oversampling, which
    mitigates artifacts (see 3bb512bc9f62).

    * include/freetype/ftimage.h (FT_OUTLINE_OVERLAP): Redefine to rhyme
    with OVERLAP_SIMPLE.
    * src/base/ftgloadr.c (FT_GlyphLoader_Rewind): Reset outline flags.
    * src/truetype/ttgload.c
    (TT_Load_Simple_Glyph): Retain OVERLAP_SIMPLE.
    (load_truetype_glyph): Retain OVERLAP_COMPOUND.

commit 3a1f4b7aaa30b05a363c5eac07122a1033699904
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Aug 4 22:17:05 2020 -0400

    * src/truetype/ttgload.c (TT_Load_Glyph): More tracing.

commit 8b3601324fde1ba49338dd6279057cd366c25919
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Aug 4 10:48:42 2020 +0200

    Minor typos, formatting.

commit 986a340dd52825ceaa142ae19473de0ee52d57f2
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Jul 28 23:20:59 2020 -0400

    Unbreak compilation.

commit f76f7fdecdb14f343beb009dcef63a01b08162df
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Jul 28 23:13:51 2020 -0400

    Hide internal functions with SunPro.

    * include/freetype/internal/compiler-macros.h
    (FT_INTERNAL_FUNCTION_ATTRIBUTE) <__SUNPRO_C>: Define as __hidden.

commit 3273521f408938e0088258bda62d280d6e5967eb
Author: Anuj Verma <anujv@iitbhilai.ac.in>
Date:   Tue Jul 28 18:34:37 2020 +0200

    Fix static compilation with Visual C.

    * include/freetype/internal/compiler-macros.h
    (FT_INTERNAL_FUNCTION_ATTRIBUTE) <_WIN32>: Define as empty.

commit fffc303a7f397d08eee719eca351bdb55b3a1e83
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jul 28 18:28:10 2020 +0200

    Formatting, improving comments.

commit 53be1753dea9bd3e586f3e6f3ffc55b31080d450
Author: Priyesh Kumar <priyeshkkumar@gmail.com>
Date:   Tue Jul 28 07:33:40 2020 +0200

    Fix `-Wformat' compiler warnings.

    * src/*: Fix format specifiers.

    * builds/unix/ftsystem.c (FT_Stream_Open): Ditto.

commit 8cfc41ae955d99ff49214deea731527bbb8035f0
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jul 25 12:23:22 2020 +0200

    Fix `-Wformat' compiler warnings.

    Problem reported by Priyesh kumar <priyeshkkumar@gmail.com>

    * src/base/ftoutln.c (FT_Outline_Decompose): Fix number of arguments
    to tracing macro.

    * src/bdf/bdfdrivr.c (bdf_cmap_char_next, bdf_get_bdf_property):
    Ditto.

    * src/cache/ftcbasic.c (ftc_basic_family_get_count): Ditto.
    Reformulate message.

    * src/pcf/pcfdrivr.c (pcf_get_bdf_property): Ditto.

    * src/sfnt/sfwoff2.c (woff2_open_font): Ditto.
    Trace table offset, too.

    * src/truetype/ttgxvar.c (ft_var_apply_tuple): Ditto.

commit b6183ea369757f6f0126c9822d21eaa88903b7c5
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jul 23 13:03:22 2020 +0200

    * src/sfnt/sfwoff2.c (woff2_decompress): Fix compiler warning.

    Reported by Hin-Tak.

commit ee19a6cbbcb28e7aab04dd13918edd46f21ecb22
Author: David Turner <david.turner.dev@gmail.com>
Date:   Fri May 1 15:37:56 2020 +0200

    Add .clang-format file

    This file can be used to reformat FreeType sources and commits
    using one of these methods:

    - Direct formatting of a whole file:

        clang-format -i path/to/file

      For example, to reformat all sources at once:

        echo builds/unix/ftconfig.h.in $(git ls-files *.[hc]) | xargs clang-format -i

    - Only reformat the changed lines in the current work directoy:

        git clang-format

    The style settings in this file are very close to the FreeType
    formatting style, with the following exceptions which are not supported
    here:

    - Mminimal 2-space margin on each non-empty line.
      (no left margin instead).

    - 2 empty lines between variable declarations and statements in C blocks.
      (only 1 is kept).

        {
          int  x = ...;

          foo(x);
        }

      becomes

        {
          int x = ...;

          foo(x);
        }

    - Aignment of declarations uses 2 spaces to separate types and variable
      names (only 1 space is kept).

         int  x;    =>   int x;
         int  y;         int y;

    - The start used for output parameters in function signature should be
      near the variable name (always near the type).

        void foo(int* input_ptr, int *output_ptr)
          => void foo(int* input_ptr, int* output_ptr)

commit b7c467b6efa5a91945854de81632be45d6f360ff
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Jul 15 09:15:25 2020 +0200

    [doc] Stem darkening is off by default for CFF driver.

    Bug reported by Ishi Tatsuyuki <ishitatsuyuki@gmail.com>.

commit 5fe7c044c25bba9dfae315ef56bacfc83976ddd0
Author: David Turner <david@freetype.org>
Date:   Tue Jul 14 16:12:29 2020 +0200

    freetype.h (FT_Set_Transform): Minor documentation update.

    In order to mention the limited accuracy of `FT_Matrix' coefficients
    and encourage client code to perform the transform themselves with
    floating point values instead.

commit 95de21ab19cc5409ea09c9347f1d9b5e2cc2d332
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jul 14 08:32:45 2020 +0200

    README: Add information on contributing patches.

commit c922ffa5d2fe359d5e0d788f3a0850a59da4ae20
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jul 12 07:52:55 2020 +0200

    * builds/unix/configure.raw: Fix inclusion of `ftoption.h'.

commit b1286b32a9f2bcba3f22c9857ba6df30733b7845
Author: Ben Wagner <bungeman@google.com>
Date:   Thu Jul 9 14:31:00 2020 -0400

    Document `FT_Face_Rec_::box' with variable fonts (#54969).

    As pointed out in the "Note:" in the section of

      https://docs.microsoft.com/en-us/typography/opentype/spec/otvaroverview#variation-data-tables-and-miscellaneous-requirements

      ... the xMin, yMin, xMax, yMax, macStyle and lowestRecPPEM fields in
      the font header ('head') table are not supported by variation data and
      should only be used in relation to the default instance for the font.

    Document that `FT_Face_Rec_::box' does not vary with OpenType variable
    fonts.

commit 96fb73efd5c69c2c34ebe2a4d7096774c87da145
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jul 7 16:58:14 2020 +0200

    Fix clang warnings.

    * include/freetype/internal/autohint.h
    (FT_DECLARE_AUTOHINTER_INTERFACE): New macro.
    * src/autofit/afmodule.h: Use it to declare
    `af_autofitter_interface'.

    * include/freetype/internal/ftobjs.h (FT_DECLARE_GLYPH): New macro.
    * src/base/ftbase.h: Use it to declare `ft_bitmap_glyph_class' and
    `ft_outline_glyph_class'.

    * src/base/ftglyph.c: Include `ftbase.h'.

    * src/cff/cffparse.c (cff_parser_run): Fix type of `t2_size'.

    * src/pcf/pcfdrivr.c (pcf_cmap_char_next): Fix type of `result'.

    * src/psaux/psauxmod.c (psaux_module_class): Use `FT_DEFINE_MODULE'.
    * src/psaux/psauxmod.h: Declare `afm_parser_funcs',
    `t1_cmap_classes', `cff_decoder_funcs', and `psaux_module_class'.

    * src/pshinter/pshmod.c: Include `pshmod.h'.

    * src/sfnt/sfwoff2.c (ROUND4, WRITE_SHORT): Fix implicit sign
    conversion.
    (compute_ULong_sum): Fix return type.
    Fix implicit sign conversion.
    (store_points): Fix type of `last_flag', `repeat_count', and `flag'.
    Use casts to avoid warnings.
    (reconstruct_glyf): Fix implicit sign conversion.
    Use cast to avoid warning.
    (get_x_mins): Fix implicit sign conversion.
    * src/sfnt/ttcmap.c: Undef `TTCMAPCITEM'.
    * src/sfnt/ttcmap.h: Define `TTCMAPCITEM' and include `ttcmapc.h' to
    declare cmap classes.

    * src/smooth/ftsmooth.c (ft_smooth_overlap_spans): Use cast.

    * src/truetype/ttinterp.c (Ins_MIAP): Fix typo.

commit 0f35b042e02e23cc6fb29d805d25aa85679274eb
Author: David Turner <david@freetype.org>
Date:   Mon Jul 6 10:56:36 2020 +0200

    [build] Really fix multi and C++ builds.

    The following builds were still failing due to previous changes:

      make multi
      make multi CC="c++"
      make CC="c++"

    This patch fixes the issues, which were missing includes to get the
    right macro definitions in multi-build mode.

    Also, `FT_UNUSED' is actually used by third-party code, so move it
    back to `public-macros.h' to avoid breaking it.

    * include/freetype/config/public-macros.h (FT_EXPORT): Remove
    special definition for C++.
    (FT_UNUSED): Define here instead of...
    * include/freetype/config/compiler-macros.h: ... here.
    (FT_FUNCTION_DECLARATION): Remove special definition for C++.
    (FT_LOCAL_ARRAY_DEF): Fix definition.

    * src/cache/ftccback.h, src/lzw/ftzopen.h, src/gxvalid/gxvmort.h,
    src/gxvalid/gxvmorx.h: Add `FT_BEGIN_HEADER' and `FT_END_HEADER'.

commit cb4a943bc4d24d48eeb5d1515c5acd880c4a82ab
Author: David Turner <david@freetype.org>
Date:   Mon Jul 6 10:56:36 2020 +0200

    [build] Fix multi and C++ builds.

    The following builds were failing due to previous changes:

      make multi
      make multi CC="c++"

    * include/freetype/config/ftconfig.h: Remove `FT_END_HEADER'.

    * include/freetype/config/ftheader.h (FT_BEGIN_HEADER,
    FT_END_HEADER): Protect against redefinition.

    * src/cache/ftccache.h, src/cache/ftcmru.h, src/pcf/pcfutil.h,
    src/psaux/pserror.h, src/psaux/psft.h, src/psaux/psstack.h,
    src/sfnt/woff2tags.h: Include `compiler-macros.h'.

    * src/sfnt/woff2tags.c: Include `woff2tags.h'.

commit 2eb8f8862669f50bf11693fb5c4f729a0ddf847f
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jul 6 09:21:03 2020 +0200

    [psaux] Improve `t1_decoder_parse_metrics' (#58646).

    * src/psaux/t1decode.c (t1_decoder_parse_metrics): Copy
    corresponding code from old engine's `t1_decoder_parse_charstrings'
    function to handle `op_callsubr' and `op_return'.

commit b0667d2d36fb134d48030b2a560eaaa37810d6ba
Author: David Turner <david@freetype.org>
Date:   Thu Jul 2 11:20:10 2020 +0200

    [build] Improve visibility support of library function names.

    * include/freetype/config/public-macros.h
    (FT_PUBLIC_FUNCTION_ATTRIBUTE): New macro to tag functions as
    public (and thus exportable).
    (FT_EXPORT): Use it.

    * include/freetype/config/compiler-macros.h
    (FT_INTERNAL_FUNCTION_ATTRIBUTE): New macro to tag functions as
    internal to the library (and thus hidden).  Note that on ELF
    systems, all internal functions have hidden visibility, which avoids
    the need to enforce this when invoking the compiler (e.g., with an
    option like `-fvisibility=hidden').

    (FT_FUNCTION_DECLARATION, FT_FUNCTION_DEFINITION): New base macros
    to deal with C and C++ linkage issues at the same time.

    (FT_LOCAL, FT_LOCAL_DEF, FT_LOCAL_ARRAY, FT_LOCAL_ARRAY_DEF,
    FT_BASE, FT_BASE_DEF, FT_EXPORT_VAR, FT_BASE_CALLBACK,
    FT_BASE_CALLBACK_DEF): Redefined using new macros.

commit bb66c8d8cf1eb86309273d7c53c44522d35941d4
Author: David Turner <david@freetype.org>
Date:   Thu Jul 2 11:09:57 2020 +0200

    [build] Split off more stuff from `ftconfig.h'.

    * builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
    include/freetype/config/ftconfig.h: Split off macro definitions
    required by the FreeType API headers to...
    * include/freetype/config/public-macros.h: ...this new file.

    * builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
    include/freetype/config/ftconfig.h: Split off macro definitions used
    by the library but not to be exposed to clients to...
    * include/freetype/config/compiler-macros.h: ...this new file.

    * include/freetype/internal/*.h, src/raster/ftraster.h: Include
    `compiler-macros.h' where needed.

commit 0322efb5e5fcd2c64f9fb433b890ff476abb696f
Author: David Turner <david@freetype.org>
Date:   Thu Jul 2 10:31:28 2020 +0200

    [build] Move mac support code to `mac-support.h'.

    * builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
    include/freetype/config/ftconfig.h: Split off mac-specific stuff
    to...
    * include/freetype/config/mac-support.h: ...this new file.

    * CMakeLists.txt, builds/unix/configure.raw: Remove `/undef ->
    #undef' string replacement; the affected code is no longer part of
    the `ftconfig.h' template.

commit bd7251ac97eea134873118f4d9f005c333e31953
Author: David Turner <david@freetype.org>
Date:   Thu Jul 2 10:24:20 2020 +0200

    [build] Put integer type definitions into `integer-types.h'.

    Refactor some of the `ftconfig.h' headers and template to move the
    definition of the FreeType integer types (e.g., `FT_Int16') to a
    common header file `freetype/config/integer-types.h'.

    * builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
    include/freetype/config/ftconfig.h: Split off integer type
    definition stuff to...
    * include/freetype/config/integer-types.h: ...this new file.

    * builds/unix/ftconfig.h.in: Control the definition of
    `FT_SIZEOF_INT' and `FT_SIZEOF_LONG' with macro
    `FT_USE_AUTOCONF_SIZEOF_TYPES'.  If these are not defined, auto
    detection happens in `integer-types.h' as usual based on `INTXX_MAX'
    values.  Otherwise the autoconf-detected values are used.

    * builds/unix/configure.raw (CPPFLAGS): Don't include path to
    `config' directory.  Instead, ...
    (FT_CONFIG_STANDARD_LIBRARY_H): Use complete path.

commit a4d9206754e6c68dc768e05b6676268149c197f1
Author: David Turner <david@freetype.org>
Date:   Thu Jul 2 10:10:25 2020 +0200

    [build] Rename `build/unix/ftconfig.in' to `ftconfig.h.in'.

    Since we are no longer limited to 8.3 file names, it is simpler to
    follow the usual conventions for template files.

    * builds/unix/ftconfig.in: Renamed to...
    * builds/unix/ftconfig.h.in: ...this.

    * CMakeLists.txt, builds/unix/configure.raw: Updated.

commit 3bb512bc9f621e1329927292d9ee7ba764549cae
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Jul 3 22:29:34 2020 -0400

    [smooth] Introduce direct oversampling for overlaps.

    This implements oversampling to metigate artifacts in pixels partially
    covered by overlapping contours.  It turns out that the 4x4
    oversampling is sufficient but, at least, quadruples the rendering
    time.  The outline has to set FT_OUTLINE_OVERLAP to use this method.

    * include/freetype/ftimage.h (FT_OUTLINE_OVERLAP): New flag.
    * src/smooth/ftsmooth.c (ft_smooth_render): Check it to...
    (ft_smooth_raster_overlap): ... inflate outline and set up direct
    rendering for oversampling with...
    (ft_smooth_overlap_spans): ... new span function that integrates them.

commit 19d39f43d25b375767b40b26aac7b2061d321ae2
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Jul 3 09:17:22 2020 -0400

    [smooth] Use direct rendering mode in Harmony.

    Instead of rendering 3 bitmaps side by side and reshuffling, we use
    direct rendering to deliver the bitmaps on each third byte.

    * src/smooth/ftsmooth.c (ft_smooth_raster_lcd)
    [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Set up direct mode with...
    (ft_smooth_lcd_spans): ... new span function.

commit 2d67511a142dcb772c6b75b0b3dfd416bd53e51c
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Jul 3 09:02:09 2020 -0400

    [smooth] Separate LCD paths from gray rendering.

    This makes `ft_smooth_render' a lot smaller and easier to follow. It
    also cleanly separates Harmony and ClearType-style LCD rendering
    algorithms. Now I only wish to move LCD filtering and geometry from
    FT_Library to FT_Renderer.

    * src/smooth/ftsmooth.c (ft_smooth_render): Move LCD code from here...
    (ft_smooth_raster_lcd, ft_smooth_raster_lcdv): ... to here.
    [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Reorganize #ifdef's.

commit a4434747558d872c55e55ce428019a8e15d222dc
Author: Sebastian Rasmussen <sebras@gmail.com>
Date:   Sat Jun 20 05:31:34 2020 +0200

    [cff] Fix handling of `style_name == NULL' (#58630).

    * src/cff/cffobjs.c (cff_face_init): If a call to `cff_strcpy' fails
    by returning NULL in `cff_face_init', `remove_style' is still
    called.  This means that the NULL pointer is dereferenced, causing a
    crash.

commit de088b1dfd0dd549005feb503efe1b41ca668b36
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Jun 19 22:46:30 2020 -0400

    Simplify unused macro.

commit f594ffdc357a4e73f739fa6c2c79f656b7d31a0b
Author: Sebastian Rasmussen <sebras@gmail.com>
Date:   Fri Jun 19 18:55:49 2020 +0200

    [cff] Fix another two memory leaks (#58629).

    * src/cff/cffobjs.c (cff_size_init): If a call to `funcs->create'
    fails to allocate one of the `internal->subfont' variables, make
    sure to free `internal->topfont' and any successfully allocated
    subfonts.

commit 2e2f3cb5baf1aed20c4eda08e043a2cf2515f275
Author: Sebastian Rasmussen <sebras@gmail.com>
Date:   Fri Jun 19 16:29:07 2020 +0800

    [psaux] Fix memory leak (#58626).

    * src/psaux/psstack.c (cf2_stack_init): If `cf2_stack_init' fails to
    allocate the stack, return error early.

commit 09b98060d3e0edfe78ea88ca8b851751a924ecac
Author: Sebastian Rasmussen <sebras@gmail.com>
Date:   Fri Jun 19 16:21:08 2020 +0800

    Fix memory leak (#58624).

    * src/base/ftobjs.c (FT_New_Size): Avoid trying to free
      `size->internal`, unless `size' has been allocated. This
      mistake appeared in the fix for 58611.

commit 6e722f2eaa5840e6b8c6f1eaa6a1fce9d7f90833
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Jun 19 08:39:23 2020 -0400

    [base] Rework d1180b5f9598 until further notice.

    * src/base/ftoutln.c (FT_Outline_Get_Orientation): Reject large
    outlines.

commit 8ed5a2477eecf27e645bbb568b66a37eea12973c
Author: Sebastian Rasmussen <sebras@gmail.com>
Date:   Fri Jun 19 10:35:57 2020 +0200

    [cff, cid] Fix segfaults in case of error (#58621).

    * src/cff/cffobjs.c (cff_slot_done), src/cid/cidobjs.c
    (cid_slot_done): If `ft_glyphslot_init' fails to allocate
    `internal', then the class' `done_slot' callback (called by
    `ft_glyphslot_done') must not dereference the pointer to `internal'.

commit d1180b5f9598088ab1bc9d772e5e09ece0702a38
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Jun 19 08:18:26 2020 +0200

    [base] Fix UBSAN error.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23166

    * src/base/ftoutln.c (FT_Outline_Get_Orientation): Avoid values
    larger than 32 bits.

commit 4d364b68215f1380b66164f3f0e4bdadc154d08f
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Jun 19 05:41:37 2020 +0200

    [woff2] Fix segfault.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23402

    * src/sfnt/sfwoff2.c (get_x_mins): Check whether `loca' table
    exists.

commit d924c5cf7e5554b22f7edfcb9e98670c4c02c3f0
Author: Stephen McDowell <svenevs.dev@gmail.com>
Date:   Fri Jun 19 04:14:39 2020 +0200

    [sfnt] Support Intel compilers.

    * src/sfnt/pngshim.c (premultiply_data): Intel compilers do not
    currently support `__builtin_shuffle'.

commit a4429959b030e4a6e4aa41baa4306950158224f1
Author: Sebastian Rasmussen <sebras@gmail.com>
Date:   Thu Jun 18 15:12:03 2020 +0800

    [base] Fix memory leak (#58611).

    * src/base/ftobjs.c (FT_New_Size): When the call to `clazz->init_size'
    fails, make sure to free `size->internal'.

commit 575b78d9e3b9c701edb5087aa1c5f9c4031d3548
Author: Sebastian Rasmussen <sebras@gmail.com>
Date:   Thu Jun 18 15:12:03 2020 +0800

    [cff] Fix memory leak (#58610).

    * src/cff/cffobjs.c (cff_size_init): When the call to
    `funcs->create' fails, make sure to free `internal'.

commit 74cebeae1249f8ebade559a7316fe84db7a36fd2
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Jun 19 03:41:12 2020 +0200

    * src/cff/cffload.c (cff_index_get_pointers): Rename `t' to `tbl'.

commit c8cd139c3025f6371974c8aecfe3a393dd5ad994
Author: Sebastian Rasmussen <sebras@gmail.com>
Date:   Thu Jun 18 13:46:37 2020 +0800

    [cff] Free table upon error allocating other data (#58609).

    * src/cff/cffload.c (cff_index_get_pointers): When new_bytes fails
    to allocate, make sure to free the table.  Do the same for both
    allocations if there is a later error.

commit 7438235b42e9d425888c68519d1e05dd2b69fff7
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Jun 17 15:12:30 2020 +0200

    woff2tags.h: Fix copyright year.

commit 165868596783af1d296aa4fa30295b22cf7e79a2
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jun 13 21:15:45 2020 +0200

    Remove redundant inclusion of `ft2build.h'.

    * */*: Remove `#include <ft2build.h>' where possible.

    * include/freetype/freetype.h: Remove cpp error about missing
    inclusion of `ft2build.h'.

commit e13391333f501967db8823025ce8c63259b5d57e
Author: David Turner <david@freetype.org>
Date:   Mon Jun 8 13:31:55 2020 +0200

    Make macros for header file names optional.

    We no longer have to take care of the 8.3 file name limit; this
    allows us (a) to introduce longer, meaningful file names, and (b) to
    avoid macro names in `#include' lines altogether since some
    compilers (most notably Visual C++) doesn't support this properly.

    */*: Replace

       #include FOO_H

    with

       #include <freetype/foo.h>

    or something similar.  Also update the documentation.

commit 9e6e903cc4f6f2de86356d551e74eace75927c31
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jun 2 17:14:54 2020 +0200

    * src/sfnt/ttcmap.c (tt_face_build_cmaps): Trace number of cmaps.

commit 62fea391fa9993f8c1d206a50080d690178ce518
Author: David Turner <david@freetype.org>
Date:   Mon May 18 09:33:38 2020 +0200

    Remove obsolete HAVE_STDINT_H probing macro.

    This macro was updated by the unix configure script and the
    `CMakeLists.txt' one, but is never used in the source tree (nor is
    <stdint.h> included anywhere).

    * CMakeLists.txt, builds/unix/ftconfig.in: Don't handle
    `HAVE_STDINT_H'.

commit 4eee13404dca62cdaed4e26b5523f0d8f92f2a1f
Author: David Turner <david@freetype.org>
Date:   Mon May 18 09:16:12 2020 +0200

    Remove Jamfile files from the tree.

    These have not been used in a very, very long time, so better remove
    them.  A corresponding patch will be submitted to the
    `freetype2-demos' repository.

    * src/Jamfile, src/*/Jamfile, Jamrules: Delete.

commit 3f70e6d20c82b28174096adcd0657b3c998b007b
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue May 12 00:38:46 2020 -0400

    [smooth] Turn on LCD filtering during FreeType initialization.

    * src/smooth/ftsmooth.c (ft_smooth_init): Enable LCD filtering.

    * include/freetype/ftlcdfil.h: Document it, remove patent warnings.
    * include/freetype/freetype.h (FT_Render_Mode): Updated.
    * include/freetype/config/ftoption.h, devel/ftoption.h
    [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Do not mention patents.

commit 652f88631932713309b6fa2cf12669699e3fc8e6
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Mon May 11 23:30:37 2020 -0400

    [smooth] Stop using dedicated LCD modules and classes.

    The LCD modules were never truly independent. They mostly served as
    a way to disable patented LCD rendering, which is no longer necessary.
    The `smooth' module now handles LCD modes as well.

    * src/smooth/ftsmooth.c (ft_smooth_lcd_renderer_class.
    ft_smooth_lcdv_renderer_class): Deleted.
    (ft_render_smooth): Reworked from `ft_render_smooth_generic'.
    * src/smooth/ftsmooth.h: Remove dedicated LCD classes.
    * src/smooth/module.mk: Remove dedicated LCD modules.
    * include/freetype/config/ftmodule.h: Ditto.
    * builds/amiga/include/config/ftmodule.h: Ditto.
    * include/freetype/ftmodapi.h: Do not mention LCD modules.

commit 093f87bfe45160195ade7bd5174bbaaf50ebd6be
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat May 9 22:32:03 2020 -0400

    Formatting.

commit 132f19b779828b194b3fede187cee719785db4d8
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 5 20:14:14 2020 +0200

    * Version 2.10.2 released. ==========================

    Tag sources with `VER-2-10-2'.

    * docs/VERSION.TXT: Add entry for version 2.10.2.

    * README, Jamfile (RefDoc), src/base/ftver.rc,
    builds/windows/vc2010/index.html, builds/windows/visualc/index.html,
    builds/windows/visualce/index.html,
    builds/wince/vc2005-ce/index.html,
    builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
    s/2.10.1/2.10.2/, s/2101/2102/.

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

    * builds/unix/configure.raw (version_info): Set to 23:2:17.
    * CMakeLists.txt (VERSION_PATCH): Set to 2.

    * docs/CHANGES: Updated.

commit a45da2534960586fabea22481bd21ed5ed766022
Author: Jakub Alba <jalba@vewd.com>
Date:   Fri May 8 10:59:37 2020 +0200

    * src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#58319).

    The font that exceeds the old limit is Icono Regular, version
    1.00000.

commit ed62b12d6c810c1b046a53ee6b0d25c5f61944a1
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun May 3 23:22:08 2020 -0400

    Typo and comment.

commit de60e7d3f8f721445e4435e90a209656ca777352
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun May 3 17:11:20 2020 -0400

    * builds/freetype.mk: Refactor for readability.

commit 49967cb6101bc7e6593535d1c6fa293c8b26fa4a
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat May 2 13:50:33 2020 -0400

    [builds] Clean up Windows CE project files.

    Remove version from filenames that caused a lot of polution in the
    release process. Use VERSIONINFO resource instead.

    * builds/wince/vc2005-ce/freetype.vcproj,
    builds/wince/vc2008-ce/freetype.vcproj,
    builds/windows/visualce/freetype.vcproj,
    builds/windows/visualce/freetype.dsp: s/2101//g, but add `ftver.rc'.
    * builds/wince/vc2008-ce/index.html,
    builds/wince/vc2005-ce/index.html,
    builds/windows/visualce/index.html: s/2101//g.

commit a612da0e8bb643c3a4fe562088c485fb28796558
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri May 1 22:52:52 2020 -0400

    * devel/ft2build.h: Override FT_CONFIG_MODULES_H here as well.

commit 9c850f5611a603b023d2b32a8186ea00e2092632
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri May 1 22:30:15 2020 -0400

    [builds/unix] Consolidate marco overrides (for the demos to see them).

    * builds/unix/unix-cc.in (FT_CONFIG_MODULES_H, FT_CONFIG_OPTIONS_H):
    Override them here...
    * builds/freetype.mk: ... instead of here.

commit d79946311bf8c72d31a8dadc8ae33e298554c61b
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Apr 30 08:37:16 2020 +0200

    Grammar fix for last commit.

commit e6ecce9ae820ab8c5425357623401e38a06822bc
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Apr 30 07:27:28 2020 +0200

    CHANGES: We are going to remove Jam.

commit 11beee855e29757a07320fd60e85de2e8da4e037
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Apr 8 09:05:32 2020 +0200

    Allow setting `CC' in Unix build (#58051).

    * builds/unix/unix-cc.in (CC): Use `override'.  The command line
      value of `CC' (if any) is stored already in `CCraw'.

commit 7a019a63ed9753772e758beec3cad7c0b74ee2aa
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sat Apr 4 14:06:37 2020 +0530

    [woff2] Return if single stream operation fails.

    * src/sfnt/sfwoff2.c (get_x_mins): Do it.

    * src/sfnt/woff2tags.c: Remove unused include.

commit 13c0df80dca59ce2ef3ec125b08c5b6ea485535c
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sun Mar 22 23:29:51 2020 +0530

    [docs] Fix building docs if `srcdir' != `builddir'.

    `docs/reference/*' was moved one directory up in commit 237fed6.

    * builds/unix/unix-def.in (PIP): Remove variable.

    * configure: Create `docs' directory and copy assets from
    `docs/markdown'.

    * docs/README: Output directory is `reference'.

commit 1fd3148713def5fe72ff6844a33e4fc896a80780
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sat Mar 21 20:17:17 2020 +0530

    [docwriter] Drop support for Python < 3.5.

    Python versions < 3.5 have reached end-of-life and as such, no
    security or bug fixes will be provided for those versions.  See

      https://devguide.python.org/#status-of-python-branches

    for more information.

    * Jamfile (RefDoc): Add `site' parameter.

    * builds/detect.mk (std_setup): Update Python version requirement.

    * builds/freetype.mk (refdoc-venv): Use pip as `python -m pip'.

    * builds/unix/ax_compare_version.m4,
    builds/unix/ax_prog_python_version.m4: Macros to detect Python
    version.  New files.

    * builds/unix/configure.raw: Check for Python >= 3.5 and remove
    check for `pip'.

    * docs/CHANGES, docs/INSTALL.GNU, docs/README: Updated.

commit 6a431038c9113d906d66836cd7d216a5c630be7c
Author: Moazin Khatti <moazinkhatri@gmail.com>
Date:   Mon Mar 2 18:21:27 2020 +0500

    [gzip] Support `gzip' encoded header conditionally.

    In order to support `gzip' encoded header the call to
    `inflateInit2' was modified in commit 6a92b1fadde26477a9179.
    However, this code breaks with the outdated internal version
    of zlib.  This is a temporary fix to conditionally support
    `gzip' encoded header whenever a system installation of zlib
    is being used.

    Problem report in

      https://lists.nongnu.org/archive/html/freetype-devel/2020-02/msg00023.html

    * src/gzip/ftgzip.c (FT_Gzip_Uncompress): Change the the call to
    `inflateInit2' depending on whether the system installation is
    being used or the internal copy.

commit 11975fe9f6ed92b7630698e599b936a0186d965d
Author: Ben Wagner <bungeman@google.com>
Date:   Sat Feb 29 20:18:00 2020 +0100

    Fix state of `FT_Face' for buggy `gvar' tables (#57923).

    By resetting the blend as implemented with this commit fonts with
    invalid `gvar' tables may keep calling into `ft_var_load_gvar' from
    `tt_set_mm_blend' and failing, but the font was invalid anyway and
    we want to keep seeing the failure in `tt_set_mm_blend'.

    * src/truetype/ttgxvar.c (ft_var_load_gvar): Calculate length of
    offset array once.
    Allocate arrays after `FT_FRAME_ENTER' (extra check before
    allocating and avoid needing to free array later if error entering
    frame).
    Always call `FT_FRAME_EXIT'.
    Consistently set counts immediately after array initialized.
    Reset the blend (particularly `blend->glyphoffsets') on failure.

commit 149b9055e61d9c46937d3b0cc5727e75484ed042
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Feb 29 20:28:03 2020 +0100

    ChangeLog entry for last commit.

commit 21c2311e633385e1cf77154d4880d492c19064f1
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sun Mar 1 00:37:31 2020 +0530

    Update docwriter stylesheet.

    This change is required to support docwriter 1.2.1.

    See

      https://github.com/freetype/docwriter/issues/36

    for more information.

    * docs/markdown/stylesheets/extra.css:
    (.md-typeset code) -> (.md-typeset pre>code)
    (pre) -> (pre>code)
    (p, .md-typeset p, h4): Remove commented styles.
    (table.index): Remove unused styles.

commit 216e077600a58346bb022d8409fd82e9d914a10a
Author: Ben Wagner <bungeman@google.com>
Date:   Fri Feb 28 07:43:00 2020 +0100

    [truetype] Add better checks for loading `gvar' table (#57905).

    * src/truetype/ttgxvar.c (ft_var_load_gvar): Delay settings of any
    `blend->xxxcount' values until the corresponding data has been
    checked.
    Also do some sanitizing to avoid a too early exit.

    (TT_Vary_Apply_Glyph_Deltas): Improve tracing message.

commit 141da028168efc554f6c8b70c2efe8fbe9945e4a
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Feb 27 09:49:06 2020 +0100

    Make `FT_HAS_*' and `FT_IS_*' really return true (#57906).

    * include/freetype/freetype.h (FT_HAS_*, FT_IS_*): Implement it.

commit 5b1a37af563349172230842fcfdb59b5f22afcd0
Author: Dominik Röttsches <drott@chromium.org>
Date:   Tue Feb 25 11:08:11 2020 +0200

    Fix for CFF space glyph regression (#57541).

    * src/psaux/psft.c (cf2_decoder_parse_substrings): Replace early-out
      with FT_OFFSET.

commit fa147af4a5255bf9017c9b004f7abd1d5e72f497
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Feb 22 18:30:46 2020 +0100

    [woff2] Fix font table access.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=20778

    * src/sfnt/sfwoff2.c (get_x_mins): Explicitly check for presence of
    `head' table, which might not have been processed yet.

commit 6e49dff0052a73faaea13dd8bdf6f0724539db07
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Feb 21 20:57:52 2020 +0100

    [psaux] Make `t1_decoder_parse_metrics' handle `op_div' (#57519).

    * src/psaux/t1decode.c (t1_decoder_parse_metrics): Copy
    corresponding code from old engine's `t1_decoder_parse_charstrings'
    function.

commit 49f3394d7a531320e96170d13be471647d505f60
Author: Nikolaus Waxweiler <nikolaus.waxweiler@daltonmaag.com>
Date:   Wed Feb 19 12:56:49 2020 +0000

    [autofit] Add support for Hanifi Rohingya script.

    * src/autofit/afblue.dat: Add blue zone data for Hanifi Rohingya.
    * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.

    * src/autofit/afscript.h: Add Hanifi Rohingya standard character.

    * src/autofit/afranges.c, src/autofit/afstyles.h: Add Hanifi
      Rohingya data.

commit 84d56589f04eb1f459d865e8401e9c723fbbefb3
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Feb 19 18:13:02 2020 +0100

    Require HarfBuzz 1.8.

    * builds/unix/configure.raw, CMakeLists.txt: Request HarfBuzz 1.8.0
    or newer.

    We are going to add auto-hinter support for Hanifi Rohingya, which
    was introduced in Unicode 11.0.

commit d09e8315591bb3b8767185d9abd8c3e40b8cc347
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Feb 16 15:24:27 2020 +0100

    Minor.

commit 8930cc96188c21a0ea5f7da7a6d00c4fefd86d3a
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Feb 12 18:25:03 2020 +0100

    * src/sfnt/ttcmap.c (tt_face_build_cmaps): Ignore version (#57708).

commit 4a19a53d5a89d13047b64c4972252e6af2e8badc
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Feb 4 13:37:19 2020 +0100

    * src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#57732).

    The font that exceeds the old limit is Constantine, version 1.001.

commit e5038be70414cf66da6c4d5ce4e30375884c30d8
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jan 19 17:05:19 2020 +0100

    Update all copyright notices.

commit fd03cf88167ac15a38c73cc5c51d55dfba0b5c82
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jan 4 19:28:36 2020 +0100

    [base] Fix `FREETYPE_PROPERTIES=type1:hinting-engine=adobe`.

    * src/base/ftpsprop.c (ps_property_set) [hinting-engine]: Avoid an
    incorrect return value that caused a warning.  The function did the
    right thing, though.

commit 50b013871c53f7624b5351dd4820a137303fe14b
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jan 4 18:42:27 2020 +0100

    Add reference to another oss-fuzz bug report.

commit a99a8e2863a44dcf7397e27f73655e4e0cc36704
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Jan 3 18:09:12 2020 +0100

    [woff2] Fix memory leaks and a runtime warning.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19773

    * src/sfnt/sfwoff2.c (compute_ULong_sum): Add missing cast.
    (reconstruct_hmtx): Add missing deallocation calls.

commit 10d8de7541ab1f26f6f04b2118d13a92a7119102
Author: Dominik Röttsches <drott@chromium.org>
Date:   Mon Dec 30 11:22:04 2019 +0200

    [truetype] Fix UBSan warning on offset to nullptr (#57501).

    * src/truetype/ttinterp.c (Ins_CALL): Fail if `exc->FDefs' is null.

commit a4df0373c71f426711fb77e3a21d4b58b7c42e66
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Tue Dec 31 16:04:01 2019 +0100

    [woff2] Allow bitmap-only fonts (#57394).

    * src/sfnt/sfwoff2.c (reconstruct_font): Fix test for `glyf' and
    `loca' tables.

commit 496601e5045bb9af24be4819646700a503ce103a
Author: Hugh McMaster <hugh.mcmaster@outlook.com>
Date:   Wed Dec 18 23:11:22 2019 +1100

    [docs] (2/2) Fix generation of API documentation (#56745).

    Creating the API Reference in the (new) `reference' sub-directory is
    consistent with other documentation sub-topics, such as `design',
    `glyphs' and `tutorial'.

    This patch fixes broken hyperlinks in the documentation pointing to
    and from the API Reference.  It also allows web assets to load from
    their relative paths.

    * builds/freetype.mk (DOC_DIR): Adjust.
    (refdoc, refdoc-venv): Add `--site' argument.

    * builds/toplevel.mk (do-dist): Updated.

commit 237fed6d5a75e5aff6c0cdc58d7bcc43b990bc0d
Author: Hugh McMaster <hugh.mcmaster@outlook.com>
Date:   Wed Dec 18 23:07:35 2019 +1100

    [docs] (1/2) Move static web assets (#56745).

    * docs/reference/*: Move ...
    * docs: ... one directory up.

commit 8cee1dde4e708b1d4a9f028f3ac6cca99495d729
Author: Dominik Röttsches <drott@chromium.org>
Date:   Tue Dec 17 14:12:38 2019 +0200

    Fix more UBSan warnings on adding offset to nullptr (#57432).

    * src/truetype/ttinterp.c (Ins_LOOPCALL), src/psaux/psft.c
    (cf2_initLocalRegionBuffer): Use `FT_OFFSET'.

commit 7e1b39f6cd1f8e14d45592c9b192ade643d8d9de
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Dec 16 11:07:58 2019 +0100

    [truetype] Fix UBSan warnings on adding offsets to nullptr.

    Reported as

      https://bugs.chromium.org/p/chromium/issues/detail?id=1032152

    * src/truetype/ttinterp.c (Ins_FDEF, Ins_IDEF): Use `FT_OFFSET'.

commit 0c14a3adb08ca5aaac3188a63246361c50b069d4
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Dec 14 00:04:01 2019 +0100

    [truetype] Fix integer overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19305

    * src/truetype/ttinterp.c (Ins_MIRP): Use `ADD_LONG'.

commit 2c9a2d58ca9c8e58cae1d0b63f17e291297484eb
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Dec 13 23:56:25 2019 +0100

    Another bunch of UBSan warnings on adding offsets to nullptr.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19427
      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19433
      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19441
      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19451
      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19452
      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19457

    * src/autofit/aflatin.c (af_latin_hints_compute_segments,
    af_latin_hints_compute_edges): Use `FT_OFFSET'.

    * src/base/ftstream.c (FT_Stream_EnterFrame): Use `FT_OFFSET'.

    * src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Exit early
    if there is no charstring.

    * src/psaux/psobjs.c (t1_decrypt): Use `FT_OFFSET'.

    * src/smooth/ftsmooth.c (ft_smooth_render_generic): Exit early for
    zero bitmap dimensions.

commit 11d4ce23ac55a7d881bba5214c47922c05127242
Author: Dominik Röttsches <drott@chromium.org>
Date:   Mon Dec 9 12:40:42 2019 +0200

    Fix more UBSan warnings on adding offset to nullptr (#57384)

    * src/smooth/ftsmooth.c (ft_smooth_render_generic),
    src/psaux/psobjs.c (ps_table_add): Use `FT_OFFSET'.

commit dfc9a049ded53e2ca5c9b935f912a476d6f676ed
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Dec 5 08:44:30 2019 +0100

    * src/truetype/ttinterp.c (TT_RunIns): Use `FT_OFFSET'.

    Reported as

      https://bugs.chromium.org/p/chromium/issues/detail?id=1030614

commit 551bd3a90e352fa3a66ee7644c07440939c03d81
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Dec 3 11:52:48 2019 +0100

    More nullptr offset UBSan warnings (#57331, #57347).

    * src/autofit/afcjk.c (af_cjk_hints_compute_segments),
    src/psaux/psft.c (cf2_getSeacComponent), src/truetype/ttinterp.c
    (Ins_UNKNOWN): Use `FT_OFFSET'.

commit 4270e9f3243079bb90b6af618ed4d4fd31266412
Author: Dominik Röttsches <drott@chromium.org>
Date:   Wed Nov 27 11:38:45 2019 -0500

    Avoid more nullptr offset UBSan warnings (#57316).

    * src/base/ftoutln.c (FT_Outline_Transform): Bail on empty points.
    * src/cff/cffload.c (cff_subfont_load): Use `FT_OFFSET'.
    * src/psaux/psft.c (cf2_decoder_parse_substrings): Early out if
    `charstring_base' or `charstring_len' are null.
    * src/sfnt/ttload.c (tt_face_load_name): Use `FT_OFFSET'.

commit d4f9c249893a146b0c94a152f7674e288d181f95
Author: John Stracke <jstracke@Google.com>
Date:   Sat Nov 23 11:25:28 2019 +0100

    [base] Really fix #57194.

    Apply accidentally missed second part of patch.

    * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Call
    `FT_GlyphLoader_CreateExtra'.

commit 9df460b632985f7d245d7669147c8c6a72724419
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Nov 23 11:09:40 2019 +0100

    [truetype] Avoid sanitizer warning (#57289).

    * src/truetype/ttpload.c (tt_face_get_device_metrics): Use
    `FT_OFFSET'.

commit c67b9a1c5b27afbb466a35222c84b1bccb81d238
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Sat Nov 23 11:01:18 2019 +0100

    [truetype] Fix integer overflow (#57287).

    * src/truetype/ttgload.c (compute_glyph_metrics): Use `SUB_LONG'.

commit 3cb7b3f7cb35fe403195e5e5dd76c1a8fce2e59a
Author: Ben Wagner <bungeman@google.com>
Date:   Sat Nov 23 10:54:51 2019 +0100

    [sfnt] Avoid sanitizer warning (#57286).

    * src/sfnt/ttcmap.c (tt_face_build_cmaps): Avoid possible `NULL +
    offset' computation.
    Tag `table' as `const'.

commit 2d1d60aac67e105e6b812aa4ed6448d277f985e2
Author: John Stracke <jstracke@Google.com>
Date:   Sat Nov 23 10:42:04 2019 +0100

    [base] Fix `NULL + offset' sanitizer warnings (#57194).

    * src/base/ftgloadr.c (FT_GlyphLoader_Adjust_Points,
    FT_GlyphLoader_Adjust_Subglyphs): Use `FT_OFFSET'.
    (FT_GlyphLoader_CreateExtra): Add short cut if some values are zero.

commit 26d0f579c01018e2f42250ee48c0250e2e524541
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Nov 23 10:28:37 2019 +0100

    * include/freetype/internal/ftmemory.h (FT_OFFSET): New macro.

    Use this for `base + offset' pointer calculations where `base' can
    be NULL (triggering a sanitizer warning even if the resulting
    pointer gets never dereferenced since it is undefined behaviour
    in C).

    Suggested by Ben Wagner.

commit 9b0179597e100e85d543b4e346490ed7b2bb2fff
Author: Ben Wagner <bungeman@google.com>
Date:   Sat Nov 23 10:07:48 2019 +0100

    [sfnt] Ensure OTTO fonts have tables (#57285).

    * src/sfnt/ttload.c (tt_face_load_font_dir): Add test.

commit 07c8d8bbdb0489de06f4d019a2872f4e372e1d73
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Sat Nov 23 10:00:02 2019 +0100

    Minor fixes for recent compilers.

    * src/gzip/infutil.h (inflate_mask): Add `const'.

    * src/autofit/aflatin2.c: Include `ft2build.h'.

commit 3aaae716b25bd2d3232e279bc05af65cff446dd9
Author: Nikolaus Waxweiler <madigens@gmail.com>
Date:   Thu Nov 7 23:39:41 2019 +0000

    CMakeLists.txt: minor doc additions, compile builds/unix/ftsystem.c on UNIX

commit b75031a26eed8838222ddb3a81bc1672a0e463a8
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Oct 25 21:29:13 2019 +0200

    * src/sfnt/sfwoff2.c (woff2_open_font): Check `num_fonts' for TTCs.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18494

commit 0a3d2bb99b45b72e1d45185ab054efa993d97210
Author: Filip Filmar <filmil@gmail.com>
Date:   Sun Oct 20 02:05:02 2019 -0700

    [doc] FT_Open_Args: Clarify the ownership of `pathname'.

    Don't expect the function to deallocate the buffer.  This may be obvious
    in C, but it is not so obvious in FFI bindings for FreeType 2.

commit 3b8bc65c50b6d306239d461cf96f22f50fc2aed5
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Oct 22 08:07:05 2019 +0200

    * src/sfnt/sfwoff2.c (woff2_open_font): Avoid undefined shift.

    Also improve tracing.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18390

commit 90a30f154a612693641e5366ea8d1d27ea2a4a99
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Oct 10 22:04:50 2019 -0400

    * src/sfnt/pngshim.c (premultiply_data): Optimize for __SSE__ only.

commit 545a481a74a3c3b70af8928793a01a84f8b0ee9b
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Oct 10 13:11:06 2019 +0200

    * src/sfnt/sfwoff2.c (reconstruct_glyf): Check `triplet_size'.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18108

commit 1e9229f0fcb46fd4cd8e0fdc48fb4a44ddb7a8a1
Author: John Tytgat <John.Tytgat@esko.com>
Date:   Wed Oct 9 15:37:19 2019 +0200

    [cff] Fix FT_FACE_FLAG_GLYPH_NAMES for CFF2 based fonts (#57023).

    * src/cff/cffobjs.c (cff_face_init): Don't set FT_FACE_FLAG_GLYPH_NAMES
    for CFF2 based fonts.

commit 5a1a79c0e8de8e886cc347ad22801982e8298a06
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Oct 8 11:12:18 2019 +0200

    [woff2] Fix SFNT table checks.

    Also reduce number of SFNT table lookups.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18065

    * include/freetype/internal/wofftypes.h (WOFF2_InfoRec): Add fields
    `glyf_table', `loca_table', and `head_table'.

    * src/sfnt/sfwoff2.c (reconstruct_glyf): Update signature.
    Use table pointers in `info' parameter.
    (get_x_mins): Check `maxp_table'
    Use table pointers in `info' parameter.
    (reconstruct_font):  Use and set table pointers in `info' parameter.
    Fix check for `glyf' and `loca' tables.
    Update call to `reconstruct_glyf'.
    (woff2_open_font): Updated.

commit 1167bff3e9a6302687667c6134673e4b3fd13636
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Oct 6 23:22:34 2019 +0200

    * src/sfnt/sfwoff2 (reconstruct_glyf): Fix reallocation.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18046

commit 0fcf486e0d6f3bb1cb17b6a6f00f651e21077dda
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Oct 6 21:12:42 2019 +0200

    Improve memory debugging.

    * include/freetype/internal/ftmemory.h (FT_MEM_FREE): Use
    `FT_DEBUG_INNER' to set source code file name and line.

    * src/base/ftdbgmem.c (ft_mem_table_remove): Better formatting of
    tracing message.

commit d355a73aa3821ae83e0e28e0888eb22dd83b2d96
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Oct 6 20:07:09 2019 +0200

    docs/DEBUG: Document environment variable `FT2_KEEP_ALIVE'.

    Also do some formatting and minor edits.

commit 1f4e5bcb19eaa9170466c8d845edfd11aba54937
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Oct 3 21:07:16 2019 +0200

    * src/sfnt/sfwoff2 (reconstruct_font): Fix reallocation.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17966

commit c912690d22ab16d772328396c27c47075924b012
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Mon Sep 30 22:45:34 2019 -0400

    * src/base/ftstroke.c (ft_stroker_inside): Speed up.

commit 94815d6efa3804da0b41466716e80620014327d7
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Oct 1 00:15:25 2019 +0200

    * src/sfnt/sfwoff2 (woff2_open_font): Initialize `woff2.ttc_fonts'.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17804

commit 839a023619b593b742f62ffab8e7e4f9da8c1593
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Sep 30 07:41:57 2019 +0200

    * src/sfnt/sfwoff2.c (reconstruct_font): Fix memory leak.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17812

commit 12696dcf9bf614fef816bb768ed7c21b8eeee959
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Sep 30 07:27:55 2019 +0200

    [woff2] Reject fonts without `head' table.

    Also fix memory deallocation in case of error.

    `head' problem reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17820

    * src/sfnt/sfwoff2.c (reconstruct_glyf): Don't use `stream_close'.
    Abort if `head_table' is NULL.
    Don't free `transformed_buf' in case of error.
    (woff2_open_font): Don't set `uncompressed_buf' to NULL.

commit ba06adafcdd35a34af6d9be63800c2f55dd03a75
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Sep 29 13:29:21 2019 +0200

    [woff2] Fix compiler warnings.

    Problem reported by Alexei.

    * src/sfnt/sfwoff2.c (reconstruct_glyf): Initialize `x_min'.
    (reconstruct_font): Initialize `num_hmetrics'.
    (woff2_open_font): Initialize `info'.

commit c37a501458e2b5389ac977ed2523eed3e2d9bd61
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Sep 28 07:42:34 2019 +0200

    * src/sfnt/sfwoff2.c (woff2_open_font): Fix sanity check.

    Correct thinkos in patch from 2019-09-01.

commit 2bf603bde6f8d8ee307f16a32a986f9879639f1b
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Sep 28 07:37:24 2019 +0200

    [woff2] Fix memory leaks.

    One of them reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17766

    * src/sfnt/sfwoff2.c (woff2_open_font): Free `info->x_mins' and
    `woff2->ttc_fonts'.

    (reconstruct_glyf): Initialize `info->x_mins'.

commit b39576f984276ef7b9d6febbea2a509b2c95d0f2
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Sep 27 19:18:49 2019 -0400

    * src/base/ftstroke.c (ft_stroker_cap): Speed up caps.

commit 432efa25b3476a6884426c0a30f6d6a624310e5d
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Sep 25 21:50:16 2019 -0400

    * src/base/ftstroke.c (ft_stroker_outside): Speed up clipped miter.
    * include/freetype/ftstroke.h: Wordsmith miter docs.

commit db4083fd7f19fd3fbd5d5a8e60d5c8e0f19778bd
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Sep 25 08:48:26 2019 +0200

    * src/sfnt/sfwoff2.c (woff2_open_font): Check (sum of) table sizes.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17684

commit 4881f75b7ca04a35da4b467b46b28ae52b176482
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Mon Sep 23 22:57:00 2019 -0400

    * src/base/ftstroke.c (ft_stroke_border_arcto): Speed up calculations.

commit 5327092bb28b6df742386d75555ba3ccc6d05ce6
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Fri Sep 20 06:30:28 2019 +0200

    [woff2] Fix memory leaks.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16896

    * src/sfnt/sfwoff2.c (woff2_open_font): Fix error handling.
    Free `uncompressed_buf'.
    (reconstruct_font): Free `transformed_buf'.

commit 04ebb2a000ee40df2a9900198ec62d79af745b1f
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Sep 17 19:46:59 2019 +0200

    * src/otvalid/otvcommon.c (otv_Coverage_get_last): Guard `count'.

    Problem reported by Marc Schönefeld <marc.schoenefeld@gmx.org>.

commit 99f23d6ff2203966d210bccd49eacc62a20328f9
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Sep 17 13:22:28 2019 +0200

    * src/sfnt/sfwoff2.c (woff2_open_font): Check table index.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17100

commit cc17f852d575a8a66f9be51461af550d0f413891
Author: Avi Halachmi (:avih) <avihpit@yahoo.com>
Date:   Sun Sep 15 04:30:18 2019 +0300

    [cmake] Don't fail if brotli is missing (#56894).

    The libs which cmake controls are commented out at

      include/freetype/config/ftoption.h

    and cmake un-comment each enabled library, but the brotli option was
    not commented out, therefore `FT_CONFIG_OPTION_USE_BROTLI' remained
    defined even if brotli was missing/disabled/etc.

    Comment it such that cmake can control it, which means leaving it
    undefined if brotli is missing.

    * include/freetype/config/ftoption.h: Fix typo.

commit 3de1b8d0b0983cf49a187a4227e7950395a3b08f
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Sep 5 14:10:01 2019 +0200

    [cmake] Add brotli support.

    * CMakeLists.txt (FT_WITH_BROTLI): New option.

    * builds/cmake/FindBrotliDec.cmake: New file.

commit bbb14361dbb87e6ef30d0f35b22770c965d166b4
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Sep 5 12:37:03 2019 +0200

    FindHarfBuzz.cmake: Change indentation to two spaces; shorten lines.

commit 87f5225256969e59dec7ea64c96067776d8a2f2d
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Sep 5 12:14:03 2019 +0200

    Fix handling of `AF_CONFIG_OPTION_INDIC'.

    * devel/ftoption.h, include/freetype/config/ftoption.h:
    `AF_CONFIG_OPTION_INDIC' needs `AF_CONFIG_OPTION_CJK'.

commit 12351eeefa677de3dee4c3a3c9c91ba3b5fb6855
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Sep 5 12:02:59 2019 +0200

    CMakeLists.txt: Fix generation of DLL related stuff (#56852).

    Extract `version_info' variable from `builds/unix/configure.raw' and
    use the data to correctly set `LIBRARY_VERSION' and
    `LIBRARY_SOVERSION'.

    Also use the data to set `ft_version' field in `freetype2.pc'.
    Also fix the needed minimum version of HarfBuzz in `freetype2.pc'.

commit 3fa35aa420ee88856c60d3c0b7fedd43801953cc
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Sep 3 21:10:20 2019 +0200

    * src/sfnt/sfwoff2.c (compute_ULong_sum): Fix undefined shift.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16933

commit 543a3b939df50e02e52b948f4c9c8ba63bf38059
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Sep 1 23:03:09 2019 +0200

    * src/sfnt/sfwoff2.c (woff2_open_font): Add sanity check.

    Don't trust `totalSfntSize' unconditionally.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16893

commit cbee985a2bc14750ff850192f9ee8c1efe2bd7c7
Author: Dominik Röttsches <drott@chromium.org>
Date:   Tue Aug 27 15:08:15 2019 +0300

    [woff2] Don't use `FT_UInt64' (#56815).

    * src/sfnt/sfwoff2.c (woff2_open_font): Use `FT_UInt32' for
    `file_offset'.  This fixes builds on platforms where `FT_LONG64' is
    not defined while still being sufficient to store a file offset.

commit 594156586b888805681a7085a780bd743fb180bd
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Aug 27 14:07:14 2019 +0200

    [truetype] Prevent crash in `TT_Set_Named_Instance' (#56813).

    * src/truetype/ttgxvar.c (TT_Set_Named_Instance): Fix error
    handling.

commit ed7e8194e00ce310905925f9fd10508382fecce6
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Aug 27 14:07:05 2019 +0200

    CHANGES: Updated.

commit eef5c1dd1455208dee1a6378016f018c8a69be35
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Aug 27 10:43:32 2019 +0200

    [woff2] Fix compiler warnings.

    * src/sfnt/sfwoff2.c (read_num_hmetrics): Remove unused argument
    `table_len'.
    Update caller.
    (triplet_decode, compute_bbox, store_loca, reconstruct_glyf): Make
    `i' variable unsigned.
    (reconstruct_glyph): Remove condition which is always false.
    (reconstruct_html): Removed unused argument `transformed_size'.
    Update caller.

    * src/sfnt/woff2tags.c (woff2_known_tags): Remove condition which is
    always false.

commit 60c52f0edbfaddcfcc87e01922fa5f7640e11cf5
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Aug 27 10:08:01 2019 +0200

    [woff2] Formatting; some comments.

commit 86803acd2a8e274c76f7e985878258c8f16c2360
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Thu Aug 22 16:46:03 2019 +0530

    [woff2] Check whether known tag is in array bounds.

    If table tag is not 0x3f, we expect a value between 0 and 62.  If
    this is not the case, exit with errors.

    * src/sfnt/sfwoff2/c: Check whether table tag makes sense.

    * src/sfnt/woff2tags.c: Return 0 if tag is out of bounds.

commit d2681a49771228b35266d359e97b68f1a729fd6d
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Wed Aug 21 20:21:02 2019 +0530

    [woff2] More formatting and documentation.

    * include/freetype/internal/wofftypes.h, src/sfnt/sfwoff2.c: Implement
    formatting changes suggested as

      https://lists.nongnu.org/archive/html/freetype-devel/2019-08/msg00052.html

commit 1a103015328a5897005311fa051fd57cb4b6aadb
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sat Aug 17 14:57:59 2019 +0530

    * src/sfnt/sfwoff2.c: Improve trace comments.

    Adjust tracing levels for comments, and more formatting.

commit 97616704aa2eb789d60d588a56ffb391acf1cdc8
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Wed Aug 14 17:39:55 2019 +0530

    [woff2] Formatting.

    * src/sfnt/sfobjs.c, src/sfnt/sfwoff2.c: Better formatting.

commit 2a23dc7fb30a46f86f625d4b7ec210bf8fe310e7
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Wed Aug 14 02:36:27 2019 +0530

    [woff2] Support `hmtx' reconstruction when `glyf' is untransformed.

    `reconstruct_hmtx' requires `info->x_mins' and `info->num_glyphs' to
    reconstruct the hmtx table.  In case glyf is not transformed, we
    call `get_x_mins' which does the necessary work.

    * src/sfnt/sfwoff2.c (get_x_mins): New function.
    (reconstruct_font): Call get_x_mins.

commit 5367e0ca016bc79096cb3b57217fc1326dc3b997
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Mon Aug 5 01:53:00 2019 +0530

    [sfnt] Support `face->num_faces' for WOFF2 fonts.

    Set correct value of `face->num_faces' for WOFF2 fonts.  This is
    being handled separately because we only load the tables for the
    requested font face in `woff2_open_font' and create a single-face
    sfnt stream.

    The full discussion is at:

      https://lists.gnu.org/archive/html/freetype-devel/2019-08/msg00000.html

    * src/sfnt/sfobjs.c (sfnt_open_font): Add parameter
    `woff2_num_faces'.
    (sfnt_init_face): Introduce variable `woff2_num_faces', and change
    `face->root.num_faces' if `woff2_num_faces' is set.

    * src/sfnt/sfwoff2.c (woff2_open_font): Validate requested face
    index and handle negative face indices.

    * src/sfnt/sfwoff2.h (woff2_open_font): Add parameter `num_faces' to
    declaration.

commit bb7668d7c30e16ef1d6442c4aa2b694fadd15295
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sun Jul 28 19:38:05 2019 +0530

    [woff2] Improve memory and error handling.

    Free up memory after use, and improve error handling.

    * src/sfnt/sfwoff2.c (reconstruct_font, woff2_open_font): Implement
    changes.

commit 1e0207681544327f9e96c6d50231b6fbc1f6ed70
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Thu Jul 18 01:50:16 2019 +0530

    [woff2] Avoid too many calls to `FT_REALLOC'.

    We do this by using `totalSfntSize' as an initial reference, and
    extending the buffer when required.  This reduces rendering time
    considerably.

    * include/freetype/internal/wofftypes.h (WOFF2_HeaderRec): Add
    `totalSfntSize', rename `total_sfnt_size' to `actual_sfnt_size'.

    * src/sfnt/sfwoff2.c (write_buf): Add parameter `dst_size' to keep
    track of and update total size of stream.

    (WRITE_SFNT_BUF, WRITE_SFNT_BUF_AT): Modify macros accordingly.

    (pad4, store_loca, reconstruct_glyf, reconstruct_hmtx,
    reconstruct_font): Update parameters to accept `sfnt_size'.

    (woff2_open_font): Add variable `sfnt_size'.  Use WOFF2 header field
    `totalSfntSize' as initial reference (if value makes sense) and
    allocate `totalSfntSize' bytes for the sfnt stream.  `write_buf'
    handles reallocation if and when required.  Also resize the stream
    to `actual_sfnt_size' after reconstruction.

commit 4d9b3d1d506c2da2cc078369ed130fb2b6994bb2
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Tue Jul 16 02:45:03 2019 +0530

    [woff2] Reconstruct `loca', `hmtx', and swap out stream.

    Add necessary functions to reconstruct loca and hmtx tables (the two
    remaining tables that can have a transform).  `woff2_open_font' is
    now capable of loading a woff2 font face.  This code may still need
    more refining and better memory management.

    * include/freetype/internal/wofftypes.h (WOFF2_HeaderRec): Add total
    (final) size of sfnt stream.

    (WOFF2_InfoRec): Add header checksum value.

    * src/sfnt/sfobjs.c (sfnt_open_font): Change `face_instance_index'
    parameter to its pointer so its value can be modified by
    `woff2_open_font'.

    * src/sfnt/sfwoff2.c: (WRITE_SFNT_BUF_AT): New macro to write into
    sfnt buffer at given position.

    (write_buf): Add parameter `extend_buf' which allows caller to
    specify whether buffer should be reallocated before copying data.

    (WRITE_SFNT_BUF): Updated.

    (pad4, store_loca, reconstruct_htmx): New functions.

    (reconstruct_glyf): Calculate loca values and store them.

    (reconstruct_font): Call `reconstruct_hmtx', write table record
    entries, and calculate table checksums.  Also calculate font
    checksum and update `checksumAdjustment' entry in head table.

    (woff2_open_font): Open stream for sfnt buffer, swap out input
    stream and return.

    * src/sfnt/sfwoff2.h (woff2_open_font): Modify parameter to accept
    pointer to `face_index'.

commit e3953e5410eaeec7ae49dbda26be6e4b1ca5d26c
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sat Jul 13 03:14:17 2019 +0530

    [woff2] Reconstruct transformed `glyf' table.

    Reconstruct `glyf' table if it is transformed in the uncompressed
    table stream.  Also add necessary structures, macros and functions.

    * include/freetype/internal/wofftypes.h (WOFF2_InfoRec,
    WOFF2_SubstreamRec, WOFF2_PointRec): New structures.
    (WOFF2_TableRec): s/OrigLength/dst_length/.

    * src/sfnt/sfwoff2.c (READ_255USHORT, READ_BASE128): Use
    `FT_SET_ERROR' to set implicit `error' variable.

    (WRITE_SHORT): New macro.

    (N_CONTOUR_STREAM, N_POINTS_STREAM, FLAG_STREAM, GLYPH_STREAM,
    COMPOSITE_STREAM, BBOX_STREAM, INSTRUCTION_STREAM): New macros to
    refer to substreams of the transformed `glyf' tables.

    (Read255UShort, ReadBase128): Return errors set by `FT_READ_XXX'
    macros.

    (with_sign, safe_int_addition): New functions to add sign to values
    based on a flag and perform safe addition respectively.

    (triplet_decode): Decode variable-length (flag, xCoordinate,
    yCoordinate) triplet for a simple glyph.   See

      https://www.w3.org/TR/WOFF2/#triplet_decoding

    (store_points, compute_bbox, composteGlyph_size, reconstruct_glyf):
    New functions.

    (reconstruct_font): Call `reconstruct_glyf'.

    * src/sfnt/sfwoff2.h: Add required constants.

    * src/sfnt/woff2tags.h: Move out constants to `sfwoff2.h'.

commit 81cf5326d59282265ccc0911050005a4b5d20a99
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sat Jul 6 18:05:18 2019 +0530

    [woff2] Copy un-transformed tables to sfnt stream.

    Copy un-transformed tables to the sfnt stream.

    * src/sfnt/sfwoff2.c: (WRITE_SFNT_BUF): New macro.
    (write_buf): New function.  Extend memory of `dst' buffer and copy
    bytes from `src'.
    (compute_ULong_sum): New function.  Calculate checksum of table.
    (reconstruct_font): Change `FT_Byte* sfnt' to `FT_Byte**
    sfnt_bytes'.  This has been done because we reallocate memory to
    `sfnt' multiple times, which may change the pointer value of `sfnt'.
    This new pointer must be propogated back to the caller.  Same reason
    for using a double pointer in `write_buf'.

    * src/sfnt/woff2tags.h (WOFF2_DEFAULT_MAX_SIZE): New macro used for
    overflow checking.

commit 106bacf5022e8c7c8bdcd8407efd64fb6db182b4
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Fri Jul 5 01:09:52 2019 +0530

    [woff2] Create stream for uncompressed buffer.

    Uncompressed buffer is now an `FT_Stream'.

    Perform basic checks and start iterating over tables.

    * src/sfnt/sfwoff2.c (stream_close, find_table, read_num_hmetrics):
    New functions.
    (reconstruct_font): Modify parameters and iterate over tables.
    (woff2_open_font): Updated.

commit 18f6ff11f91e377d6296bad2ece8bb2be7dbb0e2
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Mon Jul 1 01:29:30 2019 +0530

    [woff2] Handle TTCs and start reconstructing font.

    We `handle' TTCs by modifying the `indices' array to point to only
    those tables that are part of the requested `face_index'.

    Set and use `num_tables' in `WOFF2_TtcFont'.

    * src/sfnt/sfwoff2.c (reconstruct_font): New function.
    (woff2_open_font): Start reconstruction of font.

commit 7a1639bc1ee3ab8d79bfd7b58270c2f3eb908269
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sun Jun 30 20:01:20 2019 +0530

    [woff2] Get known tags from function.

    Change `KnownTags' to a function (`woff2_known_tags').  This avoids
    introducing a global constant array.  This function returns the
    specified index without *any* checks.  The caller must ensure that
    `index' is within array limits.

    * src/sfnt/sfwoff2.c (woff2_open_font): Change `KnownTags[...]'
    notation to `woff2_known_tags( ...  )'.

    * src/sfnt/woff2tags.c: Perform changes.

    * src/sfnt/woff2tags.h: Update definitions.

commit c6c2c0b574c6a8b6f0a780516f96b1a98af8492e
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sun Jun 30 19:32:27 2019 +0530

    [woff2] Minor.

    * src/sfnt/sfwoff2.c (woff2_uncompress): Add error message
    (woff2_open_font): Free `uncompressed_buf'.

commit fc65d45a62e1ffec6010cd17f22cfe59668e5592
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sun Jun 30 04:31:04 2019 +0530

    [woff2] Uncompress Brotli streams and `face_index' support.

    WOFF2 compressed stream is now uncompressed if Brotli is available.
    This data is stored in a separate buffer (uncompressed_buf) because
    it does not contain direct table data.  Certain tables have
    transformations applied to them, and they must be reconstructed
    before we can write those tables to the SFNT stream.

    `face_index' is now being passed as a parameter to
    `woff2_open_font'.

    * src/sfnt/sfobjs.c (sfnt_open_font): Add parameter
    `face_instance_index'.

    * src/sfnt/sfwoff2.c (woff2_uncompress): New function.
    (woff2_open_font): Call `woff2_uncompress'.
    (compute_first_table_offset): Fix return type.

    * src/sfnt/sfwoff2.h (woff2_open_font): Modify declaration.

commit 732da8a4b7d3e28da5d89eeeafb7dbbe965f0870
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sun Jun 30 04:15:55 2019 +0530

    * builds/unix/configure.raw: Change argument name to `brotli'.

commit 9443a1bc3e6cfa315db976ff80f6c5e91b12b387
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Fri Jun 28 01:01:17 2019 +0530

    Add Brotli dependency and required checks.

    Brotli is required for decompressing WOFF2 font directory streams.
    The library is thus being added as an optional dependency for
    FreeType.

    * builds/unix/configure.raw: Add checks for `libbrotlidec'.
    (REQUIRES_PRIVATE, LIBS_PRIVATE, LIBSSTATIC_CONFIG): Updated.

    * devel/ftoption.h, include/freetype/config/ftoption.h
    (FT_CONFIG_OPTION_USE_BROTLI): New macro.

commit 76c64f6ba1eb66cb983f38e03f39e179ceb74487
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Mon Jun 24 01:07:18 2019 +0530

    [woff2] Write SFNT Offset table.

    * src/sfnt/sfwoff2.c (WRITE_USHORT, WRITE_ULONG): New macros.
    (compare_tags): New function.
    (woff2_open_font): Implement it.

commit e09fe4cc790086c2282313aa968dfef4a4196f91
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Tue Jun 18 19:58:55 2019 +0530

    * src/sfnt/sfwoff2.c: #undef macros.

commit e496cb2980978be5b4b7a3721135a9d6a5d68aa8
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sun Jun 16 18:56:18 2019 +0530

    [woff2] Read table and collection directory.

    * include/freetype/internal/wofftypes.h (WOFF2_TtcFontRec): New
    structure.
    (WOFF2_HeaderRec): Add more fields.

    * src/sfnt/sfwoff2.c (READ_255USHORT, READ_BASE128, ROUND4): New
    macros.
    (Read255UShort, CollectionHeaderSize, compute_first_table_offset):
    New functions.
    (ReadBase128): Use `FT_READ_BYTE'.
    (woff2_open_font): Add functionality to read table directory and
    collection directory (if present).

commit 8c1e3fc339eeb66d2de526425ca21794161c0346
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sun Jun 16 18:40:48 2019 +0530

    [sfnt] Include `woff2tags.c' for building.

    * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `woff2tags.c'.

    * src/sfnt/sfnt.c: Include `woff2tags.c'.

commit b45c7dd5e2719da00a724bbb29fbc2b882060ade
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sun Jun 16 17:55:59 2019 +0530

    [sfnt] Add WOFF2 constants.

    Add constants required for WOFF2, and known table tags as defined in
    the specification.  See

      https://www.w3.org/TR/WOFF2/#table_dir_format

    for details.

    * src/sfnt/woff2tags.c, src/sfnt/woff2tags.h: New files.

commit 2fa573c1b038a32b7c6f5c76477f9b66a47cc425
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Wed Jun 12 00:21:20 2019 +0530

    [sfnt] Read WOFF 2 header.

    Check for WOFF2 tag, call `woff2_open_font', and implement it to read
    header according to specification.

    * include/freetype/internal/fttrace.h: Add `sfwoff2.c'.

    * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `sfwoff2.c'.

    * src/sfnt/sfnt.c: Include `sfwoff2.c'.

    * src/sfnt/sfobjs.c (sfnt_open_font): Check for `wOF2' tag and call
    `woff2_open_font'.

    * src/sfnt/sfwoff2.c, src/sfnt/sfwoff2.h: New files.

commit 83dba0e9ec073d26e1a6febe62cc12e9dca2583c
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Tue Jun 11 23:40:19 2019 +0530

    Add structures for WOFF2.

    Add structures and macro for WOFF 2 header and table directory.

    * include/freetype/internal/wofftypes.h (WOFF2_HeaderRec,
    WOFF2_TableRec_): New structures.

    * include/freetype/tttags.h (TTAG_wOF2): New macro.

commit 9adc3b35f1a6909c1785c42ae7b8cf369634b225
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Aug 26 20:36:19 2019 +0200

    * src/psaux/cffdecode.c (cff_operator_seac): Fix numeric overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16470

commit 7d1d3b9a0e9310376a559ad2eac8a9dc4c60ce59
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Aug 26 09:08:56 2019 +0200

    [type1] Fix `FT_Get_Var_Axis_Flags' (#56804).

    * src/type1/t1load.c (T1_Get_MM_Var): Allocate space for axis flags.
    Also remove redundant assignment.

commit 734d60f63cfa27f9b337ddbb80adb9edd60475bf
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Aug 6 20:38:17 2019 +0200

    Another minor documentation improvement.

commit ad3443c93121c59181fc4b46c5179d0d00bfcc4e
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Aug 5 10:00:41 2019 +0200

    Minor documentation improvement.

commit 12af46b649fdb946bacf150428e5cdfc3470a7ca
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Jul 23 22:38:30 2019 -0400

    * src/base/ftbbox.c (cubic_peak): Sanitize left shift (#56586).

commit d5522ac0603a15bd87f795d36dc218681befe022
Author: Weiyi Wu <w1w2y3@gmail.com>
Date:   Mon Jul 22 09:49:22 2019 +0200

    * src/cid/cidload.c (cid_hex_to_binary): Fix typo (#56653).

commit b110acba9e6f7e40314f0da5d249cb3cb3beeab8
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Jul 12 11:36:12 2019 +0200

    [sfnt, winfonts] Avoid memory leaks in case of error (#56587).

    * src/sfnt/sfwoff.c (woff_open_font): Call `FT_FRAME_EXIT' in case
    of error.

    * src/winfonts/winfnt.c (fnt_face_get_dll_font): Ditto.

commit 12e4307dc7b48c9a4a4fc3ac6c32220874ab18ec
Author: Ben Wagner <bungeman@google.com>
Date:   Fri Jul 12 10:48:10 2019 +0200

    Properly handle phantom points for variation fonts (#56601).

    * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Scale phantom
    points if HVAR and/or VVAR is present.

commit 05439f5cc69eaa3deaf3db52a7999af09a2c293a
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jul 4 14:28:04 2019 +0200

    [psaux] (2/2) Handle fonts that use SEAC for ligatures (#56580).

    The same as previous commit but for the old engine.

    * src/psaux/t1decode.c (t1operator_seac): Implement it.

commit f2b64583cb2587373e126b06d8da9ac97b287681
Author: Chris Liddell <chris.liddell@artifex.com>
Date:   Thu Jul 4 14:04:52 2019 +0200

    [psaux] (1/2) Handle fonts that use SEAC for ligatures (#56580).

    As originally intended, a Type 1 SEAC charstring would be used for
    an accented glyph (like `acaron' or `uumlaut'), where the advance
    width of the SEAC glyph is the same as that of the `base' glyph
    (like `a' or `u').  In this case it is not uncommon for the SEAC
    glyph to not use an (H)SBW opcode of its own but to rely on the
    value from the base glyph.

    However, out-of-spec fonts also use SEAC glyphs for ligatures (like
    `oe' or `fi'), and in those cases the overall advance width is
    greater than that of the `base' glyph.  For this reason we have to
    allow that the SEAC glyph can have an (H)SBW value of its own, and
    if it has, retain this value, rather than the one from the base
    glyph.

    * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_escSEAC>:
    Implement it.

commit 8cf046c38d4c6ada76ba070562beff0d5041f795
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jul 1 13:54:54 2019 +0200

    * Version 2.10.1 released.
    ==========================

    Tag sources with `VER-2-10-1'.

    * docs/VERSION.TXT: Add entry for version 2.10.1.

    * README, Jamfile (RefDoc), src/base/ftver.rc,
    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.10.0/2.10.1/, s/2100/2101/.

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

    * builds/unix/configure.raw (version_info): Set to 23:1:17.
    * CMakeLists.txt (VERSION_PATCH): Set to 1.

    * include/freetype/fterrors.h (FT_Error_String): Fix C++ compilation.

commit 7b1c7585d7ab929d9b29932d6697a22149162c13
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Jun 26 20:18:00 2019 -0400

    * src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Fix inequality.

    Reported by Armin Hasitzka.

commit 81445c034aca36040b6311dc71a2cbed9548b262
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Jun 22 22:54:57 2019 -0400

    Doc polishing.

commit a41e560b213d72f36c37b7b25960839de7d29fd0
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Jun 19 22:29:55 2019 -0400

    Minor.

commit 1e20a37f641d3b3e5e92b9a49d08553bc7bac5de
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Jun 19 16:45:39 2019 +0200

    docs/CHANGES: Updated.

commit 983a87c6ece8d46e33bf7f6ff68f61b0d7a133d2
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 16 15:58:21 2019 +0200

    * src/tools/apinames.c: Formatting, minor edits.

commit 47ca5cb69d26b606b51292a90d025688d4dc5e4e
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 16 15:32:11 2019 +0200

    [autofit] Disable hinting if no blue zones are available (#56450).

    * src/autofit/afglobal.c (af_face_global_get_metrics): Start again
    (with dummy hinter module) if no blue zones are present.

    * src/autofit/aflatin.c (af_latin_metrics_init_blues): Change
    signature to return error code.
    If no blue zones are found, update `glyph_styles' array to hold
    AF_STYLE_NONE_DFLT instead of the current style.
    (af_latin_metrics_init): Return internal error code if no blue zones
    are found.

commit 82e4090431e07825e80add74910e5135bb1f3b90
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 16 10:09:17 2019 +0200

    Towards better VMS support.

    More to come.

    * builds/vms/LIBS.OPT_IA64, builds/vms/_LINK.OPT_IA64,
    builds/vms/vmslib.dat: New files provided by Jouk Jansen
    <joukj@hrem.nano.tudelft.nl>.

    * builds/vms/ftconfig.h: Update, also from Jouk.

commit 3736b28af9d93d74d3d4c269897a80d01dfbfe46
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jun 13 13:45:05 2019 +0200

    * src/autofit/aflatin.c (af_latin_metrics_init_widths): Minor.

commit 8acd9800edf581428e5a227022545b700e7ab130
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jun 13 11:12:26 2019 +0200

    Add memory access macro summary.

commit e7ac9288acde8ad21c96ad9c448ad2b2cfc9fe6a
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Jun 13 00:17:36 2019 -0400

    [smooth] Restore the span buffering for direct mode only.

    The buffer size FT_MAX_GRAY_SPANS is set to 10 spans, which should be
    enough to cover the entire scanline for simple glyphs in most cases:
    each slightly slanted edge needs up to two spans, plus a filling span
    in-between.  This is not new, we used to do it before cb4388783cecc.

    * src/smooth/ftgrays.c (gray_TWorker): Add `spans' and `num_spans'.
    (gray_hline, gray_sweep): Implement the span buffering.
    (gray_raster_render): Use negative `num_spans' to avoid the direct
    mode.

commit 59e0c6f92e142bb8b5c13a3303a1d7428e09a9bc
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Jun 12 22:30:21 2019 -0400

    * include/freetype/ftmodapi.h (FT_DebugHook_Func): Return error.

    Fix a warning by adding a return value as in `TT_RunIns',
    which should not be a compatibility issue.

commit bdac4cbe6fb77108a753be859fe73579c5cddc97
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Jun 12 21:58:35 2019 -0400

    Rendering considerations.

commit d1b16325e27b766c27cc9f569c0aa334f1ecb732
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Jun 11 21:43:47 2019 -0400

    * src/truetype/ttobjs.c (tt_check_trickyness_family): Add `const'.

commit 6a92b1fadde26477a9179cbea988b3e04bd2decc
Author: Moazin Khatti <moazinkhatri@gmail.com>
Date:   Tue Jun 11 21:29:52 2019 +0500

    [gzip] Add support for `gzip' encoded header (#9812).

commit 78c02bc110b6a605c41487d8c26ae18960df251b
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Mon Jun 10 23:09:49 2019 -0400

    [type1,type42] Use `const' for string literals.

    * include/freetype/internal/psaux.h (PS_Table_FuncsRec): Updated.
    * include/freetype/internal/t1types.h (T1_EncodingRec): Updated.
    * src/psaux/psobjs.[ch] (ps_table_add): Updated.
    * src/type1/t1load.c (T1_Open_Face, parse_encoding): Updated.
    * src/type42/t42objs.c (T42_Open_Face): Updated.
    * src/type42/t42parse.c (t42_parse_encoding): Updated.

    * src/cff/cffobjs.c (cff_face_init): Minor.

commit afaf3f1de925ade18d7fc2a202f28922cd5e91ff
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Mon Jun 10 22:27:39 2019 -0400

    [bdf,pcf] Use `const' for string literals.

    * src/bdf/bdf.h (bdf_property_t): Updated `name'.
    * src/bdf/bdflib.c (_bdf_list_split,bdf_create_property,
    _bdf_add_property,_bdf_ato*): Updated.
    * src/bdf/bdfdrivr.c (bdf_interpret_style): Updated.
    * src/pcf/pcfread.c (pcf_intrpret_style): Ditto.

commit 7fde521bd918d2299cce80c306ecc2cac9f51303
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jun 10 15:37:33 2019 +0200

    Update CHANGES file.

commit 711b593e4b589fbd726a4962ad492fc4e416355d
Author: Philip Race <philip.race@oracle.com>
Date:   Fri Jun 7 09:15:28 2019 +0200

    * src/base/ftinit.c (FT_Set_Default_Properties): Fix crash.

    Terminate loop at end of environment.

commit c949ab0757a2514cd3a37b3e1e8390fd662a025b
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Jun 4 20:17:05 2019 -0400

    Minor.

commit e13c1f46dc1afb1b2287849be5fa74ef70e0607b
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri May 31 22:31:47 2019 -0400

    Solidify VC2005 builds.

    * include/freetype/internal/ftcalc.h (FT_MSB) [_MSC_VER]: Explicitly
    declare `_BitScanReverse' intrinsic.
    * builds/windows/visualc/freetype.vcproj [Debug]: Disable intrinsics.

commit 7b275a5af161c71a169dcec65f2f6998c9f2d6d5
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Thu May 30 23:57:34 2019 +0530

    [sfnt] Separate WOFF sources and headers.

    Move WOFF sources and headers to separate files.

    * include/freetype/internal/wofftypes.h, src/sfnt/sfwoff.c,
    src/sfnt/sfwoff.h: New files.

    * include/freetype/internal/fttrace.h: Register `sfwoff.c'.

    * include/freetype/internal/internal.h: Define
    FT_INTERNAL_WOFF_TYPES_H.

    * include/freetype/internal/sfnt.h: Include FT_INTERNAL_WOFF_TYPES_H.

    * include/freetype/internal/tttypes.h: Move out WOFF structures.

    * src/sfnt/rules.mk: Add `sfwoff.c'.

    * src/sfnt/sfnt.c: Include `sfwoff.c'.

    * src/sfnt/sfobjs.c: Include `sfwoff.h', move out WOFF sources.

commit f0de218cedc693f3dee62fbf045cdd39ac03d12d
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu May 30 08:43:45 2019 +0200

    [base] Fix `make multi'.

    Reported by Nikhil.

    * src/base/fterrors.c: Include FT_INTERNAL_DEBUG_H.

commit f37083edf0ef562fb8bae0dfc6f916b1037f71fe
Author: Ben Wagner <bungeman@google.com>
Date:   Wed May 29 08:15:38 2019 +0200

    [truetype] Fix copy-and-paste error (#56409).

    * src/truetype/ttgload.c (load_truetype_glyph): Use correct indices
    into `unrounded' array for phantom points.

commit 49079ce297c1698139456d0d3664bf32674d0ee5
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed May 29 08:08:53 2019 +0200

    [truetype] Fix 32bit builds (#56404).

    Patch suggested by Ben Wagner <bungeman@google.com>.

    * src/truetype/ttgxvar.c (FT_fixedToInt, FT_fixedToFdot6): Remove
    harmful cast to unsigned type.

commit 9159128a9297710071e28b24e3cbd29b7a475ebc
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed May 29 07:45:54 2019 +0200

    Silence gcc 7's fall-through warnings in `switch' blocks.

    Instead of an intentionally missing `break' statement there must be a
    comment line containing `fall through' (and nothing else) right before the
    next `case' statement.

    See

      https://stackoverflow.com/questions/45129741/gcc-7-wimplicit-fallthrough-warnings-and-portable-way-to-clear-them

commit 86d997e5b1c401db06114b51d44d1bef6c7fe994
Author: Ben Wagner <bungeman@google.com>
Date:   Sun May 26 09:37:41 2019 -0400

    * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Improve accuracy.

commit e55f969869f4afa55259058c8ea78199abf24a59
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sat May 25 20:56:54 2019 +0530

    * src/sfnt/sfobjs.h: Minor.

commit 306d2f6ccb5a05eb54c8de7ef07fc5b46f1649a1
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu May 23 14:41:57 2019 +0200

    [truetype] Draw glyphs without deltas in variation font (#56374).

    * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Always fill
    `unrounded' array.

commit c3be6f06b70bd6636cfdef0e3cf892151d6c7a1d
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 21 11:23:36 2019 +0200

    src/truetype/ttinterp.c: Give order of operations for some instructions.

commit 262fce445a50ee5cc50f177c61b0b4889cdfb6e7
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 21 09:58:51 2019 +0200

    * src/truetype/ttinterp.c (opcode_name): Improve mnemonics.

commit 8eafa52830713f1ae5d8dc264c293d2b2055e8a8
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 21 09:57:38 2019 +0200

    ttinterp.c: Improve documentation of engine compensation.

commit 141e3173dbddf809ee139d8775c06fac82288243
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Mon May 20 23:09:59 2019 -0400

    Rendering considerations.

commit b0522701f890372ff9f3d921cf212bccd1f64400
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu May 16 12:52:57 2019 +0200

    [truetype] Actually scale varied CVT values.

    Up to now, only the unscaled CVT values were varied; in other words,
    the `CVAR' data was never used for bytecode hinting.

    * src/truetype/ttgxvar.c (tt_cvt_ready_iterator): New auxiliary
    function.
    (tt_face_vary_cvt): Use it to trigger rescaling of CVT values.

commit 37580053b491b69284988ed25cbbf6e884151eb0
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu May 16 12:15:54 2019 +0200

    [truetype] Use 26.6 format for storing unscaled CVT values.

    If `CVAR' data is applied to variation fonts, fractional values are
    possible.

    * include/freetype/internal/tttypes.h (TT_FaceRec): Change type of
    `cvt' from `FT_Short' to `FT_Int32'.

    * src/truetype/ttgxvar.c (FT_fdot6ToFixed): New macro.
    (tt_face_vary_cvt): Use it to update code to 26.6 format.

    * src/truetype/ttobjs.c (tt_size_run_prep): Update code to 26.6
    format.

    * src/truetype/ttpload.c (tt_face_load_cvt): Stora data in 26.6
    format.

commit ac335cd5865fcae031689e23c470907245aad4a0
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu May 16 10:15:53 2019 +0200

    * src/truetype/ttgload.c (load_truetype_glyph): Init `unrounded'.

    This fixes linear advance width values for spacing glyphs.  Bug
    introduced 2019-05-09.

commit 535b687e58960f29c2da936c486deb3065d32250
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu May 16 09:55:16 2019 +0200

    [truetype] Avoid code duplication.

    * src/truetype/ttobjs.c (tt_size_run_prep): Scale CVT values in this
    function.
    (tt_size_ready_bytecode): Updated.
    * src/truetype/ttgload.c (tt_loader_init): Updated.

commit 787db7c04815acf9ef25ec262be675a632cdd95e
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon May 13 22:22:57 2019 +0200

    * vms_make.com: Updated.  Handle `bzip2' directory, too.

commit 03f3f8ab9e5bab63d925c7369a78d59b831896d7
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon May 13 06:53:19 2019 +0200

    * src/psaux/psfont.c (cf2_font_setup): Fix compiler warning.

commit 94ebc248653ede802b2bfbf6219e17f487fab3ff
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun May 12 21:05:36 2019 +0200

    [truetype] Doh.  Fix last commit to make it work.

    Very embarassing :-)

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14701
      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14705
      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14710

    * src/truetype/ttgload.c (IS_DEFAULT_INSTANCE): Move up and add
    argument; update all callers.
    (TT_Process_Simple_Glyph): Use it.  The `unrounded' array is active
    for variation fonts only, thus also enclose related code with
    `#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT ...  #endif' where
    necessary.
    Revert commit a113e5d from 2019-05-09, and don't use `extra_points2'
    but allocate a temporary array.
    Speed up the scaling of the `unrounded' array.

    * src/truetype/ttgxvar.c (FT_fixedToInt, FT_FixedToFdot6): Fix type
    conversions and rounding.  The unsigned type must have more or equal
    bits to the signed type.

commit 1178227b39a4eeecbefad226d4a753b345a16eb1
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat May 11 09:29:19 2019 +0200

    [truetype] Increase precision of font variation (#54371).

    This patch make FreeType use font units in 26.6 format internally
    instead of integers.

    * src/truetype/ttgxvar.c (FT_fixedToFdot6): New macro.
    (TT_Vary_Apply_Glyph_Deltas): Add argument to output unrounded font
    coordinates.
    * src/truetype/ttgxvar.h: Updated.

    * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Use
    `extra_points2' array to temporarily hold unrounded point
    coordinates; use them to compute scaled coordinates and linear
    advance width and height.
    (load_truetype_code): Adjust similarly.

commit a113e5df0cc31425e7bb4135cd297305db33d0ed
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu May 9 11:37:58 2019 +0200

    * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Minor.

commit bc3b5281ed08d1cae3a2d881d2c72d0e98e57c05
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed May 8 22:08:40 2019 -0400

    [smooth] Faster fractions.

    * src/smooth/ftgrays.c (SUBPIXELS): Replace with...
    (FRACT): A fractional coordinate macro to use in...
    (gray_render_line, gray_render_scanline): ... here.

commit 0c6f61ab12963c2a594e1b264388820599050f0e
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue May 7 19:07:11 2019 -0400

    * src/raster/ftraster.c (Draw_Sweep): Unbreak.

commit ea7e20fba62717319e088e9e0d776c3b4473eda8
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue May 7 07:00:38 2019 -0400

    * src/raster/ftraster.c: Clean-ups.

commit dc39f76cb7aecbefa3a601dd19e498eb903042fd
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 7 10:09:55 2019 +0200

    * src/truetype/ttgxvar.c: More use of `FT_fdot14ToFixed'.

commit 81725773800029731617b95cee57cd32a8b46756
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat May 4 08:11:20 2019 -0400

    * src/smooth/ftgrays.c (gray_render_line): Small shortcut.

commit 7b841047207c40b70590ab59c11be898a41504c2
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat May 4 08:13:22 2019 +0200

    Various clang 8.0 static analyzer fixes.

    Reported by Sender Ghost <lightside@gmx.com>.

    * src/autofit/afcjk.c (af_cjk_hints_compute_edges): Catch a corner
    case where `edge->first' could be NULL.

    * src/pfr/pfrobjs.c (pfr_slot_load): Remove unnecessary test of
    `size'.

    * src/raster/ftraster.c (Draw_Sweep): Catch a corner case where
    `draw_right' might be NULL.

    * src/sfnt/ttmtx.c (tt_face_get_metrics): Fix limit test for
    `aadvance'.
    Ensure `abearing' always hold a meaningful result.

    * src/truetype/ttgload.c (load_truetype_glyph): Ensure `subglyph' is
    not NULL before accessing it.
    * src/truetype/ttgxvar.c (TT_Set_Named_Instance): Remove unnecessary
    test of `namedstyle'.

    * src/type42/t42parse.c (t42_parser_done): Ensure
    `parser->root.funcs.done' is not NULL before accessing it.

commit 300458eb949f71a486710b69bb6b704139765b26
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri May 3 23:16:42 2019 -0400

    Miscellaneous macro updates.

    * src/base/ftoutln.c (SCALED): Updated.
    * src/smooth/ftgrays.c (SCALED): Ditto.
    (FLOOR, ROUND, CEILING): Removed.
    * src/psaux/psfixed.h (cf2_fracToFixed): Updated.

commit 65f9516bc7554c15d76ceb303ff110c84e61a55f
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu May 2 23:06:55 2019 -0400

    Tweak LCD filtering.

    * src/base/ftlcdfil.c (ft_lcd_filter_fir, _ft_lcd_filter_legacy):
    Choose direction from bitmap's pixel_mode.
    * include/freetype/internal/ftobjs.c (FT_Bitmap_LcdFilterFunc):
    Updated.
    * src/smooth/ftsmooth.c (ft_smooth_render_generic): Updated.

commit 65e4925af4070ef80798b8d479947aec7a0fbfc6
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu May 2 07:21:34 2019 +0200

    * vms_make.com: Updated (#56253).

    Remove no longer existing directories (`autohint', `otlayout').
    Update used base extensions.
    Activate `autofit' module.
    Add `gxvalid' module.
    Update copyright notices.

commit 2ea511eed81770f423544525adebf7f954b8be93
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Mon Apr 29 22:49:15 2019 -0400

    [smooth] Simplify cubic Bézier flattening.

    The previous implementation is correct but it is too complex.
    The revised algorithm is based on the fact that each split moves
    the control points closer to the trisection points on the chord.
    The corresponding distances are good surrogates for the curve
    deviation from the straight line.

    This cubic flattening algorithm is somewhat similar to the conic
    algorithm based the distance from the control point to the middle of
    the chord.  The cubic distances, however, decrease less predictably
    but are easy enough to calculate on each step.

    * src/smooth/ftgrays.c (gray_render_cubic): Replace the split
    condition.

commit 80475edead39eb3e7305ebfd43c3fb03a04d372f
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Apr 26 21:53:00 2019 -0400

    [smooth] Bithacks and cosmetics.

    * src/smooth/ftgrays.c (gray_record_cell, gray_set_cell, gray_hline,
    gray_render_conic, gray_convert_glyph_inner): Updated.

commit 7a81b63abc2b3da0d7f0950f69377d2b3f54b0fb
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Apr 25 22:06:33 2019 -0400

    Optimize Bézier bisections.

    * src/raster/ftraster.c (Split_Conic, Split_Cubic): Use shifts and
    refactor.
    * src/smooth/ftgrays.c (gray_split_conic, gray_split_cubic): Ditto.
    * src/base/ftstroke.c (ft_conic_split, ft_cubic_split): Ditto.
    * src/base/ftbbox.c (cubic_peak): Use shifts.

commit 432bb50ff539e7672723dc9161e44046710a1334
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Apr 23 21:51:42 2019 -0400

    Clarify docs.

commit 6abce2c2b04a14bd711d5d0fee3ba23e9612a747
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Apr 23 06:52:07 2019 +0200

    * src/sfnt/ttcmap.c (tt_cmap12_next): Remove dead code.

    Found by clang 8.0's static analyzer and reported by Sender Ghost
    <lightside@gmx.com>.

commit 4166c453601e856fa61e8994085f240d8771e980
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Apr 23 06:49:56 2019 +0200

    [base] Fix thinko in previous commit.

    * src/base/ftbitmap.c (FT_Bitmap_Blend): Check final width, not
    target pitch.

    Problem reported by Sender Ghost <lightside@gmx.com>.

commit 9f6ed10545b1009cce86289f793165dd7e4b7c9e
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Apr 22 08:10:56 2019 +0200

    * src/base/ftbitmap.c (FT_Bitmap_Blend): Check target pitch.

    Problem reported by Sender Ghost <lightside@gmx.com>.

commit af400438b7da3f07afadc3a5b3a6b982b2bdb84e
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Apr 22 07:41:35 2019 +0200

    Fix return value of `FT_Set_Named_Instance' (#56186).

    * src/truetype/ttgxvar.c (TT_Set_Named_Instance): Correctly handle
    internal return value -1 of `TT_Set_Var_Design'.

commit d74106e2333fefbb015ccf2018ece01c01b554fa
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Apr 19 07:07:01 2019 +0200

    Typo.

commit c149f7397e484c97f45fb75fa1c7fdda2fc646cd
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Apr 17 07:49:17 2019 +0200

    [pcf] Fix handling of undefined glyph (#56067).

    This commit fixes the changes from 2018-07-21, which broke charmap
    iteration.  We now add the default character as a new glyph with
    index 0, thus increasing the number of glyphs by one (as before).

    * src/pcf/pcfread.c (pcf_get_metrics): Adjust to new artificial
    glyph with index 0.
    Limit number of elements to 65534.
    (pcf_get_bitmaps): Ditto.
    Unify two loops into one; this avoids allocation of an intermediate
    array.
    (pcf_get_encodings): Don't flip indices but copy glyph metrics of
    default character to index 0.
    Also handle invalid default character.

    * docs/CHANGES: Updated.

commit ebe375081289844e580242fe7956fa2082ab89b6
Author: Minmin Gong <gongminmin@msn.com>
Date:   Mon Apr 15 10:46:19 2019 +0200

    * CMakeLists.txt: Avoid rewriting of unchanged configuration files.

    Reported as

      https://savannah.nongnu.org/patch/index.php?9755

commit 8837ac26d00f5a433ec9fd8bc08446b6df4c5bd5
Author: JDG <JonathanG@iQmetrix.com>
Date:   Mon Apr 15 10:10:38 2019 +0200

    * src/tools/apinames.c (main): Fix error message.

    Reported as

      https://savannah.nongnu.org/patch/?9796

commit 01aed76c6815842631c87f43ec77b9870c4a1884
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Apr 14 09:39:28 2019 +0200

    Minor.

commit 9e9bc9dadedd1dfa4023ba2124dba5afcf4f835f
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Apr 12 06:19:25 2019 +0200

    Split off ChangeLog.29.

commit 1f271751a39e5bc9c639adc213183ed5e58a9401
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Apr 11 23:48:21 2019 -0400

    [smooth] Fix segfault in direct mode (#56092).

    * src/base/ftoutln.c (FT_Outline_Render): Set missing clip_box for
    direct mode.
    * src/smooth/ftgrays.c (gray_raster_render): Use it.

commit f0384d5fb09d6a079614ad79fadf52cce5daba83
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Apr 9 11:01:24 2019 +0200

    Minor.

commit 885b4c2475f3272afd4115c97c150266cd815406
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Apr 6 07:07:37 2019 +0200

    * src/sfnt/ttcmap.c (tt_get_glyph_name): Pacify compiler (#56061).

    This is for Visual Studio 2019 on ARM.

commit 74e9ca6d2ef5b0010d9ac8f2763dcf16163f40ce
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Apr 6 06:51:08 2019 +0200

    For distribution, replace `.tar.bz2' with `.tar.xz' bundles.

    * builds/toplevel.mk (build): Do it.

    * README, docs/CHANGES, docs/release: Updated.

commit 3ad1c93ac1b111b76dc671181b1deab252cc1f1e
Author: Antony Lee <anntzer.lee@gmail.com>
Date:   Sat Apr 6 06:37:42 2019 +0200

    Make `glyph_name' parameter to `FT_Get_Name_Index' a `const'.

    * include/freetype/freetype.h (FT_Get_Name_Index),
    include/freetype/internal/ftobjs.h (FT_Face_GetGlyphNameIndexFunc),
    include/freetype/internal/services/svgldict.h
    (FT_GlyphDict_NameIndexFunc), src/base/ftobjs.c (FT_Get_Name_Index),
    src/cff/cffdrivr.c (cff_get_name_index), src/sfnt/sfdriver.c
    (sfnt_get_name_index), src/type1/t1driver.c (t1_get_name_index),
    src/type42/t42drivr.c (t42_get_name_index): Add `const' to second
    argument.

commit 6986ddac1ece9404c9b640a512cbd99534205fda
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Sun Mar 31 11:08:49 2019 +0100

    [cff] Fix boundary checks.

    642bc7590c701c8cd35a9f60fa899cfa518b17ff introduced dynamically
    allocated memory when parsing CFF files with the "old" engine.  Bounds
    checks have never been updated, however, leading to pointless
    comparisons of pointers in some cases.  This commit presents a
    solution for bounds checks in the CFF module with an extended logic
    for the "old" engine while staying as concise as possible for the
    "new" one.

    * src/cff/cffparse.h: Introduce the struct `CFF_T2_StringRec' and
    the additional field `t2_strings' within `CFF_ParserRec'.

    * src/cff/cffparse.c (cff_parser_within_limits): Move all boundary
    checks into this new function and update the rest of `cffparse.c' to
    use it.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12137

commit fdb10e8b50cfff7be2ec2b77cb4a695f3d77643c
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Mar 21 13:51:59 2019 +0100

    Improve link.

commit df266d3e6b657c6220ae1a13b516f03d1a307d21
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Mar 20 07:04:06 2019 +0100

    [autofit] Fix Mongolian blue zone characters.

    * src/autofit/afblue.dat: Use U+200D (ZERO-WIDTH JOINER) characters
    to get medial forms for some Mongolian characters.
    * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.

commit dde03eec37579ef86ca6a9e04bf290bc85f785ad
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Mar 19 10:50:38 2019 +0100

    [autofit] Add support for Mongolian script.

    As a de-facto standard, layouts using this script are constructed
    horizontally line by line, then the lines are rotated clockwise for
    vertical display.

    * src/autofit/afblue.dat: Add blue zone data for Mongolian.
    * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.

    * src/autofit/afscript.h: Add Mongolian standard characters.

    * src/autofit/afranges.c, src/autofit/afstyles.h: Add Mongolian
    data.

commit fbbcf50367403a6316a013b51690071198962920
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Mar 15 07:27:02 2019 +0100

    * Version 2.10.0 released.
    ==========================

    Tag sources with `VER-2-10-0'.

    * docs/VERSION.TXT: Add entry for version 2.10.0.
    * docs/CHANGES: Updated.

    * README, Jamfile (RefDoc), src/base/ftver.rc,
    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.9.1/2.10.0/, s/291/2100/.

    * include/freetype/freetype.h (FREETYPE_MINOR): Set to 10.
    (FREETYPE_PATCH): Set to 0.

    * builds/unix/configure.raw (version_info): Set to 23:0:17.
    * CMakeLists.txt (VERSION_MINOR): Set to 10.
    (VERSION_PATCH): Set to 0.

    * builds/toplevel.mk (version, winversion): Since the minor version
    number has two digits now, never omit the patch number.  We would
    get ambiguous zip file names otherwise.
    (dist): Remove remnants of `docmaker' tool.
    (do-dist): Remove unused intermediate files.

    * src/cff/cffparse.c (destrict_c2s_item): Guard function with
    CFF_CONFIG_OPTION_OLD_ENGINE macro.

commit 4e64d9d3daa6356da8ad30b8303402f7dd4a30d2
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Mar 8 00:13:08 2019 +0100

    CHANGES: Minor fixes.

commit 2f4b740ce435bc1ad5ef8570bb91ab7cd5682720
Author: Andrei Alexeyev <0x416b617269@gmail.com>
Date:   Thu Mar 7 09:42:25 2019 +0100

    Fix invalid function pointer casts.

    This change should allow Freetype to work on WASM/Emscripten without
    needing `-s EMULATE_FUNCTION_POINTER_CASTS=1'.

    * src/autofit/afdummy.c (af_dummy_hints_apply): Fix signature.

    * src/cid/cidload.c (cid_parse_font_matrix, parse_fd_array,
    parse_expansion_factor, parse_font_name): Return `void', not
    `FT_Error'.

    * include/freetype/internal/ftobjs.h (FT_CMap_CharVarIsDefaultFunc):
    Fix signature.

commit 31757f969fba60d75404f31e8f1168bef5011770
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Mar 5 11:35:03 2019 +0100

    [base] Handle numeric overflow (#55827).

    * src/base/ftglyph.c (FT_Glyph_Get_CBox): Use `FT_PIX_CEIL_LONG'.

commit 6a4718a3a0584c976b10d4e3a2cc58dc5f4a8242
Author: Sebastian Rasmussen <sebras@gmail.com>
Date:   Tue Mar 5 17:25:19 2019 +0800

    Fix use of uninitialized memory.

    * src/psaux/psintrp.c (cf2_interpT2CharString): The call to
    `cf2_arrstack_setCount' may fail because the allocator ran out of
    memory.  When this happens the stack is still written to before the
    error condition is checked.  This means that FreeType writes outside
    of allocated memory.  This commit moves the error check prior to the
    stack assignment, hence the function now properly returns with an
    error condition.

commit 6d65c60fca0ebce88e2bcfeac92a7a791e03bf42
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sat Mar 2 16:05:51 2019 +0530

    Minor formatting.

commit bf04c592490402e7f00f6c7900bac01f9bd08fc6
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Feb 25 06:32:26 2019 +0100

    Minor doc fixes.

commit 4d51f78de9b26de3d182f17b7aa47eb644a708d4
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Feb 23 11:21:48 2019 +0100

    More documentation updates.

    In particular, mark the new behaviour of `FT_LOAD_COLOR' as experimental.

commit 6ab36880ce25ad0f67661609ac9ec9a3dcd4c992
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Feb 23 11:18:39 2019 +0100

    * src/base/ftbitmap.c (FT_Bitmap_Blend): No fractional offsets.

    The function only provided a framework without an actual
    implementation, which this commits removes.

commit 7585997024b354499dfb1a0d7b2423544467c3a5
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Feb 23 10:07:09 2019 +0100

    Update all copyright notices.

commit fd8fc64efb9b355a73192dc4d01d5daa8ecd31cd
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Feb 23 10:05:37 2019 +0100

    * src/tools/update-copyright-year: Insert `(C)'.

commit b77826e139dee90d2f1f6f804971e9a355a2f8a3
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Thu Feb 21 10:23:15 2019 +0000

    Triage 8ea854bfe92443706d55656072f891ec8f2cb3c2.

commit 8ea854bfe92443706d55656072f891ec8f2cb3c2
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Thu Feb 21 10:14:57 2019 +0000

    [truetype] Mask numeric overflows.

    * src/truetype/ttinterp.c (Move_CVT, Move_CVT_Stretched, Ins_MIRP):
    Mask numeric overflows.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11681
      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11734

commit 5e3a38b194f3a68e9a5a03a1bd0c6bb2eb3dec1f
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Thu Feb 21 10:04:28 2019 +0000

    [psaux] Mask numeric overflow.

    * src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Mask numeric
    overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13041

commit a346abc0934de411f26f8472ffbc6c4e0a8f95c7
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Feb 21 09:19:09 2019 +0100

    s/`....`/'....'/ for SFNT table tags in documentation.

commit 8de11f3def20c1e265ab0c60b7a4e81fa011ccf7
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Feb 20 16:18:40 2019 +0100

    s/NULL/`NULL`/ in documentation.

commit f92fa39341846b694864fb5e94da442c6f3fbb6e
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Feb 20 16:04:48 2019 +0100

    Minor documentation fixes.

commit de8de1ce0e498b8cc9ae39e5a7d156100bcda99b
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Feb 20 12:48:36 2019 +0100

    Minor (whitespace, spelling, doc update).

commit 0ac6921109aa78a26b874ad3a89b6ea0a209a7fc
Author: Wink Saville <wink@saville.com>
Date:   Sat Feb 16 07:05:39 2019 +0100

    * src/autofit/afwarp.h (af_warper_compute): Fix declaration.

commit 29b302ad36d527ea0c6e1c4b8e5f84bf3051a956
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Feb 16 07:05:24 2019 +0100

    Minor.

commit b66d6a91123c891978ac7cc5e28943b24b8e11d6
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Feb 6 07:38:25 2019 +0100

    CHANGES: Document recent metrics change from Nikolaus.

commit a6feefdfefd6eb8e62728f40638241bb1d8c993e
Author: Nikolaus Waxweiler <madigens@gmail.com>
Date:   Sat Feb 2 15:50:57 2019 +0000

    [truetype] Apply MVAR hasc, hdsc and hlgp metrics to current FT_Face metrics.

    Instead of setting typo or win metrics as the new FT_Face metrics
    indiscriminately, apply only typo deltas to the currently active FT_Face
    metrics. This prevents line height differences when e.g. the default
    outlines were used as the regular face and instances for everything else.

    * src/truetype/ttgxvar.c (tt_apply_mvar): Implement.

commit f72b00746c64e13625cf8371f031411fbd0d6161
Author: Nikolaus Waxweiler <madigens@gmail.com>
Date:   Sat Feb 2 15:45:31 2019 +0000

    [sfnt] Use typo metrics if OS/2 fsSelection USE_TYPO_METRICS bit is set.

    If the OS/2 table exists and fsSelection bit 7 (USE_TYPO_METRICS) is set,
    use the sTypo* set of values to compute the FT_Face's ascender, descender
    and height. Otherwise, fall back to old behavior.

    * src/sfnt/sfobjs.c (sfnt_load_face): Implement.

commit f686ad46a3a9801ffa78063202250c68276330cb
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jan 22 20:31:44 2019 +0100

    Update copyright years.

commit f61f49fef7a958830be54ffbed801c1bfd18a0be
Author: John Tytgat <John.Tytgat@esko.com>
Date:   Fri Jan 18 13:25:23 2019 +0100

    [sfnt] Handle TT fonts having two PostScript font names (#55471).

    * src/sfnt/sfdriver.c (sfnt_get_name_id): Prefer English over any
    other language found for PostScript font names.

commit 1e7a8f30c231bace001c617099e78f78743dd3b4
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Jan 8 20:54:13 2019 -0500

    [psaux, type1] Align tracing.

commit b75abeb5e6561024d182ccdc0eb36a7d2630310e
Author: Chris Liddell <chris.liddell@artifex.com>
Date:   Tue Jan 8 20:51:39 2019 -0500

    [psaux] Fix closepath (#55414).

    All of the Type 1 path building is done with code common to the
    revised CFF engine, with the exception of closepath, which was still
    calling ps_builder_close_contour(), thus previously cached segments
    were not always written to the path, and glyph corruption, or even
    invalid outlines were possible.

    * src/psauc/psinterp.c (cf2_interpT2CharString) <cf2_cmdCLOSEPATH>:
    Switch to calling `cf2_glyphpath_closeOpenPath'.

commit 2875ada19766f9559feab3c643026fac57ac2a81
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sun Dec 30 20:02:08 2018 +0530

    Minor documentation fix.

commit b89166cc4daea4562c86e009b3db203b3afe77ff
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Dec 29 08:55:01 2018 +0100

    * src/autofit/aflatin2.c: Some fixes from `aflatin.c' (#55310).

commit 0238237508a985956bc4baa4fc29fe7396c55434
Author: suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Date:   Wed Dec 26 12:02:10 2018 +0900

    * builds/mac/README: Fix a hyperlink to defunct www.gyve.org.

commit afa043de9cf2329ce697714a1e7eadba3055dead
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Dec 25 22:44:05 2018 +0100

    Fix links (mostly http -> https).

commit 5e02965905e64e543a92d8d29fba32c86b350104
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Dec 25 19:24:06 2018 +0100

    * src/psaux/cffdecode.c (cff_operaor_seac): Fix numeric overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11915

commit ec439711b1d32ea8182fa98df73166120b7b0cb0
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Dec 12 19:59:42 2018 +0100

    [gxvalid] Fix compiler warnings.

    * src/gxvalid/gxvjust.c (gxv_just_check_max_gid),
    src/gxvalid/gxvmort.c (gxv_mort_coverage_validate): Use `FT_UNUSED'.

commit e8bbef85c0027cb5ade84dbcc0bb12c1eb080e06
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Dec 12 14:05:03 2018 +0100

    Fix documentation of TrueType bytecode interpreter debug hook.

commit 2b4e61e4d61dab168cef572e40368c6d2e687f8b
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Dec 12 09:36:39 2018 +0100

    Minor documentation fixes.

commit 3e8a2283f5119376098a0ec66f876866ff5cea4d
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Dec 11 23:54:17 2018 +0100

    * src/truetype/ttgload.c (TT_Hint_Glyph): Remove useless test.

    `control_len' only gets its value from `n_ins' (and vice versa),
    which is always read as `unsigned short' and thus can't be larger
    than 0xFFFF.

commit 0c83ba6d61e686ca55c3cc763d48a38cb4d7ca67
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Dec 10 12:11:54 2018 +0100

    Minor documentation updates and fixes.

commit d01e28f41f8810c8ea422b854f8722659589fa99
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Dec 6 08:12:27 2018 -0500

    Important doc fix.

commit f1b6183f36d4a28a874bd25fd89363dc8ac32574
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Dec 4 11:51:15 2018 +0100

    [bdf] Ignore data after `ENDFONT'.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10798

    * src/bdf/bdflib.c (_bdf_parse_end): New function.
    (_bdf_parse_glyphs): Switch to `_bdf_parse_end' after `ENDFONT' has
    been encountered.

commit 456e9c8fcefa000518f114c1dffd38cfce66420f
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun Dec 2 23:40:55 2018 -0500

    * builds/windows/visualc/freetype.dsp: Dust off.

commit c1e58b4d93886ac1f985a31fac61b251f1c77fc7
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Thu Nov 29 12:57:35 2018 +0530

    * include/freetype/ftmm.h: Minor.

commit 3dd4e76b19f3cd4f706c3455d6ae01765d07eee5
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Nov 27 23:22:52 2018 -0500

    * builds/windows/vc2010/freetype.vcxproj: Simplify.

commit 78a1e69517ca067224d6e33beffd25e2ec8361d2
Author: Chris Liddell <chris.liddell@artifex.com>
Date:   Tue Nov 27 22:24:06 2018 +0100

    [type1,cff] Add FT_{Set,Get}_MM_WeightVector API calls.

    For multiple master fonts, common usage (in Postscript) is to modify
    the WeightVector of an existing font instance, this addition
    supports that use.

    * include/freetype/ftmm.h, src/base/ftmm.c (FT_Set_MM_WeightVector,
    FT_Get_MM_WeightVector): New API functions.

    * include/freetype/internalservices/svmm.h
    (FT_Set_MM_WeightVector_Func, FT_Get_MM_WeightVector_Func): New
    function types.
    (MultiMasters): Add `set_mm_weightvector' and `get_mm_weightvector'
    members.
    (FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated.

    * src/cffcffdrivr.c (cff_set_mm_weightvector,
    cff_get_mm_weightvector): New functions.
    (cff_service_multi_masters): Register them.

    * src/truetype/ttdriver.c (tt_service_gx_multi_masters): Updated.
    This driver doesn't use the new interface.

    * src/type1/t1load.c (T1_Set_MM_WeightVector,
    T1_Get_MM_WeightVector): New functions.
    * src/type1/t1driver.c (t1_service_multi_masters): Register them.
    * src/type1/t1load.h: Updated.

commit 1fc6937f7fa3bd80edbadc1e3c69d21dd9929e74
Author: Ben Wagner <bungeman@google.com>
Date:   Tue Nov 27 18:02:44 2018 +0100

    [cff] Fix compiler warning (#55105).

    * src/cff/cffparse.c (cff_parser_run): Guard label only used if
    CFF_CONFIG_OPTION_OLD_ENGINE is active.

commit 74cdd75f6fb5c6df74f12e4724ecd84edab0dddd
Author: Ben Wagner <bungeman@google.com>
Date:   Tue Nov 27 17:55:40 2018 +0100

    [truetype] Fix numeric overflow (#55103).

    * src/truetype/ttgload.c (compute_glyph_metrics): Use `SUB_LONG'.

commit 1c4004bb345080fb5356402f30af83e648d0b503
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun Nov 25 23:19:39 2018 -0500

    [builds] Belated DLL support with vc2002-vc2008.

    The solution and project files should be automatically upgraded for
    the approriate Visual C++ version.

    * builds/windows/visualc/freetype.{sln,vcproj}: Major upgrades.
    * builds/windows/visualc/index.html: Document the change.
    * builds/windows/vc2005, builds/windows/vc2008: Removed as redundant.

commit 55b35cd61168269a1064f3651d998d9c190c57ed
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Thu Nov 22 11:43:48 2018 +0000

    * src/cff/cffparse.c: Please the compiler.

commit 642bc7590c701c8cd35a9f60fa899cfa518b17ff
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Thu Nov 22 10:29:35 2018 +0000

    [cff] Fix memory overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9869
      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10869

    * src/cff/cffparse.c (destruct_t2s_item, cff_parser_run): Store
    evaluated T2 charstrings in separately allocated memory.

commit 81f43a9d36c977beadc8ece0b28ba13ba86484ba
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun Nov 18 14:47:32 2018 -0500

    * builds/windows/{visualc,vc2005,vc2008}/freetype.vcproj: Fix it.

commit 8d517e679b65a9f4b85abf995045cf76cb8b5354
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Nov 10 15:47:48 2018 -0500

    Clarification.

commit 78db9eecff412608bcfb56af281a4cd3b51b2cd4
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Nov 10 15:39:19 2018 -0500

    [smooth] Placeholder only for library-enabled LCD filtering.

    * src/smooth/ftsmooth.c (ft_smooth_init): Add disabled
    `FT_Library_SetLcdFilter' call.

commit 58e48e92877f873248b84435e0c2350dab208bfa
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Nov 9 12:14:35 2018 +0100

    [psaux] Add safety guard (#54985).

    * src/psaux/psobjs.c (cff_builder_close_contour): Do it.

commit 3b6e65f7bf674601b9419d02ce0aa633e2e882fb
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Nov 8 23:36:37 2018 -0500

    * builds/unix/configure.raw: Require `windows.h' for windres.

commit 181033d396acac847e1dbcb766a1df8e5dc9d711
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Nov 8 21:04:56 2018 -0500

    [ftstroke] Fix unpredictable failures (#54986).

    * src/base/ftstroke.c (ft_sroke_border_lineto): Fix lineto check.

commit 81c31f62cb30bb5526ffa3f19fb06b14ca593b00
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Nov 8 07:54:47 2018 -0500

    [ftstroke] Fix unpredictable failures (#54976).

    * src/base/ftstroke.c (ft_sroke_border_close): Set the start tags.

commit fb0d66d04c4dd8d7f9604af1a6001b2737cb5098
Author: Ben Wagner <bungeman@google.com>
Date:   Wed Nov 7 00:47:44 2018 +0100

    [truetype] Fix VF check from 2018-09-12 (#54973).

    * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Use correct
    offsets for estimates.

commit fbd24523461d57d38bd040d842f9fba2690545cd
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Nov 6 11:15:31 2018 +0100

    [pshinter] Fix numeric overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11242

    * src/pshinter/pshrec.c (ps_dimension_add_t1stem): Implement it.

commit 5b86f53dd60c7545dcea75684561199ac3d3e90f
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Nov 6 11:08:41 2018 +0100

    [psaux] Fix timeout in old CFF engine.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11260

    * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
    <cff_op_sqrt> [CFF_CONFIG_OPTION_OLD_ENGINE]: Fix potential endless
    loop.

commit cc288e383bbb95442f3ed72539917323bd1dabbf
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun Nov 4 22:09:16 2018 -0500

    Minor.

commit 1f43affc0907382e9620951501d47bd21b529b84
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun Nov 4 13:11:16 2018 -0500

    * src/truetype/ttgxvar.c: Use enum definitions.

commit d95a12b88ddfaa531dfe69675ac1004a4758736f
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Nov 3 23:02:58 2018 -0400

    * src/truetype/ttgxvar.c (ft_var_apply_tuple): Adjust condition.

commit 547f82f20eb52e4421675e1f41c839091f16fd95
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Nov 3 23:00:36 2018 -0400

    * src/truetype/ttgxvar.c (ft_var_apply_tuple): Tracing tweaks.

commit ce3feb0b9d71680cc6aec032ca304585958237d1
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Nov 3 22:43:21 2018 -0400

    Revert due to specs: [truetype] Speed up variation IUP.

    This reverts commit 1e4496c54c010843c1bac56e5d344115d1a49620.

commit dfa86d65e5b8f4f4c62f37160a2475b705e14c56
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Nov 3 22:36:52 2018 -0400

    Revert "[truetype] Speed up variation IUP."

    This reverts commit 1e4496c54c010843c1bac56e5d344115d1a49620.

commit 61d50756b6ddc6cce459f64445abf19f09d18253
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Nov 2 20:42:25 2018 -0400

    * src/truetype/ttgxvar.c (ft_var_get_item_delta): Fixed logic.

    Reported and tested by Behdad.

commit 339c451ad0e8a743b59fb2bd0589fe9362b45024
Author: Shailesh Mistry <shailesh.mistry@hotmail.co.uk>
Date:   Fri Nov 2 10:10:10 2018 +0100

    [autofit] Prevent SEGV.

    See

      https://bugs.ghostscript.com/show_bug.cgi?id=697545

    for more details on how the bug was found.

    * src/autofit/afloader.c (af_loader_load_glyph): Propagate error
    code.

commit 1e4496c54c010843c1bac56e5d344115d1a49620
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Oct 31 23:17:33 2018 -0400

    [truetype] Speed up variation IUP.

    * src/truetype/ttgxvar.c (tt_delta_interpolate): Separate trivial
    snapping to the same position from true interpolation.

commit ba03310b5aa6a8b752f892c32f2354aff9a73f78
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Oct 31 22:01:36 2018 -0400

    * src/type1/t1load.c (t1_set_mm_blend): Optimized.

commit 300da33d61512fe98dc6f34e68fbc330120600ba
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Oct 31 21:55:40 2018 -0400

    * src/truetype/ttgxvar.c (ft_var_get_item_delta): Optimized.

commit c13635ee4bf34e621816cd09d7f2baf918e20af8
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Oct 29 21:25:10 2018 +0100

    [base] Fix numeric overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11080

    * src/base/ftoutln.c (FT_Outline_Get_Orientation): Use `MUL_LONG'.

commit ba62f9d8f5f85c6dda93b481271de37fb1f09e77
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Oct 29 21:11:36 2018 +0100

    [cff] Fix numeric overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10988

    * src/cff/cffparse.c (cff_parser_run)
    [CFF_CONFIG_OPTION_OLD_ENGINE]: Use `NEG_LONG'.

commit acb19ed4e9c0cf1339e240069a252b9080dcb31e
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun Oct 28 14:19:33 2018 -0400

    Comment on timestamp storage.

commit 3e8ec291ffcfa03c8ecba1cdbfaa55f5577f5612
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Oct 26 23:23:48 2018 -0400

    [sfnt] Make `head' timestamps unsigned.

    It's been more than 2^31 seconds since 1904.

    * include/freetype/tttables.h (TT_Header): Change field types.
    * src/sfnt/ttload.c (tt_face_load_generic_header): Updated.

commit d71f2bc1593200a8f763841c0a083ba91f7dad01
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Oct 26 22:52:25 2018 -0400

    Revert "Align FreeType with standard C memory management."

    This reverts commit 877aa1b2cc662978aae61ed4d5c6ea8ba56b2fe7.

commit bfe53294757b03873b1432b7c1cd3e027802c634
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Oct 27 00:07:53 2018 +0200

    [psaux] Fix numeric overflow.

    Triggered by

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11157

    * src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_blend>
    [CFF_CONFIG_OPTION_OLD_ENGINE]: Fix integer overflow.

commit f56830ed406f90f6f53ee6367f2068a0f27bf90b
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Oct 20 07:27:47 2018 +0200

    Avoid endless loop while tracing (#54858).

    * src/type1/t1load.c (parse_buildchar): Guard tracing stuff with
    FT_DEBUG_LEVEL_TRACE.

commit 0c4feb72cf976f63d4bf62436bc48f190d0e0c28
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Oct 17 11:25:32 2018 +0200

    * CMakeLists.txt: Specify `RUNTIME DESTINATION'.

    This is needed for DLL builds.

commit 428854931e683b405da20d2f404073f51c5a183d
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Oct 10 12:21:10 2018 +0200

    Minor.

commit 912e174c662043672f18d52bbec09fa80a1f2d42
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Oct 7 09:28:52 2018 +0200

    A missing Unicode cmap is not a fatal error.

    This is a follow-up to the previous commit.

    * src/cff/cffobjs.c (cff_face_init), src/sfnt/sfobjs.c
    (sfnt_load_face), src/type1/t1objs.c (T1_Face_Init),
    src/type42/t42objs.c (T42_Face_Init): Implement it.

commit 885f5b0b4edb0c00a48af3eabe98507cf4f94430
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Oct 7 09:03:05 2018 +0200

    Fix handling of FT_CONFIG_OPTION_ADOBE_GLYPH_LIST (#54794).

    * src/cff/cffcmap.c (cff_cmap_unicode_init), src/psaux/t1cmap.c
    (t1_cmap_unicode_init), src/sfnt/ttcmap.c (tt_cmap_unicode_init):
    Check `unicodes_init' field.

commit 0a178144e85594e15cd83e3ae55e441c26f42985
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Oct 7 08:59:56 2018 +0200

    Whitespace.

commit f262d15d0a4732e7b6b516f2e9ce37e83fcc604c
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Oct 7 07:40:37 2018 +0200

    Minor comment improvement.

commit 9817571cc96d3afa3faf553627ec1874648a6650
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Oct 3 08:04:55 2018 +0200

    [ftgrays] Fix typo in stand-alone mode (#54771).

    * src/smooth/ftgrays.c (FT_THROW) [STANDALONE_ &&
    FT_DEBUG_LEVEL_TRACE]: Fix call to `FT_ERR_CAT'.

commit d280ae1e8c707d2478a8f4ac2059f762cf58e6d8
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Oct 2 20:45:16 2018 +0200

    [psaux] Fix segfault.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10768

    * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
    <cff_op_callothersubr> [CFF_CONFIG_OPTION_OLD_ENGINE]: Check
    argument.

commit 6b660f12151c7f333f8be6d84df916db210d3742
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Oct 2 16:48:59 2018 +0200

    [psaux] Fix numeric overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10768

    * src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_roll>
    [CFF_CONFIG_OPTION_OLD_ENGINE]: Use NEG_INT.

commit 83fc524dfc93bfabee681ea2484b93ad1f66ca15
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Oct 2 16:36:49 2018 +0200

    [pshinter] Handle numeric overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10550

    * src/pshinter/pshglob.c (psh_blues_snap_stem): Mask numeric
    overflow.

commit 877aa1b2cc662978aae61ed4d5c6ea8ba56b2fe7
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Sep 27 21:17:36 2018 -0400

    Align FreeType with standard C memory management.

    * include/freetype/ftsystem.h: Include FT_TYPES_H.
    (*FT_Alloc_Func, *FT_Realloc_Func): Use size_t for the size arguments.
    * src/raster/ftmisc.h: Ditto.

    * builds/amiga/src/base/ftsystem.c, builds/unix/ftsystem.c,
    * builds/vms/ftsystem.c, src/base/ftsystem.c (ft_alloc, ft_realloc):
    Use size_t for the size arguments.

    * src/base/ftdbgmem.c (ft_mem_debug_alloc, ft_mem_debug_realloc): Use
    FT_Offset, aka size_t, for the size arguments.

commit 4500c701c29f154eb0acd44552590d0dc315ac5f
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Sep 26 22:04:50 2018 -0400

    Typo.

commit efe7f6489858bbe84933c76f7b0bdefd37cdd0e2
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Sep 25 09:16:45 2018 +0200

    Typo.

commit a9af69148173f64e39ed6b1be1944a014ffb0d6c
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Sep 25 09:10:09 2018 +0200

    Fix handing of `FT_Bool'.

    Before this commit we had code like

      (FT_Bool)( globals->glyph_styles[gindex] & 0x8000)

    Since `FT_Bool' is defined to be an `unsigned char', the code
    evaluated to something like

      (unsigned char)( 0x8532 & 0x8000)

    which in turn expanded to

      (unsigned char)( 0x8000)

    and finally yielded 0x00 – i.e., false – not as expected.

    Problem reported and analyzed by Tony Smith <tony.smith@macro4.com>.

    * include/freetype/fttypes.h (FT_BOOL): Add a comparison against
    zero so that we always have a Boolean expression.

    */*: Replace castings to `FT_Bool' with calls to `FT_BOOL' where
    possible.

commit 0f122fef346af27ce469fa3e521bbde747fb741c
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun Sep 23 21:46:26 2018 -0400

    [bdf] Speed up charmap access.

    This makes FT_Get_Char_Index and FT_Get_Next_Char 4-5 times faster.

    * src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Help binary search
    with continuous prediction.

commit 793a9ff9f5de353e4e3f7cf0a99b3b1f9b617039
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Sep 22 14:38:00 2018 -0400

    * src/base/ftobjs.c (ft_glyphslot_reset_bimap): Another tweak.

    This one should be clearer. When the rounded monochrome bbox collapses
    we add a pixel that covers most if not all original cbox.

commit f26d57753fe1a6ab61796fbd816fefd6c103720b
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Sep 21 20:34:58 2018 -0400

    * src/base/ftobjs.c (ft_glyphslot_reset_bimap): Further tweak.

commit abd997aa7cf2bc9219136782c7363d14d325199c
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Sep 21 12:50:32 2018 +0200

    Improve documentation of `FT_LOAD_NO_RECURSE'.

commit 335528e11e690fb38042d7edcda209d500c05d3c
Author: Ben Wagner <bungeman@google.com>
Date:   Fri Sep 21 11:26:37 2018 +0200

    Improve auto-hinter handling of bitmap fonts (#54681).

    For bitmap fonts, `FT_Load_Glyph' should either return an error or
    not set the format to `FT_GLYPH_FORMAT_OUTLINE'.  However, in this
    case `FT_Load_Glyph' calls into the auto-hinter which calls back
    into `FT_Load_Glyph' with `FT_LOAD_NO_SCALE' in the flags, which
    marks the glyph as `FT_GLYPH_FORMAT_OUTLINE' with an empty path
    (even though it doesn't have any path).  It appears that the
    auto-hinter should not be called when the face doesn't have
    outlines.  The current test for using the auto-hinter in
    `FT_Load_Glyph' checks if the driver supports scalable outlines, but
    not if the face supports scalable outlines.

    * src/base/ftobjs.c (FT_Load_Glyph): Directly check whether we have
    scalable outlines.

commit c168cc3b1bf13e5f3ca77c238dcb204ea821c56d
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Sep 21 11:09:27 2018 +0200

    [raster] Fix disappearing vertical lines (#54589).

    * src/raster/ftraster.c (Vertical_Sweep_Span): Handle special case
    where both left and right outline exactly pass pixel centers.

commit 493aa68f5c4cb2e659570809931539dc1987630c
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Sep 21 08:32:22 2018 +0200

    [base] Some comments.

commit 2a9850c4fc2fd75021359346c9ffc7478f12d449
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Sep 20 22:40:32 2018 -0400

    * src/base/ftobjs.c (ft_glyphslot_reset_bimap): Tiny rounding tweak.

    This adds pixels in case a contour goes through the center
    and they need to be turned on in the b/w rasterizer.

commit c1b21f47b407bf5ef6ad9b346203bbd907c9f2b9
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Sep 20 22:14:46 2018 -0400

    [pcf] Replace charmap implementation.

    PCF comes with charmap lookup table, aka PCF encodings.  Using it
    directly makes FT_Get_Char_Index and FT_Get_Next_Char 4-5 times
    faster than the original BDF-like binary searches.

    * src/pcf/pcf.h (PCF_EncodingRec): Removed.
    (PCF_FaceRec): Remove `nencodings' and `encodings'.
    * src/pcf/pcfdrivr.c (pcf_cmap_char_{index,next}): Replaced.
    * src/pcf/pcfread.c (pcf_get_encodings): Store data differently.

commit 8e950680538b11cf3c4eb630f0b8e7bd400b6dcd
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Sep 20 06:26:34 2018 +0200

    [base] Remove unused function `FT_GlyphLoader_CopyPoints'.

    * include/freetype/internal/ftgloadr.h, src/base/ftgloadr.c
    (FT_GlyphLoader_CopyPoints): Do it.

commit 7f93c977e7ce2c1c8f3ac39fc5e622440a7b3a35
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Sep 19 22:45:45 2018 -0400

    [pcf] Prepare to replace charmap implementation.

    * src/pcf/pcf.h (PCF_Face): Updated to include...
    (PCF_EncRec): ... this new structure to store charmap geometry.

    * src/pcf/pcfread.c (pcf_get_encodings): Store charmap geometry.

commit d629c2ba2430fde8d3ff9b4a0172f917b6e5cbcd
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Sep 18 17:11:48 2018 -0400

    Remove unused fields.

    * src/pcf.h (PCF_FaceRec): Remove `charmap' and `charmap_handle'.
    * src/bdfdrvr.h (BDF_FaceRec): Ditto.
    * src/winfonts/winfnt.h (FNT_FaceRec): Ditto.

commit dfddc2d97596489134d21ed6224462331cb1cd73
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Sep 17 08:03:57 2018 +0200

    [pshinter] Handle numeric overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10396

    * src/pshinter/pshglob.c: Include FT_INTERNAL_CALC_H.
    (psh_blues_snap_stems): Mask numeric overflow.

commit b8dd404d1342d435d207fb2377a7dc6e281f3b22
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Sep 16 07:22:23 2018 +0200

    freetype.h: Add warning w.r.t. B/W hinting and rendering (#54589).

commit de0aabcd0d73936ce751a71b215da1d5efa4db5d
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Sep 15 06:14:18 2018 +0200

    [sfnt] Comment fix.

commit 10e54d04b975cf8a879b18ed0383bb4be8b1a7d5
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Sep 13 21:47:35 2018 +0200

    [truetype] Some fixes for VF checks.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10317

    * src/truetype/ttgxvar.c (ft_var_load_gvar): Properly exit memory
    frame if we have invalid glyph variation data offsets.
    (tt_face_vary_cvt): Protect against missing `tuplecoords' array.
    Fix typo.

commit 7665914ccd2edf011cfe2834f8a058e4e68d3361
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Sep 13 08:58:49 2018 +0200

    * src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Fix last commit.

commit a5818ed1e137b99e03eec2fb63f8a55dca0e624e
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Sep 13 08:46:44 2018 +0200

    * src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Check `result'.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10316

commit 6b53300b01742cb68c116539d01f9aa967e26746
Author: John Tytgat <John.Tytgat@esko.com>
Date:   Wed Sep 12 08:08:09 2018 +0200

    [sfnt] Better PS name handling (#54629).

    * src/sfnt/sfdriver (IS_WIN, IS_APPLE): Omit language ID checks.
    (get_win_string, get_apple_string): Return NULL when the PostScript
    font name characters is not according to specification.
    (get_win_string): Make trace output work if the high byte if
    non-zero.
    (sfnt_get_var_ps_name, sfnt_get_ps_name): Previously we preferred
    Win PS name (when there is also an Apple PS name); change this into
    a fallback to Apple PS name in case the Win PS name is invalid.

commit 65681e6dc1937db57d5905c5dd89e0a306bc0634
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Sep 12 07:40:49 2018 +0200

    [truetype] Improve VF check.

    Triggered by

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10255

    * src/truetype/ttgxvar.c (ft_var_load_gvar): Use better limit check
    for `tupleCount'.

commit 53c5e4bd87ff8035d91022204bb5f3a051e78a99
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Sep 12 07:27:30 2018 +0200

    * src/truetype/ttgxvar.c (ft_var_load_gvar): Check `glyphoffsets'.

commit 7b855ed9cf8c48841e72369ea3ebcbf8486e5e06
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Mon Sep 10 23:41:04 2018 +0100

    * src/pshinter/pshrec.c (t2_hints_stems): Mask numeric overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10215

commit fea435fbf855e9ac2cd3ced80175d64f1bace22c
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Sep 9 09:46:29 2018 +0200

    [sfnt] Comment improvement.

commit 0805c4a488bf35603d19b6951ce255efeb48b457
Author: Ben Wagner <bungeman@google.com>
Date:   Sun Sep 9 09:25:58 2018 +0200

    * builds/freetype.mk (refdoc-venv): Ensure python version (#54631).

commit 7bf202825062cc39291d32423471cc70869cc7f5
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Sep 7 06:43:19 2018 +0200

    Typo.

commit 1c04eed76feffee0730d80c993e6dd602c335929
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Sep 7 06:40:55 2018 +0200

    [truetype] Fix assertion failure.

    Triggered by

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10212

    * src/truetype/ttgload.c (load_truetype_glyph): Reintroduce
    `opened_frame' (removed in a change from 2018-08-26) to handle
    dealloation of the second frame.

commit f8af8fba78ac7180674ac05493b8afed7e055cf9
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Sep 5 12:16:56 2018 +0200

    Synchronize `ftdebug.c' files.

    * builds/amiga/src/base/ftdebug.c, builds/wince/ftdebug.c,
    builds/windows/ftdebug.c: Synchronize with `src/base/ftdebug.c'.

commit 97c7944f9ec2f1f992d0fbad45995da95f4e260a
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Sep 5 11:45:05 2018 +0200

    Synchronize `ftconfig' files.

commit a748ae463503d679ab88a80401d769c402a66b7a
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Wed Sep 5 11:12:01 2018 +0530

    * docs/DOCGUIDE: Minor.

commit 77aa02660e87e77b788dd26a48e87aa9c2b79585
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Wed Sep 5 11:07:20 2018 +0530

    Add documentation guidelines file.

    * docs/DOCGUIDE: New file.

commit 48f93e648ede94232645aadc9274572e86639cd5
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Sep 4 21:19:26 2018 +0200

    * devel/ftoption.h: Synchronize with master `ftoption.h'.

commit c485bece6b6e90859a8efc50e32b6dc17b40ee0c
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Sep 4 21:05:06 2018 +0200

    Typo (#54618).

commit 9789c75b1a6faf01cbcc34d85bf1bb3f473743b1
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Sep 4 10:37:44 2018 +0200

    More '...' vs. `...` fixes in API documentation.

commit 01a5d326bb320b1e1c832d6954df583ae8c0ebd2
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Sep 4 08:00:58 2018 +0200

    Make `/****...' comments in public headers uniformly end on column 77.

commit 6a4229c4b0b5ce9f0e6ad420e7a504c6ad99acf4
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Mon Sep 3 22:43:39 2018 -0400

    * docs/DEBUG: s/trace_//.

commit 7da5589c75457e86ca5144c297834a0c2dff6721
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Mon Sep 3 16:45:28 2018 +0530

    [docwriter] Don't break code snippets accross lines.

    Reported as

      http://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00124.html

    * docs/reference/markdown/stylesheets/extra.css (.md-typeset code):
    Add rule `white-space'.

commit 1061748256bc35657709284ee65fd1ca8d28db71
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Sep 3 10:37:57 2018 +0200

    include/freettype/config:*.*: Convert comments to Markdown syntax.

    Also some minor documentation fixes.

commit 76a52465c1dbcac14b89983eba5a0ac252f59d8d
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Sep 3 09:08:47 2018 +0200

    */*: s/PSNames/psnames/.

    Only tracing messages are affected.

commit 475f6d25cb299acc0634ec3a6112cefc469423a9
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Sep 3 09:00:58 2018 +0200

    [sfnt] Fix heap buffer overflow in CPAL handling.

    * src/sfnt/ttcpal.c (tt_face_palette_set): Fix boundary test.
    (tt_face_load_cpal): Updated.

commit 9be656bb0c0baa8df8c9fa30100e1cbe865346db
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Sep 1 11:01:52 2018 +0200

    Remove `FT_Outline_{New,Done}_Internal'.

    These public API functions(!) were always undocumented and have
    escaped all clean-up efforts until now.

    * include/freetype/ftoutln.h (FT_Outline_New_Internal,
    FT_Outline_Done_Internal): Removed.

    * src/base/ftoutln.h (FT_Outline_New_Internal,
    FT_Outline_Done_Internal): Merge into...
    (FT_Outline_New, FT_Outline_Done): ... these functions.

    * docs/README: Updated.

commit 809d5125af527dd589d303cd8ae988dad58d00d6
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Aug 31 22:49:19 2018 -0400

    * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Check glyph format.

commit 4b49a8079f23a0c6c8c8d9b92454780a19035947
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Fri Aug 31 20:26:46 2018 +0100

    [errors] Refine the macro logic surrounding `FT_Error_String'.

    * include/freetype/fterrors.h (FT_INCLUDE_ERR_PROTOS,
    FT_ERR_PROTOS_DEFINED): Undefine `FT_INCLUDE_ERR_PROTOS' after
    checking it and introduce a new macro that takes proper care of
    multiple-inclusion protection.

commit c6df41e319b9f841223365d443819805851f78ce
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Aug 31 20:10:38 2018 +0200

    Whitespace.

commit 9a323e4762917253d070f06dff380e194b2da5c3
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Aug 31 20:09:21 2018 +0200

    * src/base/ftdebug.c (FT_Throw): Restore missing `FT_UNUSED' calls.

commit aff04e91f630993c8cb0dd2eb758fa0d3632afd1
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Aug 31 14:57:36 2018 +0200

    * src/base/ftdebug.c (FT_Throw): Reduce chattiness.

commit 83525bdd10c4b00500d8d9b5bbf5ad0419c99d21
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Aug 31 07:37:15 2018 +0200

    Minor comments.

commit d91f752b773d22679939414a014fd2934c18c5b0
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Aug 31 07:34:30 2018 +0200

    Whitespace.

commit 423fce2e3ed63ee48d2142a92e588a57633ae32b
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Aug 31 06:59:44 2018 +0200

    Add link to OpenType's composite glyph description.

commit 0d4ca1386575737ff26dbd0c36844572b75d69ad
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Aug 31 06:53:52 2018 +0200

    * src/autofit/afhints.c (af_glyph_hints_reload): Add initialization.

commit 1dacbd893d3c2f027b5c79f504d8899a68112c0c
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Aug 30 23:28:30 2018 -0400

    Consolidate bitmap presetting and size assessment.

    * include/freetype/internal/ftobjs.h (ft_glyphslot_preset_bitmap):
    Change return type.
    * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Return the bitmap
    size assessment.

    * src/raster/ftrend1.c (ft_raster1_render): Use it to refuse the
    rendering of enourmous or far-fetched outlines.
    * src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.

commit ca980b4cf11405469a5b5919dc40e73c4961c7c7
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Aug 30 21:51:18 2018 -0400

    * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Correct mono.

commit 35efb103fee44fcacb657e1dc5896e32ac99d295
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Thu Aug 30 14:30:46 2018 +0200

    [errors] Introduce a macro to control `FT_Error_String'.

    * devel/ftoption.h (FT_CONFIG_OPTION_ERROR_STRINGS),
    include/freetype/config/ftoption.h (FT_CONFIG_OPTION_ERROR_STRINGS):
    New macro.

commit d20dc3928b9d3ee075106b7684dab6111d6a5899
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Thu Aug 30 14:09:04 2018 +0200

    [errors] Introduce `FT_Error_String'.

    * include/freetype/fterrors.h (FT_Error_String),
    src/base/fterrors.c (FT_Error_String): Implement `FT_Error_String'.

    * src/base/ftbase.c, src/base/Jamfile (_source),
    src/base/rules.mk (BASE_SRC): Add `fterrors.c' to the build logic.

    * src/base/ftdebug.c (FT_Throw): Use `FT_Error_String'.

commit c0ccf7501255cad67e3a117cedb152b17d011255
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Aug 30 09:56:09 2018 +0200

    [autofit] Trace `before' and `after' edges of strong points.

    * src/autofit/afhints.h (AF_PointRec) [FT_DEBUG_AUTOFIT]: New arrays
    `before' and `after'.

    * src/autofit/afhints.c (af_get_strong_edge_index): New auxiliary
    function.
    (af_glyph_hints_dump_points): Trace `before' and `after' edges.
    (af_glyph_hints_align_strong_points) [FT_DEBUG_AUTOFIT]: Set
    `before' and `after' information.

commit 21c2b3905cb3473da3dd729190f2fb2b66ce1140
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Aug 30 09:52:08 2018 +0200

    Minor.

commit 5d93a3fc8d0243cf9722501c7be62b6acbbd775d
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Aug 30 01:12:22 2018 -0400

    [base] Overflow-resistant bitmap presetting.

    * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Implement it.

commit 19be8620ec33cdf2c451139f024301f65b147899
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Aug 29 18:15:03 2018 +0200

    Doc fix.

commit 934a6159ba940fe15f02a84deeccdb789823242e
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Wed Aug 29 15:28:21 2018 +0200

    Fix numeric overflows.

    * src/pshint/pshalgo.c (psh_hint_align, psh_hint_align_light,
    psh_hint_table_find_strong_points): Fix numeric overflows.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10083

commit 14dff08f3760b9bbbb1301ea37ab88d3eb35ad61
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Aug 29 06:56:21 2018 +0200

    ftoption.h: s/precendence/precedence/ in documentation (#54586).

commit 3915a18b8c0f4e2090bf9496a49c38986ab18d70
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Aug 29 06:53:54 2018 +0200

    [cff] Fix handling of `roll' op in old engine.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10080

    * src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_roll>
    [CFF_CONFIG_OPTION_OLD_ENGINE]: Use modulo for loop count, as
    documented in the specification.

commit 2c8e6279a7bfc314f3934bc8d126ecb1e5e284f1
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Aug 28 08:02:13 2018 +0200

    Minor doc fix.

commit ae3afbc47184db5c7753318b36237af261c66b09
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Aug 26 15:40:16 2018 +0200

    * src/truetype/ttobjs.c (tt_size_read_bytecode): Trace CVT values.

commit 20957721447c2c96134e7488c6c1522490b92a9c
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Aug 26 15:15:56 2018 +0200

    ChangeLog*: s/\t/ /.

commit f87b711746ff1ab4f831c22d471a1fa9f63c76e1
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sun Aug 26 17:46:25 2018 +0530

    * configure: Copy assets required by docwriter.

    Copy directory `docs/reference/markdown' when FreeType is compiled in a
    different directory.

    Fixes `make refdoc' if builddir != srcdir.

    Reported as

      http://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00083.html

commit 13034e54aac631f5ca8b2dd27a64e5ac5c5f6fbc
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Aug 26 12:22:51 2018 +0200

    * src/pshint/pshalgo.c (psh_hint_overlap): Fix numeric overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10057

commit 4738dcc4df02b14dedfe4c85b2f916d4061dd1bf
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Aug 26 12:03:33 2018 +0200

    Minor tracing adjustments.

    * src/base/ftstream.c (FT_Stream_EnterFrame, FT_Stream_ExitFrame):
    Trace.

    * src/truetype/ttgload.c (TT_Access_Glyph_Frame): Remove tracing.

commit 6e339b8d8e5641f0f2d5240f992336393a983107
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Aug 26 11:59:02 2018 +0200

    [truetype] Avoid nested frames.

    Triggered by

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10054

    * src/truetype/ttgload.c (load_truetype_glyph): Don't use variable
    `opened_frame' to trace whether a frame must be closed at the end of
    function: This fails because `TT_Vary_Apply_Glyph_Deltas' (which
    gets called for space glyphs) uses a frame by itself.  Instead,
    close the frame after loading the header, then use another frame for
    the remaining part of the glyph later on.

    Also avoid calling `tt_get_metrics' twice under some circumstances.

commit b287c80b6a7d669a3c31aed7aeb6f8900e75a068
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Aug 26 06:39:43 2018 +0200

    Various minor clean-ups.

    * src/base/ftapi.c: Remove.  Unused.
    * src/base/Jamfile (_sources): Updated.

    * src/base/ftstream.c (FT_Stream_ReleaseFrame): Remove redundant
    code.

commit c98aa9b78ace3caa6eeeee9603e4c74c3885ffd4
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Aug 25 17:02:20 2018 +0200

    Add missing ChangeLog entry for the last four commits.

commit c962db28ea59225f0105c03d907d4a9b71765687
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sat Aug 25 12:22:23 2018 +0530

    * builds/*/*: Prepare build system for docwriter.

    Add checks, rules and variables to the build system for docwriter.

    * Running `make' will warn if Python/PIP/docwriter are not available.

    * Running `make refdoc' will generate static documentation site on the
    current Python environment.

    * Running `make refdoc-venv' will generate static documentation site
    using a virtual environment, using the pip package `virtualenv'.

commit 195728d5ba38f34fb2c2c20807c01656f2f59b66
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sat Aug 25 12:17:30 2018 +0530

    * src/tools/docmaker: Remove `docmaker'.

    `Docmaker' has now upgraded to `docwriter', a pip package available at

      https://pypi.org/project/docwriter/

commit 53c69ce04faed3dcc68ca0f54cb8d703d8babf69
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sat Aug 25 12:06:32 2018 +0530

    * docs/reference: Add resources for `docwriter'.

    Add the required resources (images, JS, CSS) for `docwriter'.

    * docs/reference/.gitignore: Update to ignore `site' folder and other
    files generated by docwriter.

    * docs/reference/README: Add docwriter usage information and
    troubleshooting tips.

    * docs/reference/markdown: New directory to hold generated markdown
    files and other resources.

commit ae5d1a4cec37557f31aec270332cfe886a62f9a0
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Fri Aug 24 22:22:30 2018 +0530

    * include/*.*: Convert comments to markdown.

    This commit was created by applying scripts `markify.py' and
    `markdown-format.bash' to all C header files, followed by minor
    clean-up.

    No change in functionality, of course.

    Scripts used:
    https://github.com/nikramakrishnan/freetype-docs.git: Commit dfce31e.

    http://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00013.html:
    With patches applied.

commit 77f0814a3162a945d6d6704f545827f883e451e5
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Aug 23 17:53:54 2018 +0200

    Add macros for handling	over-/underflowing `FT_Int64' values.

    * include/freetype/internal/ftcalc.h (ADD_INT64, SUB_INT64,
    MUL_INT64, DIV_INT64) [FT_LONG64]: New macros.

    * src/base/ftcalc.c (ft_corner_orientation) [FT_LONG64]: Use
    `SUB_INT64' and `MUL_INT64'.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10028

commit c90cc6443b2dc597aac64ae4a4bc45b1d5ca45d2
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Aug 23 13:13:20 2018 +0200

    ftbitmap.h: Improve documentation.

commit 45524679c6798b3d8b75ab03d54a53bf46912871
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Aug 22 10:31:05 2018 +0200

    [truetype] Improve legibility of `glyf' parsing.

    * src/truetype/ttgload.c (ON_CURVE_POINT, X_SHORT_VECTOR,
    Y_SHORT_VECTOR, REPEAT_FLAG, X_POSITIVE, SAME_X, Y_POSITIVE, SAME_Y,
    OVERLAP_SIMPLE): New macros.
    (TT_Load_Simple_Glyph): Use new macros to make code more readable.
    Remove useless adjustment of `outline->tags' elements.

commit a3e842f9c69a3ce3bcde0ab7b0cfbeead10ed80f
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Aug 22 09:55:38 2018 +0200

    Minor formatting and documentation fixes.

commit 0a33b44e6eb31b7c5bfed32cf723a0eee1e4e169
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Aug 21 10:52:14 2018 +0200

    * src/sfnt/ttcpal.c (tt_face_load_cpal): Add missing safety check.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9981

commit 4873eb1d316f7a6b0df97ccd3b3bd4b563fcd1de
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Aug 19 07:27:21 2018 +0200

    Update `CHANGES' file.

commit 4dc0d48f7bf939f893bc203239600fc56c63e39c
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Aug 18 14:39:20 2018 +0200

    [psaux] Avoid slow PS font parsing in case of error.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9955

    * src/psaux/psobjs.c (ps_parser_to_bytes): Set `parser->cursor' even
    in case of error to avoid potential re-scanning.

commit 2550fc75a56f18aff2a6543a1ad07724b5f97767
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Aug 18 13:38:48 2018 +0200

    [cff] Fix heap buffer overflow in old engine.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9967

    * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
    <cff_op_blend> [CFF_CONFIG_OPTION_OLD_ENGINE]: `num_designs' must be
    non-zero.

commit c94162a2200c16e9614289cf91d6bf0e0b01a01f
Author: Young Xiao <yangx92@hotmail.com>
Date:   Thu Aug 16 08:25:47 2018 -0400

    * builds/mac/ftmac.c (parse_fond): Fix buffer overrun.

    Reported as bug #54515, duplicate of #43540.

commit 33cd1eedcf4de94eee1dae5753b974f893506a9f
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Aug 16 05:55:18 2018 +0200

    * builds/*/ftsystem.c (FT_COMPONENT): Updated also.

commit efa2a3babffc247891279a5b200f72fc53109e89
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Aug 15 23:49:07 2018 -0400

    Revert BDF copyright years.

commit af9662e60b75b93d6dbc3c7a982e2017c9d0eee1
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Aug 15 22:58:11 2018 -0400

    Ouch. BDF copyright year.

commit 923fcbcdd8393dbf12b0f2b3616e71fc106bc6da
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Aug 15 22:50:06 2018 -0400

    [bdf] Don't track duplicate encodings.

    There is no harm except some umbiguity in broken fonts with duplicate
    encodings.

    * src/bdf/bdflib.c (_bdf_parse_glyphs): Remove duplicate tracking.
    (_bdf_parse_t): Remove large `have' bitfield.

commit a0dd16fb3d76e36c8ebc3edf043ddbc0d3a51b5d
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Aug 15 18:13:17 2018 +0200

    Don't use `trace_' prefix for FT_COMPONENT arguments.

    * include/freetype/internal/ftdebug.h (FT_TRACE_COMP,
    FT_TRACE_COMP_): New auxiliary macros to add `trace_' prefix.
    (FT_TRACE): Use `FT_TRACE_COMP'.

    */* (FT_COMPONENT): Updated.

commit 1d7b034cd87a423ed002803df5aed46ca7e8f362
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Aug 14 15:48:17 2018 +0200

    Use formatting string in FT_TRACEX calls for non-simple arguments.

    * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
    <cff_op_hstem, cff_op_hintmask, cff_op_hlineto, cff_op_vhcurveto>:
    Do it.

    * src/psaux/pshints.c (cf2_hintmap_build): Ditto.

    * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdHSTEM,
    cf2_cmdVSTEM, cf2_cmdHLINETO, cf2_cmdRRCURVETO, cf2_cmdCALLSUBR,
    cf2_escHSTEM3, cf2_cmdHINTMASK, cf2_cmdHVCURVETO>: Ditto.

    * src/truetype/ttinterp.c (TT_RunIns): Ditto.

commit e001a17d734e5af20919c81dfa335bb8991359c6
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Aug 14 07:10:57 2018 -0400

    [bdf] Remove unused fields.

    * src/bdf/bdf.h (bdf_font_t): Remove `nmod', `umod', and `modified',
    which were set but never used.
    * src/bdf/bdflib.c (_bdf_parse_{glyphs,properties}, bdf_load_font):
    Updated accordingly.

commit 44db1addd80981b1a9cbea6b8608c99592a065ea
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Aug 14 10:01:00 2018 +0200

    [cff] Fix another segv in old engine.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9872

    * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
    [CFF_CONFIG_OPTION_OLD_ENGINE]: Disallow invalid T1 opcodes in
    dictionaries.

commit 1937b557341187eda5434a8a64da9880472c4cd4
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Aug 14 07:54:25 2018 +0200

    [cff] Fix missing error handling.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9865

    * src/psaux/cffparse.c (cff_parser_run)
    [CFF_CONFIG_OPTION_OLD_ENGINE]: Don't ignore return value of
    `parse_charstrings_old'.

commit ac2ea865f3e019321f77f5c6b286ba1ddc6f6159
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Mon Aug 13 21:33:24 2018 -0400

    [bdf] Remove unused overflow storage.

    * src/bdf/bdf.h (bdf_glyphlist_t): Remove this type.
    (bdf_font_t): Remove `overflow' field.
    * src/bdf/bdflib.c (bdf_free_font): Remove `overflow' freeing.

commit 757bdf1aef3d93a27968857ac5b4435a52fa24a0
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Aug 14 02:02:26 2018 +0200

    [cff] Fix segv.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9864

    * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
    <cff_op_random> [CFF_CONFIG_OPTION_OLD_ENGINE]: Use top dict's
    `random' field directly if parsing dictionaries.

commit f5fe6e2f17d2326c637d8ccd18af219709d15bcd
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Mon Aug 13 09:01:53 2018 -0400

    [bdf] Use unsigned types.

    * src/bdf/bdf.h (bdf_glyph_t): Unsign `encoding'.
    (bdf_font_t): Unsign `default_char'.
    * src/bdf/bdfdrivr.h (BDF_encoding_el): Unsign `enc'.

    * src/bdf/bdflib.c (_bdf_add_property, _bdf_parse_glyphs,
    _bdf_parse_start): Updated accordingly.
    * src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Ditto.

commit 50486df1e6a9a66d5df287efea94b8c1c14a1084
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Aug 13 08:46:53 2018 +0200

    * src/type42/t42parse.c (t42_parse_sfnts): One more format check.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9832

commit 37c7b81794fc0499f02f8a434a66d350616f308b
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Sun Aug 12 01:42:00 2018 +0200

    Remove deprecated constant in documentation.

    * include/freetype/ftdriver.h: Suggest using `FT_HINTING_ADOBE' since
    `FT_CFF_HINTING_ADOBE' is deprecated.

commit 5b904409fc3ee6de45b60df722f95c6499951c2f
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Aug 11 06:41:35 2018 +0200

    * src/base/ftcalc.c (FT_Matrix_Check): Fix integer overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9811

commit 88c0e12109f4059b8ce45797c71b50218c141462
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri Aug 10 21:24:40 2018 -0400

    * src/sfnt/ttsbit.c (tt_sbit_decoder_load_compound): Follow specs.

commit 96b5e500909cfce39ff78feabefd8063a229b951
Author: Ben Wagner <bungeman@google.com>
Date:   Fri Aug 10 22:24:26 2018 +0200

    * src/sfnt/sfobjs.c (sfnt_done_face): Fix memory leak (#54435).

commit 1a21ca7b9115178484ce0ed2f6816f3490d5d1b4
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Fri Aug 10 19:31:55 2018 +0530

    Minor formatting.

commit 1aa73fa83d7649da6344280bf569e364acaef433
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Aug 10 05:41:32 2018 +0200

    * src/base/ftobjs.c (FT_Render_Glyph_Internal): Improve tracing.

commit c8ef0fd07cdaef66c8581a7269b31248e26fe3d2
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Aug 10 04:44:22 2018 +0200

    Fix clang warnings.

    * src/base/ftdebug.c (ft_trace_level_enabled,
    ft_trace_level_disabled): Add `static' keyword.

commit e16bfbec4c63bff4e5218f180d822cadfd2c7f8c
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Aug 9 22:18:00 2018 -0400

    [raster, smooth] Reinstate bitmap size limits.

    This again moves outline and bitmap size checks one level up.

    * src/base/ftoutln.c (FT_Outline_Render): Explicitly reject enormous
    outlines.
    * src/raster/ftrend1.c (ft_raster1_render): Reject enormous bitmaps
    and, therefore, outlines that require them.
    * src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.

    * src/raster/ftraster.c (ft_black_render): Remove outline size checks.
    * src/smooth/ftgrays.c (gray_raster_render): Ditto.
    [STANDALONE]: Remove `FT_Outline_Get_CBox' copy.

commit 6a97c95800e8a76e9595791042d74dd3fbf02f50
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Aug 8 22:17:35 2018 -0400

    [pcf] Revert massive unsigning.

commit f60c98feaf53de0ba9ea9acf4896476662d994bd
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Aug 8 18:15:53 2018 +0200

    [smooth] Improve tracing.

    * src/smooth/ftgrays.c (gray_convert_glyph_inner): Only use tracing
    if called the first time.
    (gray_convert_glyph): Updated.

commit c9bbc2419ae7d3cf73a597afbf02cb335ede952f
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Aug 8 18:12:31 2018 +0200

    Add internal functions `FT_Trace_Disable' and `FT_Trace_Enable'.

    It sometimes makes sense to suppress tracing informations, for
    example, if it outputs identical messages again and again.

    * include/freetype/internal/ftdebug.h: Make `ft_trace_levels' a
    pointer.
    (FT_Trace_Disable, FT_Trace_Enable): New declarations.

    * src/base/ftdebug.c (ft_trace_levels): Rename to...
    (ft_trace_levels_enabled): ... this.
    (ft_trace_levels_disabled): New array.
    (ft_trace_levels): New pointer.
    (FT_Trace_Disable, FT_Trace_Enable): Implement.
    (ft_debug_init): Updated.

commit 2e3dec55093d7853bf741e24a3d5d4c6c4d68ced
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Aug 8 13:51:18 2018 +0200

    Debugging improvements.

    * src/base/ftobjs.c (pixel_modes): Move this array to top level
    from ...
    (FT_Load_Glyph): ... here.
    (FT_Render_Glyph_Internal): Use `width' x `height' in trace message.
    Use `pixel_modes'.

commit c633378a5e76064de06ffafc847adebcf49837fb
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Aug 8 01:21:54 2018 -0400

    [pcf] Massive unsigning (part 2).

    Treat all size related properties as unsigned values.

    * src/pcf/pcf.h (PCF_ParsePropertyRec): Use unsigned `name' and
    `value'.
    * src/pcf/pcfread.c (pcf_get_propeerties, pcf_load_font): Updated
    parsing code and handling of AVERAGE_WIDTH, POINT_SIZE, PIXEL_SIZE,
    RESOLUTION_X and RESOLUTION_Y.

commit 3d4ab6bac14c28dcbce00dd57bb30b0bbc4937db
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed Aug 8 00:09:16 2018 -0400

    [pcf] Massive unsigning (part 1).

    Unofficial specifications hesitate to use unsigned 32-bit integers.
    Negative values caused a lot of trouble in the past and it is safer
    and easier to treat some properties as unsigned.

    * src/pcf/pcf.h (PCF_AccelRec): Use unsigned values for `fontAscent',
    `fontDescent', and `maxOverlap'.
    * src/pcf/pcfread.c (pcf_load_font, pcf_get_accel): Updated.
    * src/pcf/pcfdrivr.c (PCF_Glyph_Load, PCF_Size_Select,
    PCF_Size_Request): Updated.

commit 705bac50d3ade49188e05018ede2072e4d1e1788
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Aug 7 22:49:55 2018 -0400

    * src/pcf/pcfread.c (pcf_get_bitmaps): Unsign `offsets' and `bitmapSizes'.

commit 7ec9598f47e5e8f6e05c38508d1e59e2bb9395ee
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Aug 6 17:35:14 2018 +0200

    More comment formattings.

    This helps in the forthcoming transition to markdown syntax.

commit b09e77359121b911926af91b5f8a8a93ce4d9438
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Aug 6 11:02:51 2018 +0200

    * devel/ftoption.h: Synchronize with main `ftoption.h'.

commit f24dbb28118170bc9d7f71e73eedc00d3bc855bf
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Mon Aug 6 04:58:18 2018 -0400

    [pcf] Use unsigned types.

    * src/pcf/pcf.h (PCF_Encoding): Use unsigned `enc'.
    * src/pcf/pcfdrivr.c (pcf_cmap_char_{index,next}): Ditto.
    * src/pcf/pcfread.c (pcf_get_encodings): Use unsigned types.

commit 86e7385342b11ac6a2a179a80585d629e97f2a1f
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Aug 6 10:24:08 2018 +0200

    Minor comment formatting.

commit 720ae67f35701819f6bf3fd9337dc89079a4ed27
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Aug 5 07:21:10 2018 +0200

    * src/truetype/ttgload.c (compute_glyph_metrics): Fix overflow.

    Reported as

      https://bugs.chromium.org/p/chromium/issues/detail?id=777151

commit ced9c311f6915cb4d0aa248c1d70d32f44484e33
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Aug 4 07:03:57 2018 +0200

    Ditto.

commit be81acc4bf12b60476c024e98487b2d42c0d719e
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Aug 4 07:01:04 2018 +0200

    * src/truetype/ttinterp.c (opcode_name): Fix typos.

commit 799d27b0b68008d427df1a55e761e3f5b42bd3f6
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Aug 4 06:39:11 2018 +0200

    Fix clang warnings.

    * src/base/ftoutln.c (FT_Outline_EmboldenXY): Fix type of
    `orientation'.

    * src/gxvalid/gxvcommn.c (gx_lookup_value_read): Fix signature.

    * src/pcf/pcfread.c (pcf_get_encodings): Fix type of some variables.
    Add cast.

    * src/type1/t1load.c (parse_weight_vector): Fix cast.

commit 1897186fb718bdda9f953c09906cb5bf36594905
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jul 31 10:48:07 2018 +0200

    * src/cid/cidtoken.h: Handle `XUID' keyword.

commit 8e57746c4b0a381f6c3746e089cf543bac6e822f
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jul 31 10:46:57 2018 +0200

    [cid] Trace PostScript dictionaries.

    * src/cid/cidload.c: Include FT_INTERNAL_POSTSCRIPT_AUX_H
    (cid_load_keyword, cid_parse_font_matrix, parse_fd_array,
    parse_expansion_factor, cid_parse_dict): Add tracing calls.
    (parse_font_name): New function to trace `/FontName' keywords in
    /FDArray dict.
    (cid_field_records): Register `parse_font_name'.

commit 85e8bea4fdecc841b1ea6303ab7ca09813b3869b
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jul 31 10:42:21 2018 +0200

    Minor documentation improvement.

commit 578bcf103a12fb742cdb314565819011d1ac12a7
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jul 30 11:28:04 2018 +0200

    [cff] Fix typo.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9409

    * src/cff/cffdrivr.c (cff_get_cid_from_glyph_index): Fix boundary
    check.

commit 00968d8fd62105061d92e69b5ccd44077a5a6a9f
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jul 29 10:22:59 2018 +0200

    * src/pcf/pcfread.c (pcf_get_encodings): Another thinko.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9608

commit 0f8aebfd5138590fdbbea92ffdec17f6030ba7fc
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Jul 28 23:21:28 2018 -0400

    * builds/unix/configure.raw: Minor.

commit 2c3e895c745fe417e501195310de973867f0d43e
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Jul 28 22:00:59 2018 -0400

    [smooth] Fix Harmony memory management.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9501

    * src/smooth/ftgrays.c (ft_smooth_render_generic): Restore buffer
    after each rendering in case of failure.

commit 6e44d78cc1d89f39e1086441ae4cbb2815d9f067
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jul 28 22:23:16 2018 +0200

    [type1] Avoid segfaults with `FT_Get_PS_Font_Value'.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9610

    * src/type1/t1driver.c (t1_ps_get_font_value): Protect against NULL.

commit c9edca8ee986f283e3396c88fb50f9d2b2187b99
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Jul 27 10:44:01 2018 +0200

    [truetype] Make `TT_Set_MM_Blend' idempotent (#54388).

    * src/truetype/ttgxvar.c (tt_set_mm_blend): Correctly set
    `face->doblend' if the current call to the function yields the same
    blend coordinates as the previous call.

commit d277bfc985130d897734d747ddf2649452fd3eeb
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Jul 27 09:15:43 2018 +0200

    [psaux, type1]: More tracing improvements.

    * src/psaux/psintrp.c (cf2_interpT2CharString): Trace skipped
    outline commands.

    * src/psaux/t1decode.c (t1_decoder_parse_charstring): Fix
    missing case.
    (t1_decoder_parse_metrics): Make tracing output more compact.

    * src/type1/t1gload.c (T1_Compute_Max_Advance): Be less verbose.
    (T1_Get_Advances): Add tracing.

commit 6e6acdcb0ebba5d8cecacd6b649d409b7fb5248a
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jul 26 07:22:18 2018 +0200

    Document FT_Module_Class's `module_interface' field.

commit 8ed53468772ec0bc70d121cc1af2c77b1a15e8d0
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Jul 25 22:07:22 2018 +0200

    [psaux, type1] Trace PostScript dictionaries and other things.

    The tracing of /Encoding, /Subrs, and /Charstrings is rudimentary
    right now.

    * src/psaux/psobjs.c (ps_parser_load_field,
    ps_parser_load_field_table): Add tracing calls.

    * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Make tracing
    output more compact.

    * src/type1/t1gload.c (T1_Compute_Max_Advance, T1_Get_Advances): Add
    tracing messages.

    * src/type1/t1load.c (parse_blend_axis_types,
    parse_blend_design_positions, parse_blend_design_map,
    parse_weight_vector, t1_load_keyword, t1_parse_font_matrix,
    parse_encoding, parse_subrs, parse_charstrings, T1_Open_Face): Add
    tracing calls.

    * src/type1/t1objs.c (T1_Face_Init): Add tracing call.

    * src/sfnt/sfobjs.c (sfnt_init_face): Make tracing message more
    verbose.

commit 580c94d8f71d08066d67bc5d8a2f2033d62f9317
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Jul 25 07:03:07 2018 +0200

    Fix minor ASAN run-time warnings.

    * src/base/ftutil.c (ft_mem_alloc, ft_mem_realloc): Only call
    `FT_MEM_ZERO' if we actually have a buffer.
    (ft_mem_dup): Only call `ft_memcpy' if we actually have a buffer.

commit 4b97ab98a8e90ae5403058b73c345974247bf01e
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Jul 24 23:01:34 2018 -0400

    [build] Fortify dllexport/dllimport attributes (#53969,#54330).

    We no longer use predefined _DLL, which can be defined for static
    builds too with /MD. We use DLL_EXPORT and DLL_IMPORT instead,
    following libtool convention.

    * CMakeLists.txt [WIN32], builds/windows/vc2010/freetype.vcxproj:
    Define DLL_EXPORT manually.

    * include/freetype/config/ftconfig.h, builds/unix/ftconfig.in,
    builds/vms/ftconfig.h, builds/windows/vc2010/index.html,
    src/base/ftver.rc: /_DLL/d, s/FT2_DLLIMPORT/DLL_IMPORT/.

commit d8ea52dee53defec67cbea8f467f1ad1e971ba25
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jul 24 23:03:06 2018 +0200

    [type1] Check relationship between number of axes and designs.

    For Multiple Masters fonts We don't support intermediate designs;
    this implies that

      number_of_designs == 2 ^^ number_of_axes

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9557

    * src/type1/t1load.c (T1_Open_Face): Ensure above constraint.
    (T1_Get_MM_Var): Remove now redundant test.

commit 71e29fe1c95b3a41e4df9b46e5cda5c0042d4f3d
Author: Hin-Tak Leung <htl10@users.sourceforge.net>
Date:   Tue Jul 24 10:04:23 2018 +0200

    [truetype] Match ttdebug's naming of instruction mnemonics.

    * src/truetype/ttinterp.c: The form used in ttdebug,
    "MDRP[G,B,W,?]", etc., is slightly more readable than
    "MDRP[00,01,02,03]".

commit ff1c28f6c01e3068903432cfa157b5a38d015517
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jul 24 09:59:23 2018 +0200

    * src/pcf/pcfread.c (pcf_get_encodings): Thinko.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9561

commit b98133a4e9831544fec776757b2a6745d4ebc51e
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jul 22 13:06:20 2018 +0200

    * src/pcf/pcfread.c (pcf_get_encodings): Check index of defaultChar.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9527

commit 9be385c94d63dd4951bb578a8417cf4a944ab827
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jul 22 12:49:25 2018 +0200

    * src/pcf/pcfread.c (pcf_load_font): Fix number of glyphs.

    This is an oversight of the module change 2018-07-21.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9524

commit a5acdce10076b0ad717b9b8eb455f811ed1d1f45
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jul 22 12:11:52 2018 +0200

    [cid] Sanitize `BlueShift' and `BlueFuzz'.

    This code is taken from the type1 module.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9510

    * src/cid/cidload.c (parse_fd_array): Set some private dict default
    values.
    (cid_face_open): Do the sanitizing.
    Fix some tracing messages.

commit 5434faadf4e59c891f179443a822adadc48728c3
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jul 22 07:34:03 2018 +0200

    Fix links.

    Reported by Ankit and Nikhil.

commit 93955585339493e524c4a5c7f0d813f467e8022d
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jul 21 23:46:19 2018 +0200

    Minor comment improvement.

commit cba72a0b0f0256e61af8dc6cb1924b143b127dde
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jul 21 23:45:32 2018 +0200

    [pcf] Fix handling of the undefined glyph.

    This change makes the driver use the `defaultChar' property of PCF
    files.

    * src/pcf/pcf.h (PCF_FaceRec): Change type of `defaultChar' to
    unsigned.

    * src/pcf/pcfread.c (pcf_get_encodings): Read `defaultChar' as
    unsigned.
    Validate `defaultChar'.
    If `defaultChar' doesn't point to glyph index zero, swap glyphs with
    index zero and index `defaultChar' and adjust the encodings
    accordingly.

    * src/pcf/pcfdrivr.c (pcf_cmap_char_index, pcf_cmap_char_next,
    PCF_Glyph_Load): Undo change from 2002-06-16 which always enforced
    the first character in the font to be the default character.

commit a2370f21b5c42dc077ee7be3d5a5d3cb0733d7d7
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jul 21 07:38:13 2018 +0200

    Improve stream extraction macro documentation.

commit 154832d466ecca1b473816a0c5422d526180c420
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Fri Jul 20 19:32:13 2018 +0200

    Move the legacy fuzz target to the `freetype-testing' repository.

    It can now be found at

      https://github.com/freetype/freetype2-testing/tree/master/fuzzing/src/legacy

    * src/tools/ftfuzzer: Remove this folder and its contents from the
    repository.

commit 14032290bf9f22afe4cb1cbbc8cfa2ee85a44aee
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri Jul 20 06:44:13 2018 +0200

    [cff] Avoid left-shift of negative numbers (#54322).

    * src/cff/cffgload.c (cff_slot_load): Use multiplication.

commit 8f09eb5ce0260aa17f93b2ccefb4bae347ca79fc
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jul 17 21:45:24 2018 +0200

    Allow FT_ENCODING_NONE for `FT_Select_Charmap'.

    This is a valid encoding tag for BDF, PCF, and Windows FNT, and
    there is no reason to disallow it for these formats.

    * src/base/ftobjs.c (FT_Select_Charmap): Implement it.

commit 9e69987aaada5f2eeccc4fe3a9890a2b10b874ea
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jul 17 19:54:25 2018 +0200

    * src/pcf/pcfread.c (pcf_get_encodings): Trace `defaultChar'.

commit fda356b742da3b1c0e2bf039227fa324b97b9f8b
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Mon Jul 16 18:45:23 2018 +0200

    * include/freetype/internal/ftcalc.h: Add macros for handling
    harmless over-/underflowing `FT_Int' values.

    * src/sfnt/sfdriver.c (fixed2float): Fix negation of
    `(int)(-2147483648)'.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9423

commit 839cb404cf73f4410d58ebb3a99d16e08f4bdee7
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jul 16 05:45:45 2018 +0200

    * src/truetype/ttgxvar.c (tt_set_mm_blend): Fix off-by-one error.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9412

commit 9f15370e564eee41c83ff85bb66ead93517a641b
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jul 12 07:31:26 2018 +0200

    * src/base/ftoutln.c (FT_Outline_Get_Orientation): Init `cbox'.

    Taken from patch #9667, written by Steve Langasek
    <vorlon@debian.org>.

    This fixes a build failure (most probably a bug in gcc) on ppc64el
    when building with -O3.

commit b532d7ce708cb5ca9bf88abaa2eb213ddcf9babb
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jul 5 23:13:35 2018 +0200

    Fix typo (#54238).

    * src/base/ftcolor.c (FT_Palette_Set_Foreground_Color)
    [!TT_CONFIG_OPTION_COLOR_LAYERS]: Add return value.

commit 0767d5362fdc2d14de842b264f24a6cb91d45d55
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jul 5 23:05:53 2018 +0200

    Adjust table size comparisons (#54242).

    * src/sfnt/ttcpal.c (tt_face_load_cpal): Implement it.

commit 6ceeb87f5dd1cb61aa9618bc6296ca917980b0e7
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jul 5 22:31:10 2018 +0200

    Fix more 32bit issues (#54208)

    * src/cff/cffload.c (cff_blend_build_vector): Convert assertion into
    run-time error.

    * src/truetype/ttgxvar.c (ft_var_to_normalized): Protect against
    numeric overflow.

commit 29f05fd02d2ba51965f994456d41ed1e9c9f769a
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Jul 4 11:49:47 2018 +0200

    Fix 32bit build warnings (#54239).

    * src/base/ftbitmap.c (FT_Bitmap_Blend): Add casts to avoid signed
    vs. unsigned comparisons.

    * srb/sfnt/ttcolr.c (tt_face_get_colr_layer): Ditto.

commit d9d300ab6bd8895b9247213ac87b26cc76a3fc5d
Author: Jeff Carey <Jeff.Carey@monotype.com>
Date:   Mon Jul 2 22:27:57 2018 +0200

    * src/psnames/psmodule.c (ps_unicodes_init): Fix alloc debugging.

commit 396051daee490544322b6ca5964772ecbebeac52
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jul 2 15:52:36 2018 +0200

    s/xxx specific foo/xxx-specific foo/.

commit 7edc937fe679d14d66f55cf6f7fa607925d38f3c
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jul 2 11:50:04 2018 +0200

    s/palette_types/palette_flags/.

    Suggested by Behdad.

commit 4e3b2473d8ca08c9001e4605ba9844168811d2c7
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jul 2 11:41:44 2018 +0200

    Make `FT_Get_Color_Glyph_Layer' return FT_Bool.

    * include/freetype/freetype.h, src/base/ftobjs.c
    (FT_Get_Color_Glyph_Layer, FT_Render_Glyph_Internal): Updated.

    * include/freetype/internal/sfnt.h (TT_Get_Colr_Layer_Func),
    src/sfnt/ttcolr.h, src/sfnt/ttcolr.c (tt_face_get_colr_layer):
    Updated.

commit f6ccb524af9b7d136f32426362558525b537817c
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jul 1 12:31:57 2018 +0200

    * src/base/ftobjs.c (FT_Get_Color_Glyph_Layer): Guard SFNT function.

    Reported by Behdad.

commit 1fc776b5f14e2be6fa3d6573f5cd3fb88a7ae468
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Jun 28 21:42:26 2018 -0400

    * src/base/fttrigon.c (FT_Tan): Improve accuracy.
    (FT_Vector_Rotate): Simplify.

commit 4f11209f5cd4f83f185042d54ad1c892dffb5ed1
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Jun 28 21:31:35 2018 -0400

    * src/base/ftobjs.c (FT_Set_Charmap): Robustify.

commit 207ca38fb5e99a638e9ea86d86b28fc895661122
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jun 25 18:50:00 2018 +0200

    [truetype] Fix memory leak.

    * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Add initializers.
    Fix typo in `goto' destination.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9071

commit 589d1f0899343b18c3181f35451550dc1b904bef
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jun 25 18:38:04 2018 +0200

    * src/truetype/ttgxvar.c (tt_face_vary_cvt): Add initializers.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9070

commit a632fb547e23fe129a579fabf60a992fd7d98d02
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 24 15:22:10 2018 +0200

    [truetype] Increase precision while applying VF deltas.

    It turned out that we incorrectly round CVT and glyph point deltas
    before accumulation, leading to severe positioning errors if there
    are many delta values to sum up.

    Problem reported by Akiem Helmling <akiem@underware.nl> and analyzed
    by Behdad.

    * src/truetype/ttgxvar.c (ft_var_readpackeddelta): Return deltas in
    16.16 format.
    (tt_face_var_cvt): Collect deltas in `cvt_deltas', which is a 16.16
    format array, and add the accumulated values to the CVT at the end
    of the function.
    (TT_Vary_Apply_Glyph_Deltas): Store data in `points_org' and
    `points_out' in 16.16 format.
    Collect deltas in `point_deltas_x' and `point_deltas_y', which are
    16.16 format arrays, and add the accumulated values to the glyph
    coordinates at the end of the function.

commit cc3333902bbfe5d8c16cf84c4e85016533ab2ee0
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 24 06:22:48 2018 +0200

    New base function `FT_Matrix_Check' (#54019).

    * src/base/ftcalc.c (FT_Matrix_Check): New base function to properly
    reject degenerate font matrices.

    * include/freetype/internal/ftcalc.h: Updated.

    * src/cff/cffparse.c (cff_parse_font_matrix), src/cid/cidload.c
    (cid_parse_font_matrix), src/type1/t1load.c (t1_parse_font_matrix),
    src/type42/t42parse.c (t42_parse_font_matrix): Use
    `FT_Matrix_Check'.

commit d7393e22ee3d7cfedbf580a7fb1e9b4db7b3626f
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jun 23 17:25:58 2018 +0200

    Fix typo.

    Reported by Behdad.

    * src/base/ftcolor.c (FT_Palette_Data_Get)
    [!TT_CONFIG_OPTION_COLOR_LAYERS]: s/apalette/apalette_data/.

commit 9027233f75647fbd56f0008aa07aef1b5a9a01b4
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jun 21 00:21:09 2018 +0200

    s/FT_PALETTE_USABLE_WITH_/FT_PALETTE_FOR_/.

    * include/freetype/ftcolor.h, include/freetype/internal/sfnt.h,
    src/sfnt/ttcolr.c: Do it.

commit a6b77ba2b39e379cd9295a9376fedf574a6ba15f
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jun 19 20:09:31 2018 +0200

    [sfnt] Fix CPAL heap buffer overflow.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8968

    * src/sfnt/ttcpal.c (tt_face_load_cpal): Guard CPAL version 1
    offsets.

commit 7915fd51f123d0adbe6a0b9ad19eb941e1733c87
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jun 19 07:15:21 2018 +0200

    Doh.  Don't use CPAL or COLR data if tables are missing.

    Reported by Alexei.

    * src/sfnt/ttcolr.c (tt_face_get_colr_layer): Return immediately if
    `colr' is NULL.

    * src/sfnt/ttcpal.c (tt_face_palette_set): Return immediately, if
    `cpal' is NULL.

commit a56e4bf7a243f46632e4e2ccf25d2f50ca132b23
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jun 18 23:18:07 2018 +0200

    Oops!

commit 779c8c4050c11f5afa387d4f2a27650a7cd2a7fc
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Mon Jun 18 15:17:13 2018 +0530

    Some more minor doc fixes.

commit 95f7341d818ff43639f857bea03a2089289f33d8
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jun 18 11:10:14 2018 +0200

    More minor doc fixes.

commit ce8517b474a96811a67f6234752944338d0d044a
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jun 18 10:22:42 2018 +0200

    Minor documentation fixes.

commit 877d80944b00a15acfee965a55e92ee3a77a812e
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jun 18 10:08:17 2018 +0200

    Introduce `@example:' subsections.

commit fc40469a6f049343f2694d0b724db22558f0d374
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jun 18 09:23:18 2018 +0200

    Add example for `FT_Get_Color_Glyph_Layer'.

commit b1a3c59f8df2b6f1a0c1ddf10fbfc67138c32cc5
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun Jun 17 22:33:29 2018 -0400

    [base] Introduce `FT_New_Glyph'.

    This function facilitates access to full capabilities of FreeType
    rendering engine for custom glyphs. This can be quite useful for
    consistent rendering of mathematical and chemical formulas, e.g.

      https://bugs.chromium.org/p/chromium/issues/detail?id=757078

    * include/freetype/ftglyph.h, src/base/ftglyph.c (FT_New_Glyph): New
    function.

commit e13599a0369cf68279b991dbab3e845d7a300399
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Mon Jun 18 00:38:36 2018 +0530

    Change documentation markup tags to lowercase.

    Implemented as per discussion in

      http://lists.nongnu.org/archive/html/freetype-devel/2018-06/msg00073.html

    No change in functionality, of course.

commit d573a46f771c956c486412ccc756efa1b283e455
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 17 23:23:36 2018 +0200

    Typo.

commit 0f6be0644422f57b4874825a48c3a9852b10ae59
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Sun Jun 17 20:27:42 2018 +0200

    [bdf] Fix underflow of an unsigned value.

    bdflib.c:1562 could be reached with `font->glyphs_used == 0'.  That
    caused an underflow of the unsigned value which results in undefined
    behaviour.

    * src/bdf/bdflib.c (src/bdf/bdflib.c): Bail out earlier than before
    if the `ENCODING' keyword cannot be found.

commit 19d8687f0b95e51daf729d51a4e154cd1b5efc1a
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 17 11:22:37 2018 +0200

    Fix documentation indentation; s/@const/@enum/; harmonize doc keywords.

commit da846919141be47171e33f9a3fe4c57ba8fa7fbf
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 17 09:30:05 2018 +0200

    [base] Add tracing for `FT_Bitmap_Blend'.

    * include/freetype/internal/fttrace.h (trace_bitmap): New
    enumeration.

    * src/base/ftbitmap.c (FT_COMPONENT): Define.
    (FT_Bitmap_Blend): Add `FT_TRACE5' calls.

commit e361cc6a7553ee82abccec3378d208e844f311a4
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 17 09:13:37 2018 +0200

    s/trace_bitmap/trace_checksum/.

    * include/freetype/internal/fttrace.h: s/bitmap/checksum/.

    * src/base/ftobjs.c (FT_COMPONENT): s/trace_bitmap/trace_checksum/.
    Adjust code.

commit 9960e7beabe3fa962fe5a3a020dfd97b40e93f10
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jun 16 22:16:03 2018 +0200

    [sfnt] Fix color glyph layer loading.

    * src/sfnt/ttcolr.c (Colr): Add `table_size' field.
    (tt_face_load_colr): Set it.
    (tt_face_get_colr_layer): Check pointer limit for layer entries.

commit 1079063701986505980f5c5183b3a92700dc1cf5
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jun 16 21:45:13 2018 +0200

    [sfnt] Fix color palette loading.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8933

    * src/sfnt/ttcpal.c (Cpal): Add `table_size' field.
    (tt_face_load_cpal): Set it.
    (tt_face_palette_set): Check pointer limit for color entries.

commit 8f403ab8a8bb211aff88897319a15a418f85c86e
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jun 16 21:30:04 2018 +0200

    Minor formatting.

commit a150b5ab53fe57c063924658bb0e67774fb629d1
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Sat Jun 16 15:53:15 2018 +0530

    Minor formatting.

commit 9d8e6c29801c95ca170578a209ba2308dd8efa99
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jun 16 10:11:58 2018 +0200

    * src/base/ftbitmap.c (FT_Bitmap_Blend): Avoid integer overflow.

commit 68bc56f864e3e1acd00870ca04085f387b144494
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jun 16 09:39:29 2018 +0200

    Add `FT_Bitmap_Blend' API.

    Still missing: Support for negative bitmap pitch and subpixel offset
    of source bitmap.

    * include/freetype/ftbitmap.h, src/base/ftbitmap.c
    (FT_Bitmap_Blend): New function.

commit 9b31c44620b30d3b2e6f6c0aa1cf54409cbd1087
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jun 14 21:30:43 2018 +0200

    Replace `FT_Get_GlyphLayers' with `FT_Get_Color_Glyph_Layer'.

    This avoids any additional allocation of COLR related structures in
    a glyph slot.

    * include/freetype/freetype.h (FT_Glyph_Layer, FT_Glyph_LayerRec,
    FT_Get_GlyphLayers): Removed.

    * include/freetype/internal/ftobjs.h (FT_Colr_InternalRec): Removed.
    (FT_Slot_InternalRec): Remove `color_layers'.

    * include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func):
    Removed.
    (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Remove
    `load_colr_layer'.

    * src/base/ftobjs.c (ft_glyph_slot_done): Updated.
    (FT_Render_Glyph_Internal): Use `FT_Get_Color_Glyph_Layer'.
    (FT_Get_GlyphLayers): Removed.

    * src/sfnt/sfdriver.c (sfnt_interface): Updated.

    * src/sfnt/ttcolr.c (tt_face_load_colr_layers): Removed.
    * src/sfnt/ttcolr.h: Updated.

    * src/truetype/ttgload.c (TT_Load_Glyph): Updated.

commit f9d05eb32695dfcbc5c7ae747c0c794e64cc55b8
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jun 14 21:02:49 2018 +0200

    Provide iterative API to access `COLR' data.

    This solution doesn't store any data in an `FT_GlyphSlot' object.

    * include/freetype/freetype.h (FT_LayerIterator): New structure.
    (FT_Get_Color_Glyph_Layer): New function.

    * include/freetype/internal/sfnt.h (TT_Get_Colr_Layer_Func): New
    function type.
    (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Add it.

    * src/base/ftobjs.c (FT_Get_Color_Glyph_Layer): Implement it.

    * src/sfnt/ttcolr.c (tt_face_get_colr_layer): New function.
    * src/sfnt/ttcolr.h: Updated.

    * src/sfnt/sfdriver.c (sfnt_interface): Updated.

commit 33ac83e37637f9980d674f60a2621f3ff2e2de64
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jun 14 21:00:23 2018 +0200

    Add glyph index and glyph load flags to glyph slot.

    * include/freetype/freetype.h (FT_GlyphSlotRec): Rename unused
    `reserved' field to `glyph_index'.

    * include/freetype/internal/ftobjs.h (FT_Slot_InternalRec): Add
    `load_flags' field.

    * src/base/ftobjs.c (FT_Load_Glyph): Set new fields.

commit a44e20879cefea41663bb36ff4af908cc4146fb8
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jun 14 11:32:47 2018 +0200

    [sfnt] Move `CPAL' stuff into separate files.

    * src/sfnt/sfdriver.c: Include `ttcpal.h'.
    * src/sfnt/sfnt.c: Include `ttcpal.c'.

    * src/sfnt/ttcolr.c, src/sfnt/ttcolr.h: Move CPAL stuff to ...
    * src/sfnt/ttcpal.c, src/sfnt/ttcpal.c: ... these new files.

    * src/sfnt/Jamfile (_sources), src/sfnt/rules.mk (SFNT_DRV_SRC):
    Updated.

    * include/freetype/internal/fttrace.h: Add support for `colr' and
    `cpal'.
    Sort entries.

commit 54b332aaf95cf581fc3a967bdf3724a69eba75f8
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Jun 13 08:46:27 2018 +0200

    [sfnt] Separate `CPAL' and `COLR' table handling.

    Later on we want to support the `SVG' table also, which needs `CPAL'
    (but not `COLR').

    * include/freetype/internal/sfnt.h (SFNT_Interface): Add `load_cpal'
    and `free_cpal' fields.
    (FT_DEFINE_SFNT_INTERFACE): Updated.

    * include/freetype/internal/tttypes.h (TT_FaceRec): Replace
    `colr_and_cpal' fields with `cpal' and `colr'.

    * src/sfnt/sfdriver.c (sfnt_interface): Updated.

    * src/sfnt/sfobjs.c (sfnt_load_face, sfnt_done_face): Updated.

    * src/sfnt/ttcolr.c (Colr, Cpal): Add `table' field.
    (ColrCpal): Removed.
    (tt_face_load_colr): Split off CPAL handling into...
    (tt_face_load_cpal): ... this new function.
    (tt_face_free_colr): Split off CPAL handling into...
    (tt_face_free_cpal): ... this new function.
    (tt_face_load_colr_layers, tt_face_palette_set): Updated.

    * src/sfnt/ttcolr.h: Updated.

    * src/truetype/ttgload.c (TT_Load_Glyph): Updated.

commit c07ca2a1b3cb5057b7cb98f5b15c0704374d7a47
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jun 12 11:28:55 2018 +0200

    [sfnt] Fix `sizeof' thinko.

    * src/sfnt/ttcolr.c (tt_face_load_colr, tt_face_palette_set): Don't
    use `sizeof' for computing array limit.

commit 22d1be3f2c40bd85ef825efc3ee524d40d842589
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jun 12 06:07:40 2018 +0200

    Finish CPAL/COLR support (4/4).

    * src/sfnt/ttcolr.c (tt_face_find_color): Removed.
    (tt_face_colr_blend_layer): Use `face->palette' instead of calling
    `tt_face_find_color'.
    Use and set text foreground color.

commit 45145d348fd77196d6ae92a2e8f15f671725094e
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jun 12 06:02:59 2018 +0200

    Finish CPAL/COLR support (3/4).

    * src/base/ftcolor.c: Include FT_INTERNAL_SFNT_H.
    (FT_Palette_Select, FT_Palette_Set_Foreground_Color): Implement
    functions.

commit b85d4e8f0403b245492ac8222a78e8fc9e465050
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jun 12 05:53:58 2018 +0200

    Finish CPAL/COLR support (2/4).

    * src/sfnt/ttcolr.c (tt_face_palette_set): New function.
    (tt_face_load_colr): Allocate `face->palette' and call
    `tt_face_palette_set'.
    Adjust return error code in case of error.

    * src/sfnt/ttcolr.h: Updated.

    * include/freetype/internal/sfnt.h (TT_Set_Palette_Func): New
    function type.
    (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Add it.

    * src/sfnt/sfdriver.c (sfnt_interface), src/sfnt/sfobjs.c
    (sfnt_done_face): Updated.

commit 7542f030ecdf61856b7bb4af9f3d918bd64c89c9
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jun 11 12:46:56 2018 +0200

    Finish CPAL/COLR support (1/4).

    * include/freetype/internal/tttypes.h (TT_FaceRec): New fields
    `palette_index', `palette', `have_foreground_color' and
    `foreground_color'.

commit 7de877bbc6282c820fcf18262ec4c7bb7dcccc33
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue Jun 12 06:37:02 2018 +0200

    [sfnt] Minor.

    * src/sfnt/ttcolr.c (tt_face_load_colr_layers):
    s/palette_index/palette_entry_index/ for consistency.
    Adjust return error code in case of error.

commit 04338a5e52d19529e4fe77cd370d1235592ba7e1
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue Jun 12 21:59:15 2018 -0400

    Doc fixes and improvements.

commit eaa5a42a12ce1f1fe005109da6841e411babe826
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Mon Jun 11 21:56:23 2018 -0400

    [raster] Clean up.

    * src/raster/ftraster.c (black_TWorker, SCALED, Set_High_Precision):
    Clean up after 5-level gray removal (8dc8635874).
    (Vertical_Sweep_Span): Be brief.

commit b18f5e7c62c0aa6f8d17cbb9a8fe687ed402569a
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon Jun 11 09:02:06 2018 +0200

    Minor doc fixes.

commit a698dbf868326ea5eead14190a2192d6f018d23c
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 10 21:43:51 2018 +0200

    [sfnt] Fix compiler warnings.

    * src/sfnt/ttcolr.c (tt_face_load_colr, tt_face_load_colr_layers,
    tt_face_colr_blend_layer): Add `NULL' initializers.

commit d8b8b6e34ea856afc6939ddc9c8fc57cf65ee40c
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 10 21:37:15 2018 +0200

    s/FT_Palette/FT_Palette_Data/, s/palette/palette_data/.

    * include/freetype/ftcolor.h, include/freetype/internal/tttypes.h,
    src/base/ftcolor.c, src/sfnt/sfobjs.c, src/sfnt/ttcolr.c: Updated.

commit bfbde7926f2c1f6b4da058ed4cd0e91c6697096c
Author: Nikolaus Waxweiler <madigens@gmail.com>
Date:   Sun Jun 10 13:19:31 2018 +0100

    CMakeLists: also accept IOS_PLATFORM=SIMULATOR64

    This might be needed to build FreeType for the iOS simulator. See
    https://savannah.nongnu.org/bugs/index.php?54048. Patch contributed
    by Steve Robinson.

    * CMakeLists.txt: Accept IOS_PLATFORM=SIMULATOR64

commit 6732f05593930621081092c7e2c2ec8ec043cc2d
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 10 09:12:24 2018 +0200

    Implement `FT_Palette_Get'.

    * src/base/ftcolor.c: New file.

    * src/base/Jamefile (_sources), src/base/rules.mk (BASE_SRC),
    src/base/ftbase.c: Add `ftcolor.c'.

commit 56be5f721b46a9cc5fc043e5ad4eca57398fb37d
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 10 06:59:39 2018 +0200

    * src/sfnt/ttcolr.c (tt_face_load_colr): Improve overflow checks.

commit 50fda0be3f9ef5dc97f6ee958bb446f09798bee0
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Jun 9 22:52:43 2018 -0400

    [raster] Deal with pitch sign earlier.

    * src/raster/ftraster.c (black_TWorker): Remove unused `traceG',
    s/bTarget/bOrigin/.
    (Render_Glyph): Set `ras.bOrigin' at the bottom-left corner.
    (Vertical_Sweep_Init, {Vertical,Horizontal}_Sweep_{Span,Drop}):
    Updated accordingly.

commit c412de52fb909dcdf6e60c574d1f991a4f43cb3b
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jun 9 23:56:21 2018 +0200

    [sfnt] Read `CPAL' version 1 tables.

    * include/freetype/internal.tttypes.h: Include FT_COLOR_H.
    (TT_FaceRec): Add `palette' field.

    * src/sfnt/ttcolr.c: Include FT_COLOR_H.
    (Cpal): Remove all data covered by the new `palette' field in
    `TT_FaceRec'.
    (tt_face_load_colr): Updated.
    Read `CPAL' version 1 data.
    (tt_face_load_colr_layers, tt_face_find_color): Updated.

    * src/sfnt/sfobjs.c (sfnt_done_face): Free glyph color palette data.

commit 8f1ed54877ffab4fc2cf2be329446c748a885842
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu Jun 7 02:48:48 2018 -0400

    [base] API for Harmony LCD rendering.

    This introduces `FT_Library_SetLcdGeometry' for setting up arbitrary
    LCD subpixel geometry including non-striped patterns.

    * src/base/ftlcdfil.c (FT_Library_SetLcdGeometry): New function.
    * include/freetype/ftlcdfil.h: Document it.
    * include/freetype/freetype.h: Minor.
    * include/freetype/ftchapters.h: Minor.

commit 44580515d8e1bbb9077274137221603ca746ee54
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu Jun 7 06:49:44 2018 +0200

    Minor.

commit f87ced9dc98c8f9178e2668b998e7a41d11406f8
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Jun 6 17:49:17 2018 +0200

    ftcolor.h: Redesign API.

    While going to implement it I noticed that I need access to most of
    the `CPAL' elements; I thus plan to add a `cpal' field to
    `TT_FaceRec', which makes most of the previously suggested API
    functions obsolete because the fields will be directly accessable.

commit 7c7004d60cd5fee4675fd33bf2f5c422c802e0b8
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Jun 6 17:37:51 2018 +0200

    New `ftcolor.h' draft.

commit 172904ee3a3e0d14015595946d8988f847b09158
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Jun 6 13:29:09 2018 +0200

    Minor.

commit 89d2f42918afb8478e525b03a92795c26b4ab58c
Author: Parth Wazurkar <parthwazurkar@gmail.com>
Date:   Wed Jun 6 16:53:54 2018 +0530

    [bdf, pcf] Removed deprecated FT_FACE_FLAG_FAST_GLYPHS flag.

    * src/bdf/bdfdrivr.c (BDF_Face_Init): Removed deprecated FT_FACE_FLAG_FAST_GLYPHS flag.

    * src/pcf/pcfread.c  (pcf_load_font): Removed deprecated FT_FACE_FLAG_FAST_GLYPHS flag.

commit ca4e707aa10782a0123011a54bd8c0d7da837b39
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed Jun 6 08:18:23 2018 +0200

    [smooth, raster] Limit bitmap size (#54019).

    * src/raster/ftraster.c [STANDALONE] (FT_Outline_Get_CBox): Add
    function.
    [!STANDALONE]: Include FT_OUTLINE_H.
    (ft_black_render): Compute CBox and reject glyphs larger than
    0xFFFF x 0xFFFF.

    * src/smooth/ftgrays.c (gray_raster_render): Reject glyphs larger
    than 0xFFFF x 0xFFFF.

commit 78d85b9c84f404025e287449695dc3e26d8c276c
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Mon Jun 4 18:42:29 2018 +0530

    Restore missing comment lines and other minor fixes

commit cc6267722451af26c8f7d318429af6f6d6b6efef
Author: Sender Ghost <lightside@gmx.com>
Date:   Mon Jun 4 10:49:23 2018 +0200

    Restore accidentally removed, commented-out configuration options.

commit f999375a9a834666f82928f9ad6293d9b25213a5
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 3 22:00:42 2018 +0200

    [GSoC] include/*.*, devel/*.*: Convert block comments to `light' style.

    This second and final monster commit was created by applying Nikhil's
    scripts `docconverter.py' and `markify.py' to all C header and source files,
    followed up by minor manual clean-up.

    No change in functionality, of course.

    I used commit f7419907bc6044b9b7057f9789866426c804ba82 from
    https://github.com/nikramakrishnan/freetype-docs.git.

commit dc170dea33545dbbbf18bb59b316117e73275889
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 3 21:23:04 2018 +0200

    Typos.

commit 80ac36453019546b92334f2c7a58edd006eb722f
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Sun Jun 3 18:31:58 2018 +0200

    * src/smooth/ftgrays.c (gray_convert_glyph): Remove unused variables.

commit 64bf5d48eb711ac13d7eda1ddae61332041a0631
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 3 09:19:54 2018 +0200

    Minor formatting.

commit 02842872deb202f36cc473f790e3a555adb2c987
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 3 09:17:55 2018 +0200

    * src/tools/glnames.py (main): Emit header in `light' comment style.

commit 9ac9060df00010a3eec234a8fea9cded9b8282a1
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun Jun 3 09:01:17 2018 +0200

    [GSoC] src/*.*: Convert block comments to `light' style.

    This monster commit was created by applying Nikhil's scripts
    `docconverter.py' and `markify.py' to all C header and source files,
    followed up by minor manual clean-up.

    No change in functionality, of course.

    I used commit f7419907bc6044b9b7057f9789866426c804ba82 from
    https://github.com/nikramakrishnan/freetype-docs.git.

commit ae248034106b600e8e3fa9ccc17f63db44b04db3
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sat Jun 2 21:42:44 2018 -0400

    [smooth] Attempt to mitigate bug #54019.

    The robust rendering of estra large glyphs came with unbearable cost.
    The old way of bisecting should fail but fail faster.

    * src/smooth/ftgrays.c (gray_convert_glyph): Switch back to bisecting
    in y-direction.

commit 67994e8221b4ffa6bfd24075c64f8af618ca9495
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jun 2 19:51:03 2018 +0200

    * src/truetype/ttinterp.c (Ins_MIRP): Use SUB_LONG; avoid FT_ABS.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8706

commit fab10b6fc2091df6bde50e132f7b4bd7bca97c9f
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jun 2 09:53:58 2018 +0200

    * src/autofit/afwarp.h: Use AF_CONFIG_OPTION_USE_WARPER (#54033).

commit 125b84800a3230305b7fbc8eedeee106fa78adae
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu May 31 10:49:05 2018 +0200

    * src/raster/ftraster.c (black_TWorker_): Remove `gTarget' field.

    This is no longer used.

commit 250b0c624a49ca56e221ae9778ebac747175c9bd
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Wed May 30 23:29:41 2018 -0400

    Shorten LCD filtering docs.

commit 0589f6e6ee6e9bfe0c7139374fc8812e849e7bf7
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu May 31 00:34:38 2018 +0200

    [sfnt] Get colors from `CPAL' table in right order (#54015).

    * src/sfnt/ttcolr.c (tt_face_find_color): Fix it.

commit db7c4060840c1e6b657e8a0fd8b449ba0968d0a3
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed May 30 21:21:19 2018 +0200

    ftcolor.h: Improve API design, fix typos (#54011, #54014).

    * include/freetype/ftcolor.h (FT_Palette_Get_Names): Replace with...
    (FT_Palette_Get_Name_IDs): ... this function.
    (FT_Palette_Get_Entry_Names): Replace with...
    (FT_Palette_Get_Entry_Name_IDs): ... this function
    s/FT_Palette_Set_Foreground_COlor/FT_Palette_Set_Foreground_Color/.

commit d45d4b97e6a03cfe21a2952138cf6e970fc358e5
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Wed May 30 17:35:39 2018 +0200

    Beautify a3cfed5e87232c933bdc64f43e8ebebcfd18b41b.

    * src/autofit/afloader.c (af_loader_load_glyph): Move the
    initialisation and declaration of variables into the if-block.

commit a3cfed5e87232c933bdc64f43e8ebebcfd18b41b
Author: Armin Hasitzka <prince.cherusker@gmail.com>
Date:   Wed May 30 12:37:46 2018 +0200

    Fix pointer underflow.

    The declaration of `edge2' can be reached with `edge1 == NULL' and
    `axis->edges == 0' which results in undefined behaviour.

    * src/autofit/afloader.c (af_loader_load_glyph): Initialise `edge2'
    after checking `axis->num_edges > 1'.  `edge1 != NULL' can be assumed.

commit ae2cd1b74966e957a4f3724db001d65d6decc177
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed May 30 09:34:57 2018 +0200

    Various minor color fixes.

    * include/freetype/config/ftheader.h (FT_COLOR_H): New macro.

    * include/freetype/internal/ftobjs.h (FT_Colr_Internal): Change
    type of `load_flags' to `FT_Int32'.

    * include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func): Change
    type of `idx' to `FT_UInt'.
    (TT_Blend_Colr_Func): Change type of `color_index' to `FT_UInt'.

    * src/base/ftobjs.c (FT_Render_Glyph_Internal): Change type of
    `load_flags' to `FT_Int32'.

    * src/sfnt/ttcolr.c (find_base_glyph_record,
    tt_face_load_colr_layers): Change type of `glyph_id' to `FT_UInt'.
    (tt_face_find_color, tt_face_colr_blend_layer): Change type of
    `color_index' to `FT_UInt'.
    Fix signedness and type issues.

    * src/sfnt/ttcolr.h: Updated.

commit 51fee655837ef99084767873266aaddfa3a31da5
Author: Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
Date:   Fri May 25 22:16:11 2018 +0200

    [docmaker] Fix missing `Defined in (...)' under Windows/Cygwin.

    This platform uses backslashes for paths, which docmaker didn't
    understand correctly.

    * src/tools/docmaker/tohtml.py (HtmlFormatter::blockEnter): Use
    `os.path.normpath' to normalize the path for the platform being
    used.

commit 7b73cb0707586e7988efdd07a1dfe690c3036ca1
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Thu May 24 22:38:24 2018 -0400

    [smooth] Formalize Harmony LCD rendering.

    This generalizes magic outline shifts that make Harmony LCD
    rendering work in terms of precise two-dimensional RGB subpixel
    positions. These coordinates are now set in time of the `smooth'
    module initialization and later used to shift a glyph outline for
    rendering. FT_RENDER_MODE_LCD and FT_RENDER_MODE_LCD_V use the same
    coordinates. The letter, however, rotates them before using.
    The LCD bitmap padding is also calculated using these coordinates.

    * include/freetype/internal/ftobjs.h (FT_LibraryRec): New array field
    `lcd_geometry'.
    * src/base/ftlcdfil.c (ft_lcd_padding): Reworked.
    * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Updated accordingly.

    * src/smooth/ftsmooth.c [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]
    (ft_smooth_init): Initialize `lcd_geometry'.
    (ft_smooth_render_generic): Formalize outline shifts.

commit 3fcb4cfa26e697c8c643bfc7e46b03f013394fa1
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 22 09:12:21 2018 +0200

    Oops!

commit 3360ca5853007f1bc5a550c3837f08242fd4c651
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 22 09:06:24 2018 +0200

    [truetype] Reject elements of composites with invalid glyph indices.

    Reported as

      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8413

    * src/truetype/ttgload.c (TT_Load_Composite_Glyph): Implement it.

commit 3c99016f8fed63c2c6a10565d72bf7d8e924f57e
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 22 07:53:49 2018 +0200

    * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Trace # of points.

commit 93363cd737a762fbc0e482eef386097b1ca04930
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun May 20 22:50:00 2018 +0200

    * include/freetype/ftcolor.h: New file.

    This is an interface to the `CPAL' OpenType table.  No
    implementation yet.

commit af28249862e95771748f1b78b7bdfc7adf67cf2a
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Sun May 20 06:27:08 2018 -0400

    Autoformatting.

commit 2f218a4c3abf772976bdc86226c689de5d40e86e
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Fri May 18 08:57:30 2018 -0400

    * include/freetype/internal/ftcalc.h (FT_MSB): Verified `_MSC_VER'.

    Actually `_BitScanReverse' is available since VS2005.

commit 840b844301d9f5561627314b18fb81135abf0407
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri May 18 10:57:51 2018 +0200

    * include/freetype/internal/ftcalc.h (FT_MSB): Use `_MSC_VER' value.

    Older VC versions don't provide `_BitScanReverse'.  We test for VC
    2013.

    Reported by John Emmas <john@creativepost.co.uk>.

commit 3331b84fc2a2020dcf84511003172c4395a78f24
Author: Werner Lemberg <wl@gnu.org>
Date:   Fri May 18 07:19:57 2018 +0200

    Minor comment fixes.

commit 2cac1c3542cc250c98a3d1f3b9b8c8e62660005e
Author: Werner Lemberg <wl@gnu.org>
Date:   Thu May 17 19:40:44 2018 +0200

    s/inline/__inline/ for MSVC.

    Reported by John Emmas <john@creativepost.co.uk>.

    * include/freetype/internal/ftcalc.h (FT_MSB) [_MSC_VER]: Do it.

commit 583dabf2918cc9ca82cac0b16482d2c56de8c3fa
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed May 16 20:37:43 2018 +0200

    Add function `FT_Get_GlyphLayers' to access `COLR' table data.

    * include/freetype/internal/ftobjs.h (FT_Glyph_LayerRec): Move this
    structure to...
    * include/freetype/freetype.h (FT_Glyph_LayerRec): ... this
    header file.
    (FT_Glyph_Layer): New typedef.
    Update code to use it where appropriate.

    * src/base/ftobjs.c (FT_Get_GlyphLayers): New function.

commit f1458d2e44d89e8bc7c0db068f1cbc54b74b9d98
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date:   Tue May 15 21:47:18 2018 -0400

    [base] Fix mono bitmap presetting (#53896).

    It is rather fundamental to set monochrome bitmap based on rounded
    CBox because the b/w rasterizer turns on pixels when their centers are
    inside the glyph outline. The dropout control is unpredictable and can
    distort narrow glyphs if the bitmap is too wide.

    Reported by Chris Liddell.

    * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): If BBox boundaries
    are too close, adjust them before rounding.

commit 49c5e24a149a960b5f2736d7b1d98a4d56d7e2f0
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 15 21:55:28 2018 +0200

    [psaux] Fix compiler warning (#53915).

    * src/psaux/psft.c (cf2_freeT1SeacComponent): Do it.

commit befee11296032fc8b25d87bf0f65c18bb67682bb
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 15 17:01:22 2018 +0200

    [sfnt] Fix memory leak in handling `COLR' data.

    * src/truetype/ttgload.c (TT_Load_Glyph): Free old `layers' array
    before reassigning allocated memory.
    Only allocate `color_layers' if we don't have one already.

commit 5fd125640a7c4130486511fa4e40ac8195dc4373
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 15 11:30:49 2018 +0200

    Grammar fixes.

commit 2dd20916117e36a49b52206ceb6689eae5060c58
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 15 09:05:53 2018 +0200

    [sfnt] If `COLR' is present, don't assume that all glyphs use it.

    * src/sfnt/ttcolr.c (tt_face_load_colr_layers): Return FT_Err_Ok if
    current glyph is not a `COLR' base glyph.

    * src/truetype/ttgload.c (TT_Load_Glyph): Don't allocate
    `color_layers' if there are no color layers.

commit 06820637e2e1b6779c0157abb11a3bb4d65e1f53
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon May 14 09:45:16 2018 +0200

    * src/base/ftobjs.c (FT_Load_Glyph): Fix signature of `pixel_modes'.

commit c5a8a5350a572cac399643ec8cacdb3330dc79df
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon May 14 09:42:20 2018 +0200

    Provide dummy functions if `TT_CONFIG_OPTION_SFNT_NAMES' is not set.

    * src/base/ftsnames.c [!TT_CONFIG_OPTION_SFNT_NAMES]: Implement it.

commit 78db8a2570b51a7503078c228afeec90147817c4
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun May 13 11:53:01 2018 +0200

    Typo.

commit 1b2abda9d23b218e08e240fc3d062661c22258d1
Author: Werner Lemberg <wl@gnu.org>
Date:   Sun May 13 10:58:49 2018 +0200

    * src/base/ftobjs.c (FT_Load_Glyph): Improve tracing.

commit f04d81751ac68b23c89da2edd31c43fd9fc5c75c
Author: Shao Yu Zhang <shaozhang@fb.com>
Date:   Sun May 13 03:25:09 2018 +0200

    [sfnt] Preliminary support of coloured layer outlines.

    This commit enables OpenType's COLR/CPAL table handling; a typical
    application are color emojis that can be scaled to any size.

    If the color palette does not exist or is invalid, the rendering
    step rasterizes the outline instead.  The current implementation
    assumes that the foreground is black.

    Enable this by defining option TT_CONFIG_OPTION_COLOR_LAYERS.

    There are still some issues with metrics; additionally, an API to
    fetch color layers is missing.

    * devel/ftoption.h, include/freetype/config/ftoption.h
    (TT_CONFIG_OPTION_COLOR_LAYERS): New macro.

    * include/freetype/internal/ftobjs.h (FT_Glyph_LayerRec,
    FT_Colr_InternalRec): New structures.
    (FT_Slot_InternalRec): Add `color_layers' field.

    * include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func,
    TT_Blend_Colr_Func): New function types.
    (SFNT_Interface): Add `load_colr', `free_colr', `load_colr_layer',
    and `colr_blend' fields.

    * include/freetype/internal/tttypes.h (TT_FaceRec): Add
    `colr_and_cpal' field.

    * include/freetype/internal/tttags. (TTAG_COLR, TTAG_CPAL): New
    macros.

    * src/sfnt/ttcolr.c, src/sfnt/ttcolr.h: New files.

    * src/base/ftobjs.c (ft_glyphslot_done, FT_Render_Glyph_Internal):
    Handle glyph color layers.

    * src/sfnt/Jamfile (_sources), src/sfnt/rules.mk (SFNT_DRV_SRC): Add
    `ttcolr.c'.

    * src/sfnt/sfdriver.c: Include `ttcolr.h'.
    (PUT_COLOR_LAYERS): New macro.
    Update call to `FT_DEFINE_SFNT_INTERFACE'.

    * src/sfnt/sfnt.c: Include `ttcolr.c'.

    * src/sfnt/sfobjs.c (sfnt_load_face): Load `COLR' and `CPAL' tables.
    (sfnt_done_face): Updated.

    * src/truetype/ttgload.c (TT_Load_Glyph): Handle color layers.

commit 84eebf48021ab76c1c628bb7451b712f701e4518
Author: Arkady Shapkin <arkady.shapkin@gmail.com>
Date:   Sat May 12 06:16:46 2018 +0200

    Use MS VC++'s _BitScanReverse to calculate MSB (patch #9636).

    * include/freetype/internal/ftcalc.h (FT_MSB) [_MSC_VER]: Implement
    it.

commit fb742477b235dc1f7113790f94705423f5e0f0a1
Author: Parth Wazurkar <parthwazurkar@gmail.com>
Date:   Fri May 11 23:27:06 2018 +0530

    [pcf]Documentation Typo.

commit 9e345c911714ed62250be13d03d72e25d91fbc77
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Thu May 10 10:10:43 2018 +0200

    Further fix to visibility flag testing with Solaris Studio compilers.

    AC_COMPILE_IFELSE only tries to compile a `*.c' to a `*.o'.  The
    Solaris Studio 12.1 through 12.5 compilers see the
    `-fvisibility=hidden' flag, but ignore it with a warning of:

      cc: Warning: Option -fvisibility=hidden passed to ld,
                   if ld is invoked, ignored otherwise

    AC_LINK_IFELSE does the compile and then tries to link the result,
    at which point the Solaris linker will issue an error:

      ld: fatal: option '-fvisibility=hidden' is incompatible with
          building a dynamic executable

    If we don't use AC_LINK_IFELSE to catch the error, then configure
    will fail further tests which attempt to link, such as those testing
    dependencies like `libbz2'.

    Also, don't try adding `-fvisibility' if we have already added
    `-xldscope', just use one of them, since Sun Studio 12 and earlier
    compilers only issue a warning, and don't try passing through to the
    linker to generate an error, so AC_LINK_IFELSE doesn't catch them.

    Tested on Solaris 11.4 beta with compiler versions:

      Sun Studio 8 (Sun C 5.5)
      Sun Studio 10 (Sun C 5.7)
      Sun Studio 11 (Sun C 5.8)
      Sun Studio 12 (Sun C 5.9)
      Sun Studio 12.1 (Sun C 5.10)
      Oracle Solaris Studio 12.2 (Sun C 5.11)
      Oracle Solaris Studio 12.3 (Sun C 5.12)
      Oracle Solaris Studio 12.4 (Sun C 5.13)
      Oracle Developer Studio 12.5 (Sun C 5.14)
      Oracle Developer Studio 12.6 (Sun C 5.15)
      gcc 5.5.0
      gcc 7.3.0

    and verified the libfreetype.so.6 generated by each of those
    compilers exported the same set of symbols.

    * builds/unix/configure.raw: Implement it.

commit e0015f7612cf07ff80561475321ce1f98c7c2b88
Author: Werner Lemberg <wl@gnu.org>
Date:   Tue May 8 11:51:16 2018 +0200

    [autofit] Avoid potential SEGV if running out of memory.

    Problem reported by Shailesh Mistry <shailesh.mistry@hotmail.co.uk>.

    * src/autofit/afshaper.c (af_shaper_buf_create,
    af_shaper_buf_destroy) [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Don't
    allocate and free a four-byte buffer.  Instead, make those functions
    no-ops; the calling functions will provide a pointer to a buffer
    instead.

    * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
    af_cjk_metrics_init_blues, af_cjk_metrics_check_digits),
    src/autofit/aflatin.c (af_latin_metrics_init_widths,
    af_latin_metrics_init_blues, af_latin_metrics_check_digits)
    [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Use pointer to local variable for
    `shaper_buf'.

commit f7b4fb3a214c15df0579979bd1bd4e7f613f0209
Author: Nikolaus Waxweiler <madigens@gmail.com>
Date:   Mon May 7 23:10:36 2018 +0100

    CMake: Allow using project as subfolder in other project

    * CMakeLists.txt: Test for CMake build directory being diffent from
    source directory. Provide other parts of the build system access the
    full include directory.

commit 7702edf793ed47effbb26050d66cb2acfcde2b96
Author: Werner Lemberg <wl@gnu.org>
Date:   Mon May 7 08:54:34 2018 +0200

    [build] Suppress configure's `nothing to be done' message.

    This is due to calling the configure script via `make' (within the
    top-level `configure' wrapper script).  The same can happen for all
    other secondary make targets that are used to only modify the
    primary one, e.g., `make setup devel'.

    * builds/dos/detect.mk (emx, turboc, watcom, borlandc, borlandc16),
    builds/os2/detect (visualage, watcom, borlandc, devel),
    builds/unix/detect.mk (devel, lcc, unix), builds/windows/detect.mk
    (visualc, watcom, visualage, lcc, mingw32, bcc32, devel-bcc,
    devel-gcc): Use no-op recipe.

commit 2b3e0ef6c095cf6ea920e95fc9826dc39694162a
Author: suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Date:   Fri May 4 12:55:48 2018 +0900

    Support symbol visibility features of Sun / Oracle C compilers.
    Reported by Kiyoshi Kanazawa:
    https://lists.gnu.org/archive/html/freetype-devel/2018-05/msg00008.html
    Thanks to the suggestions by Alexei and Alan Coopersmith.

    * builds/unix/configure.raw: Check if "-xldscope=hidden" is
    accepted, and if so, it is added to CFLAGS.  This is the option
    making Sun / Oracle C compilers hide the symbols from global
    scope.
    * include/freetype/config/ftconfig.h: Use "__global" prefix
    for FT_EXPORT() macro, if SunPro C is newer than Sun ONE
    Studio 8 (2003).
    * builds/unix/ftconfig.in: Ditto.
    * builds/vms/ftconfig.h: Ditto.

commit 660afb5ce81ccf3271ec80b6475ec8b16d862a25
Author: Nikolaus Waxweiler <madigens@gmail.com>
Date:   Wed May 2 23:19:55 2018 +0100

    Unbreak CMake Windows installation

    * CMakeLists.txt: Generate ftconfig.h on non-UNIX.

commit 9514959241dec9943a99cd1c8f0c214a5fbb0d91
Author: Werner Lemberg <wl@gnu.org>
Date:   Wed May 2 20:27:48 2018 +0200

    Remove FT_CONFIG_OPTION_PIC and related code.

    */* [FT_CONFIG_OPTION_PIC]: Remove all code guarded by this
    preprocessor symbol.

    */*: Replace `XXX_GET' macros (which could be either a function in
    PIC mode or an array in non-PIC mode) with `xxx' arrays.

    * include/freetype/internal/ftpic.h, src/autofit/afpic.c,
    src/autofit/afpic.h, src/base/basepic.c, src/base/basepic.h,
    src/base/ftpic.c, src/cff/cffpic.c, src/cff/cffpic.h,
    src/pshinter/pshpic.c, src/pshinter/pshpic.h, src/psnames/pspic.c,
    src/psnames/pspic.h, src/raster/rastpic.c, src/raster/rastpic.h,
    src/sfnt/sfntpic.c, src/sfnt/sfntpic.h, src/smooth/ftspic.c,
    src/smooth/ftspic.h, src/truetype/ttpic.c, src/truetype/ttpic.h:
    Removed.

Change-Id: Ibb9451590d0faeead985c89b8fb7f3d0d60f0673
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/freetype2/+/441576
Reviewed-by: Jason Simmons <jsimmons@google.com>
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..fbd04c1
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,16 @@
+BasedOnStyle: Chromium
+AlignAfterOpenBracket: Align
+AlignConsecutiveAssignments: true
+AlignConsecutiveDeclarations: true
+AlignConsecutiveMacros: true
+AlignEscapedNewlines: true
+# AlignOperands: Align
+AlignTrailingComments: true
+AlwaysBreakAfterReturnType: AllDefinitions
+BreakBeforeBraces: Allman
+ColumnLimit: 80
+DerivePointerAlignment: false
+IndentCaseLabels: false
+PointerAlignment: Left
+SpaceBeforeParens: ControlStatements
+SpacesInParentheses: true
diff --git a/.mailmap b/.mailmap
index c406e23..52d0506 100644
--- a/.mailmap
+++ b/.mailmap
@@ -7,3 +7,4 @@
 Suzuki, Toshiya (鈴木俊哉) <mpsuzuki@hiroshima-u.ac.jp> suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
 Ben Wagner <bungeman@gmail.com> Bungeman <bungeman@gmail.com>
 Ewald Hew (Hew Yih Shiuan 丘毅宣) <ewaldhew@gmail.com>
+Nikhil Ramakrishnan (निखिल रामकृष्णन) <ramakrishnan.nikhil@gmail.com>
diff --git a/BUILD.gn b/BUILD.gn
index cbde222..34deeb8 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -35,6 +35,7 @@
       "-Wno-conversion",
       "-Wno-unused-function",
       "-Wno-unused-variable",
+      "-Wno-macro-redefined",
     ]
   }
 }
@@ -63,6 +64,7 @@
       "src/base/ftbbox.c",
       "src/base/ftbdf.c",
       "src/base/ftbitmap.c",
+      "src/base/ftdebug.c",
       "src/base/ftfstype.c",
       "src/base/ftgasp.c",
       "src/base/ftglyph.c",
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ad8ded0..3ed55aa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,6 @@
 # CMakeLists.txt
 #
-# Copyright 2013-2018 by
+# Copyright (C) 2013-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # Written originally by John Cary <cary@txcorp.com>
@@ -14,14 +14,14 @@
 #
 # The following will 1. create a build directory and 2. change into it and
 # call cmake to configure the build with default parameters as a static
-# library.
+# library. See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html
+# for information about Debug, Release, etc. builds.
 #
-#   cmake -E make_directory build
-#   cmake -E chdir build cmake ..
+#   cmake -B build -D CMAKE_BUILD_TYPE=Release
 #
 # For a dynamic library, use
 #
-#   cmake -E chdir build cmake -D BUILD_SHARED_LIBS:BOOL=true ..
+#   cmake -B build -D BUILD_SHARED_LIBS=true -D CMAKE_BUILD_TYPE=Release
 #
 # For a framework on OS X, use
 #
@@ -35,6 +35,10 @@
 #
 #   cmake -E chdir build cmake -G Xcode -D IOS_PLATFORM=SIMULATOR ..
 #
+# or
+#
+#   cmake -E chdir build cmake -G Xcode -D IOS_PLATFORM=SIMULATOR64 ..
+#
 # Finally, build the project with:
 #
 #   cmake --build build
@@ -64,14 +68,26 @@
 # . `CMakeLists.txt' is provided as-is since it is normally not used by the
 #   developer team.
 #
-# . Set the `FT_WITH_ZLIB', `FT_WITH_BZIP2', `FT_WITH_PNG', and
-#   `FT_WITH_HARFBUZZ' CMake variables to `ON' to force using a dependency.
-#   Leave a variable undefined (which is the default) to use the dependency
-#   only if it is available.  Set `CMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE' to
-#   disable a dependency completely (CMake package name, so `BZip2' instead of
-#   `BZIP2'). Example:
+# . Set the `FT_WITH_ZLIB', `FT_WITH_BZIP2', `FT_WITH_PNG',
+#   `FT_WITH_HARFBUZZ', and `FT_WITH_BROTLI' CMake variables to `ON' to
+#   force using a dependency.  Leave a variable undefined (which is the
+#   default) to use the dependency only if it is available. Example:
 #
-#     cmake -DFT_WITH_ZLIB=ON -DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE [...]
+#     cmake -B build -D FT_WITH_ZLIB=ON \
+#                    -D FT_WITH_BZIP2=ON \
+#                    -D FT_WITH_PNG=ON \
+#                    -D FT_WITH_HARFBUZZ=ON \
+#                    -D FT_WITH_BROTLI=ON [...]
+#
+#   Set `CMAKE_DISABLE_FIND_PACKAGE_XXX=TRUE' to disable a dependency completely
+#   (where `XXX' is a CMake package name like `BZip2').  Example for disabling all
+#   dependencies:
+#
+#     cmake -B build -D CMAKE_DISABLE_FIND_PACKAGE_ZLIB=TRUE \
+#                    -D CMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE \
+#                    -D CMAKE_DISABLE_FIND_PACKAGE_PNG=TRUE \
+#                    -D CMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE \
+#                    -D CMAKE_DISABLE_FIND_PACKAGE_BrotliDec=TRUE [...]
 #
 # . Installation of FreeType can be controlled with the CMake variables
 #   `SKIP_INSTALL_HEADERS', `SKIP_INSTALL_LIBRARIES', and `SKIP_INSTALL_ALL'
@@ -85,7 +101,7 @@
 
 if (NOT CMAKE_VERSION VERSION_LESS 3.3)
   # Allow symbol visibility settings also on static libraries. CMake < 3.3
-  # only sets the propery on a shared library build.
+  # only sets the property on a shared library build.
   cmake_policy(SET CMP0063 NEW)
 endif ()
 
@@ -96,9 +112,10 @@
 if (APPLE)
   if (DEFINED IOS_PLATFORM)
     if (NOT "${IOS_PLATFORM}" STREQUAL "OS"
-        AND NOT "${IOS_PLATFORM}" STREQUAL "SIMULATOR")
+        AND NOT "${IOS_PLATFORM}" STREQUAL "SIMULATOR"
+        AND NOT "${IOS_PLATFORM}" STREQUAL "SIMULATOR64")
       message(FATAL_ERROR
-        "IOS_PLATFORM must be set to either OS or SIMULATOR")
+        "IOS_PLATFORM must be set to either OS, SIMULATOR, or SIMULATOR64")
     endif ()
     if (NOT "${CMAKE_GENERATOR}" STREQUAL "Xcode")
       message(AUTHOR_WARNING
@@ -129,31 +146,39 @@
 project(freetype C)
 
 set(VERSION_MAJOR "2")
-set(VERSION_MINOR "9")
-set(VERSION_PATCH "1")
+set(VERSION_MINOR "10")
+set(VERSION_PATCH "4")
 
-# SOVERSION scheme: CURRENT.AGE.REVISION
-#   If there was an incompatible interface change:
-#     Increment CURRENT. Set AGE and REVISION to 0
-#   If there was a compatible interface change:
-#     Increment AGE. Set REVISION to 0
-#   If the source code was changed, but there were no interface changes:
-#     Increment REVISION.
-set(LIBRARY_VERSION "6.16.0")
-set(LIBRARY_SOVERSION "6")
+# Generate LIBRARY_VERSION and LIBRARY_SOVERSION.
+set(LIBTOOL_REGEX "version_info='([0-9]+):([0-9]+):([0-9]+)'")
+file(STRINGS "${PROJECT_SOURCE_DIR}/builds/unix/configure.raw"
+  VERSION_INFO
+  REGEX ${LIBTOOL_REGEX})
+string(REGEX REPLACE
+  ${LIBTOOL_REGEX} "\\1"
+  LIBTOOL_CURRENT "${VERSION_INFO}")
+string(REGEX REPLACE
+  ${LIBTOOL_REGEX} "\\2"
+  LIBTOOL_REVISION "${VERSION_INFO}")
+string(REGEX REPLACE
+  ${LIBTOOL_REGEX} "\\3"
+  LIBTOOL_AGE "${VERSION_INFO}")
 
-# These options mean "require x and complain if not found". They'll get
-# optionally found anyway. Use `-DCMAKE_DISABLE_FIND_PACKAGE_x=TRUE` to disable
-# searching for a packge entirely (x is the CMake package name, so "BZip2"
-# instead of "BZIP2").
+# This is what libtool does internally on Unix platforms.
+math(EXPR LIBRARY_SOVERSION "${LIBTOOL_CURRENT} - ${LIBTOOL_AGE}")
+set(LIBRARY_VERSION "${LIBRARY_SOVERSION}.${LIBTOOL_AGE}.${LIBTOOL_REVISION}")
+
+# External dependency library detection is automatic. See the notes at the top
+# of this file, for how to force or disable dependencies completely.
 option(FT_WITH_ZLIB "Use system zlib instead of internal library." OFF)
 option(FT_WITH_BZIP2 "Support bzip2 compressed fonts." OFF)
 option(FT_WITH_PNG "Support PNG compressed OpenType embedded bitmaps." OFF)
 option(FT_WITH_HARFBUZZ "Improve auto-hinting of OpenType fonts." OFF)
+option(FT_WITH_BROTLI "Support compressed WOFF2 fonts." OFF)
 
 
 # Disallow in-source builds
-if ("${PROJECT_BINARY_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
+if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
   message(FATAL_ERROR
     "In-source builds are not permitted!  Make a separate folder for"
     " building, e.g.,\n"
@@ -180,10 +205,11 @@
 
 
 # Find dependencies
+set(HARFBUZZ_MIN_VERSION "1.8.0")
 if (FT_WITH_HARFBUZZ)
-  find_package(HarfBuzz 1.3.0 REQUIRED)
+  find_package(HarfBuzz ${HARFBUZZ_MIN_VERSION} REQUIRED)
 else ()
-  find_package(HarfBuzz 1.3.0)
+  find_package(HarfBuzz ${HARFBUZZ_MIN_VERSION})
 endif ()
 
 if (FT_WITH_PNG)
@@ -204,13 +230,18 @@
   find_package(BZip2)
 endif ()
 
+if (FT_WITH_BROTLI)
+  find_package(BrotliDec REQUIRED)
+else ()
+  find_package(BrotliDec)
+endif ()
+
 # Create the configuration file
 if (UNIX)
   check_include_file("unistd.h" HAVE_UNISTD_H)
   check_include_file("fcntl.h" HAVE_FCNTL_H)
-  check_include_file("stdint.h" HAVE_STDINT_H)
 
-  file(READ "${PROJECT_SOURCE_DIR}/builds/unix/ftconfig.in"
+  file(READ "${PROJECT_SOURCE_DIR}/builds/unix/ftconfig.h.in"
     FTCONFIG_H)
   if (HAVE_UNISTD_H)
     string(REGEX REPLACE
@@ -222,15 +253,19 @@
       "#undef +(HAVE_FCNTL_H)" "#define \\1 1"
       FTCONFIG_H "${FTCONFIG_H}")
   endif ()
-  if (HAVE_STDINT_H)
-    string(REGEX REPLACE
-      "#undef +(HAVE_STDINT_H)" "#define \\1 1"
-      FTCONFIG_H "${FTCONFIG_H}")
-  endif ()
-  string(REPLACE "/undef " "#undef "
-    FTCONFIG_H "${FTCONFIG_H}")
-  file(WRITE "${PROJECT_BINARY_DIR}/include/freetype/config/ftconfig.h"
-    "${FTCONFIG_H}")
+else ()
+  file(READ "${PROJECT_SOURCE_DIR}/include/freetype/config/ftconfig.h"
+    FTCONFIG_H)
+endif ()
+
+set(FTCONFIG_H_NAME "${PROJECT_BINARY_DIR}/include/freetype/config/ftconfig.h")
+if (EXISTS "${FTCONFIG_H_NAME}")
+  file(READ "${FTCONFIG_H_NAME}" ORIGINAL_FTCONFIG_H)
+else ()
+  set(ORIGINAL_FTCONFIG_H "")
+endif ()
+if (NOT (ORIGINAL_FTCONFIG_H STREQUAL FTCONFIG_H))
+  file(WRITE "${FTCONFIG_H_NAME}" "${FTCONFIG_H}")
 endif ()
 
 
@@ -257,8 +292,21 @@
     "/\\* +(#define +FT_CONFIG_OPTION_USE_HARFBUZZ) +\\*/" "\\1"
     FTOPTION_H "${FTOPTION_H}")
 endif ()
-file(WRITE "${PROJECT_BINARY_DIR}/include/freetype/config/ftoption.h"
-  "${FTOPTION_H}")
+if (BROTLIDEC_FOUND)
+  string(REGEX REPLACE
+    "/\\* +(#define +FT_CONFIG_OPTION_USE_BROTLI) +\\*/" "\\1"
+    FTOPTION_H "${FTOPTION_H}")
+endif ()
+
+set(FTOPTION_H_NAME "${PROJECT_BINARY_DIR}/include/freetype/config/ftoption.h")
+if (EXISTS "${FTOPTION_H_NAME}")
+  file(READ "${FTOPTION_H_NAME}" ORIGINAL_FTOPTION_H)
+else ()
+  set(ORIGINAL_FTOPTION_H "")
+endif ()
+if (NOT (ORIGINAL_FTOPTION_H STREQUAL FTOPTION_H))
+  file(WRITE "${FTOPTION_H_NAME}" "${FTOPTION_H}")
+endif ()
 
 
 file(GLOB PUBLIC_HEADERS "include/ft2build.h" "include/freetype/*.h")
@@ -284,7 +332,6 @@
   src/base/ftpfr.c
   src/base/ftstroke.c
   src/base/ftsynth.c
-  src/base/ftsystem.c
   src/base/fttype1.c
   src/base/ftwinfnt.c
   src/bdf/bdf.c
@@ -308,6 +355,12 @@
   src/winfonts/winfnt.c
 )
 
+if (UNIX)
+  list(APPEND BASE_SRCS "builds/unix/ftsystem.c")
+else ()
+  list(APPEND BASE_SRCS "src/base/ftsystem.c")
+endif ()
+
 if (WIN32)
   enable_language(RC)
   list(APPEND BASE_SRCS builds/windows/ftdebug.c
@@ -325,7 +378,7 @@
 
 if (NOT DISABLE_FORCE_DEBUG_POSTFIX)
   set(CMAKE_DEBUG_POSTFIX d)
-endif()
+endif ()
 
 
 add_library(freetype
@@ -345,6 +398,10 @@
 if (WIN32)
   target_compile_definitions(
     freetype PRIVATE _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_WARNINGS)
+  if (BUILD_SHARED_LIBS)
+    target_compile_definitions(
+      freetype PRIVATE DLL_EXPORT)
+  endif ()
 endif ()
 
 if (BUILD_SHARED_LIBS)
@@ -353,17 +410,21 @@
     SOVERSION ${LIBRARY_SOVERSION})
 endif ()
 
-target_include_directories(
-  freetype BEFORE  # Pick up ftconfig.h and ftoption.h generated above.
-    PRIVATE "${PROJECT_BINARY_DIR}/include")
-
+# Pick up ftconfig.h and ftoption.h generated above, first.
 target_include_directories(
   freetype
-    PRIVATE "${PROJECT_SOURCE_DIR}/include")
+    PUBLIC
+      $<INSTALL_INTERFACE:include/freetype2>
+      $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
+      $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+    PRIVATE
+      ${CMAKE_CURRENT_BINARY_DIR}/include
+      ${CMAKE_CURRENT_SOURCE_DIR}/include
+      
+      # Make <ftconfig.h> available for builds/unix/ftsystem.c.
+      ${CMAKE_CURRENT_BINARY_DIR}/include/freetype/config
+)
 
-target_include_directories(
-  freetype
-    PUBLIC $<INSTALL_INTERFACE:include/freetype2>)
 
 if (BUILD_FRAMEWORK)
   set_property(SOURCE ${PUBLIC_CONFIG_HEADERS}
@@ -383,23 +444,29 @@
 if (ZLIB_FOUND)
   target_link_libraries(freetype PRIVATE ${ZLIB_LIBRARIES})
   target_include_directories(freetype PRIVATE ${ZLIB_INCLUDE_DIRS})
-  list(APPEND PKG_CONFIG_REQUIRED_PRIVATE zlib)
+  list(APPEND PKG_CONFIG_REQUIRED_PRIVATE "zlib")
 endif ()
 if (BZIP2_FOUND)
   target_link_libraries(freetype PRIVATE ${BZIP2_LIBRARIES})
   target_include_directories(freetype PRIVATE ${BZIP2_INCLUDE_DIR}) # not BZIP2_INCLUDE_DIRS
-  list(APPEND PKG_CONFIG_REQUIRED_PRIVATE bzip2)
+  list(APPEND PKG_CONFIG_REQUIRED_PRIVATE "bzip2")
 endif ()
 if (PNG_FOUND)
   target_link_libraries(freetype PRIVATE ${PNG_LIBRARIES})
   target_compile_definitions(freetype PRIVATE ${PNG_DEFINITIONS})
   target_include_directories(freetype PRIVATE ${PNG_INCLUDE_DIRS})
-  list(APPEND PKG_CONFIG_REQUIRED_PRIVATE libpng)
+  list(APPEND PKG_CONFIG_REQUIRED_PRIVATE "libpng")
 endif ()
 if (HARFBUZZ_FOUND)
   target_link_libraries(freetype PRIVATE ${HARFBUZZ_LIBRARIES})
   target_include_directories(freetype PRIVATE ${HARFBUZZ_INCLUDE_DIRS})
-  list(APPEND PKG_CONFIG_REQUIRED_PRIVATE harfbuzz)
+  list(APPEND PKG_CONFIG_REQUIRED_PRIVATE "harfbuzz >= ${HARFBUZZ_MIN_VERSION}")
+endif ()
+if (BROTLIDEC_FOUND)
+  target_link_libraries(freetype PRIVATE ${BROTLIDEC_LIBRARIES})
+  target_compile_definitions(freetype PRIVATE ${BROTLIDEC_DEFINITIONS})
+  target_include_directories(freetype PRIVATE ${BROTLIDEC_INCLUDE_DIRS})
+  list(APPEND PKG_CONFIG_REQUIRED_PRIVATE "libbrotlidec")
 endif ()
 
 
@@ -425,7 +492,7 @@
 if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
   # Generate the pkg-config file
   if (UNIX)
-    file(READ ${PROJECT_SOURCE_DIR}/builds/unix/freetype2.in FREETYPE2_PC_IN)
+    file(READ "${PROJECT_SOURCE_DIR}/builds/unix/freetype2.in" FREETYPE2_PC_IN)
 
     string(REPLACE ";" ", " PKG_CONFIG_REQUIRED_PRIVATE "${PKG_CONFIG_REQUIRED_PRIVATE}")
 
@@ -437,14 +504,22 @@
            FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
     string(REPLACE "%includedir%" "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}"
            FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
-    string(REPLACE "%ft_version%" "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}"
+    string(REPLACE "%ft_version%" "${LIBTOOL_CURRENT}.${LIBTOOL_REVISION}.${LIBTOOL_AGE}"
            FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
     string(REPLACE "%REQUIRES_PRIVATE%" "${PKG_CONFIG_REQUIRED_PRIVATE}"
            FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
     string(REPLACE "%LIBS_PRIVATE%" ""  # All libs support pkg-config
            FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
 
-    file(WRITE ${PROJECT_BINARY_DIR}/freetype2.pc ${FREETYPE2_PC_IN})
+    set(FREETYPE2_PC_IN_NAME "${PROJECT_BINARY_DIR}/freetype2.pc")
+    if (EXISTS "${FREETYPE2_PC_IN_NAME}")
+      file(READ "${FREETYPE2_PC_IN_NAME}" ORIGINAL_FREETYPE2_PC_IN)
+    else ()
+      set(ORIGINAL_FREETYPE2_PC_IN "")
+    endif ()
+    if (NOT (ORIGINAL_FREETYPE2_PC_IN STREQUAL FREETYPE2_PC_IN))
+      file(WRITE "${FREETYPE2_PC_IN_NAME}" ${FREETYPE2_PC_IN})
+    endif ()
 
     install(
       FILES ${PROJECT_BINARY_DIR}/freetype2.pc
@@ -452,11 +527,18 @@
       COMPONENT pkgconfig)
   endif ()
 
+  include(CMakePackageConfigHelpers)
+  write_basic_package_version_file(
+    ${PROJECT_BINARY_DIR}/freetype-config-version.cmake
+    VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
+    COMPATIBILITY SameMajorVersion)
+
   install(
     TARGETS freetype
       EXPORT freetype-targets
       LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
       ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+      RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
       FRAMEWORK DESTINATION Library/Frameworks
       COMPONENT libraries)
   install(
@@ -464,6 +546,10 @@
       DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/freetype
       FILE freetype-config.cmake
       COMPONENT headers)
+  install(
+    FILES ${PROJECT_BINARY_DIR}/freetype-config-version.cmake
+    DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/freetype
+    COMPONENT headers)
 endif ()
 
 
@@ -480,9 +566,9 @@
 
 if (WIN32)
   set(CPACK_GENERATOR ZIP)
-else()
+else ()
   set(CPACK_GENERATOR TGZ)
-endif()
+endif ()
 
 set(CPACK_COMPONENT_LIBRARIES_DISPLAY_NAME "Libraries")
 set(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C/C++ Headers")
diff --git a/ChangeLog b/ChangeLog
index 806b835..42f7c34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,544 +1,1960 @@
-2018-05-01  Werner Lemberg  <wl@gnu.org>
+2020-10-20  Werner Lemberg  <wl@gnu.org>
 
-	* Version 2.9.1 released.
-	=========================
+	* Version 2.10.4 released.
+	==========================
 
 
-	Tag sources with `VER-2-9-1'.
+	Tag sources with `VER-2-10-4'.
 
-	* docs/VERSION.TXT: Add entry for version 2.9.1.
+	* docs/VERSION.TXT: Add entry for version 2.10.4.
 	* docs/CHANGES: Updated.
 
-	* README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
-	src/base/ftver.rc, 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,
+	* README, src/base/ftver.rc, builds/windows/vc2010/index.html,
 	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.9/2.9.1/, s/29/291/.
+	builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
+	s/2.10.3/2.10.4/, s/2103/2104/.
 
-	* include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+	* include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
 
-	* builds/unix/configure.raw (version_info): Set to 22:1:16.
-	* CMakeLists.txt (VERSION_PATCH): Set to 1.
+	* builds/unix/configure.raw (version_info): Set to 23:4:17.
+	* CMakeLists.txt (VERSION_PATCH): Set to 4.
 
-	* include/freetype/ftgasp.h: Use FT_BEGIN_HEADER and FT_END_HEADER.
+2020-10-19  Werner Lemberg  <wl@gnu.org>
 
-2018-04-26  Werner Lemberg  <wl@gnu.org>
+	[sfnt] Fix heap buffer overflow (#59308).
 
-	Another fix for handling invalid format 2 cmaps.
+	This is CVE-2020-15999.
 
-	Sigh.
+	* src/sfnt/pngshim.c (Load_SBit_Png): Test bitmap size earlier.
 
-	Reported as
+2020-10-17  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8003
+	* src/sfnt/tt{colr,cpal}.c: Fix signedness warnings from VC++.
 
-	* src/sfnt/ttcmap.c (tt_cmap2_char_next): Adjust condition to avoid
-	an endless loop.
+2020-10-17  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-2018-04-24  Ben Wagner  <bungeman@google.com>
+	* src/sfnt/sfwoff2.c (Read255UShort): Tweak types to please VC++.
 
-	[base] Avoid undefined behaviour in lcd filtering code (#53727).
+2020-10-10  Werner Lemberg  <wl@gnu.org>
 
-	* src/base/ftlcdfil.c (ft_lcd_filter_fir, _ft_lcd_filter_legacy):
-	Ensure `height > 0'.
+	* Version 2.10.3 released.
+	==========================
 
-2018-04-22  Werner Lemberg  <wl@gnu.org>
 
-	* src/base/ftoutln.c (FT_Outline_Decompose): Improve error tracing.
+	Tag sources with `VER-2-10-3'.
 
-2018-04-22  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	* docs/VERSION.TXT: Add entry for version 2.10.3.
 
-	[base] Fix bitmap emboldening.
+	* README, src/base/ftver.rc, builds/windows/vc2010/index.html,
+	builds/windows/visualc/index.html,
+	builds/windows/visualce/index.html,
+	builds/wince/vc2005-ce/index.html,
+	builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
+	s/2.10.2/2.10.3/, s/2102/2103/.
 
-	Bug introduced after release 2.8.
+	* include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
 
-	* src/base/ftbitmap.c (ft_bitmap_assure_buffer): We use
-	`FT_QALLOC_MULT', which doesn't zero out the buffer.  Adjust the
-	bitmap copying code to take care of this fact.
+	* builds/unix/configure.raw (version_info): Set to 23:3:17.
+	* CMakeLists.txt (VERSION_PATCH): Set to 3.
 
-2018-04-22  Werner Lemberg  <wl@gnu.org>
+2020-09-25  Werner Lemberg  <wl@gnu.org>
 
-	Another fix for handling invalid format 2 cmaps.
+	[autofit] Synchronize with ttfautohint.
 
-	The previous commit was incomplete.
+	This corresponds to the following commits in the ttfautohint git
+	repository:
 
-	Reported as
+	  bb6842bd3bd437b7b4a7921b0376c860f5e73d18  Typo, formatting.
+	  d5c91ddb1cb310257a3dfe9a8e20e1fc51335faa  Add Medefaidrin script.
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7928
-
-	* src/sfnt/ttcmap.c (tt_cmap2_char_next): Adjust condition to avoid
-	an endless loop.
-
-2018-04-19  Werner Lemberg  <wl@gnu.org
-
-	[autofit] Add support for Georgian Mtavruli characters.
-
-	This will be part of the forthcoming Unicode 11.0.
-
-	* src/autofit/afblue.dat: Add blue zone data for Mtavruli.
+	* src/autofit/afblue.dat: Add blue zone data for Medefaidrin.
 	* src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
 
-	* src/autofit/afscript.h: Add Mtavruli standard character.
+	* src/autofit/afscript.h: Add Medefaidrin standard characters.
 
-2018-04-18  Werner Lemberg  <wl@gnu.org>
+	* src/autofit/afranges.c, src/autofit/afstyles.h: Add Medefaidrin
+	data.
 
-	Fix handling of invalid format 2 cmaps.
+2020-09-25  Werner Lemberg  <wl@gnu.org>
 
-	The problem was introduced after the last release.
+	Move `scripts/make_distribution_archives.py` to `src/tools`.
+
+	* scr/tools/scripts/make_distribution_archives.py: (_TOP_DIR,
+	_SCRIPT_DIR): Updated to new location.
+	(main): s/shutils.copyfile/shutils.copy/ to preserve file
+	permissions.
+	(main): Prefix source file paths with `git_dir` while copying files
+	to allow calls of the script from other places than the top-level
+	directory.
+
+2020-09-24  Werner Lemberg  <wl@gnu.org>
+
+	* src/cff/cffgload.c (cff_slot_load): Scale `vertBearingY`.
+
+	Towards the end of the the function there is a call to
+	`FT_Outline_Get_CBox` that retrieves the glyph bbox in scaled units.
+	That sets `horiBearing{X,Y}` and `vertBearingX` but `vertBearingY`
+	is left alone, and is not scaled.
+
+	Patch from Eric Muller <emuller@amazon.com>.
+
+2020-09-24  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftobjs.c (FT_Load_Glyph): Trace glyph metrics.
+
+2020-09-22  Werner Lemberg  <wl@gnu.org>
+
+	[meson] Move auxiliary scripts to `builds/meson`.
+
+	Suggested by Alexei.
+
+	* scripts/*.py: Move meson scripts to...
+	* builds/meson/*.py: ... this new location.
+
+	* meson.build: Updated.
+
+2020-09-21  David Turner  <david@freetype.org>
+
+	Add python script for building tarballs.
+
+	* scripts/make_distribution_archives.py: New file.
+
+	This standalone Python script should be equivalent to running `make
+	dist` with the Make-based build system, with the following minor
+	differences:
+
+	- Since `make distclean` doesn't always clean up `objs/` properly,
+	  `make dist` archives may contain some stale binaries like
+	  `objs/.libs/libfreetype.so.6` or others.
+
+	- `config.guess` and `config.sub` are not updated unless option
+	  `--gnu-config-dir=DIR` is used to specify the location of these
+	  files.
+
+	- Some bits of the auto-generated reference documentation may
+	  appear in slightly different order, probably due to issues related
+	  to mkdocs and docwriter.
+
+	As an example, the call
+
+	  scripts/make_distribution_archives.py /tmp/freetype2-dist
+
+	creates the following files under `/tmp/freetype2-dist`:
+
+	  freetype-<version>.tar.gz
+	  freetype-<version>.tar.xz
+	  ft<winversion>.zip
+
+2020-09-21  Werner Lemberg  <wl@gnu.org>
+
+	* scripts/extract_freetype_version.py: Fix regex typos.
+
+2020-09-21  David Turner  <david@freetype.org>
+
+	Add Meson build project file.
+
+	Example usage:
+
+	  # Configure Meson build in directory `build-meson` to generate
+	  # release binaries comparable to to the ones from the
+	  # autotools/make build system.
+	  meson setup build-meson \
+	        --prefix=/usr/local \
+	        --buildtype=debugoptimized \
+	        --strip \
+	        -Db_ndebug=true
+
+	  # After configuring the Meson build with the above command,
+	  # compile and install to `/usr/local/`; this includes a pkg-config
+	  # file.
+	  ninja -C build-meson install
+
+	  # Alternatively, compile and install to `/tmp/aa/usr/local/...`
+	  # for packaging.
+	  DESTDIR=/tmp/aa ninja -C build-meson install
+
+	  # Generate documentation under `build-meson/docs`.
+	  ninja -C build-meson docs
+
+	Library size comparison for stripped `libfreetype.so` generated by
+	all three build systems:
+
+	  - Default build (autotools + libtool): 712 KiB
+	  - CMake build (RelWithDebInfo):        712 KiB
+	  - Meson build:                         712 KiB
+
+
+	* meson.build: New top-level Meson build file for the library.
+
+	* meson_options.txt: New file.  It holds user-selectable options for
+	the build, which can be printed with `meson configure`, and selected
+	at `meson setup` or `meson --reconfigure` time with
+	`-D<option>=<value>`.
+
+	* scripts/parse_modules_cfg.py: A script invoked by `meson.build` to
+	parse `modules.cfg` and extract important information out of it
+	(i.e., the list of modules).
+
+	* scripts/process_ftoption_h.py: New script invoked by `meson.build`
+	to process the original `ftoption.h` file.  It enables or disables
+	configuration macro variables based on the available dependencies.
+	This is similar to what other build systems are using (i.e., Meson's
+	`configure_file()` command is not used here).
+
+	* scripts/extract_freetype_version.py: New script invoked by
+	`meson.build` to extract the FreeType version number from
+	`<freetype/freetype.h>`.
+
+	* scripts/extract_libtool_version.py: New script invoked by
+	`meson.build` to extract the libtool `revision_info` data from
+	`builds/unix/configure.raw`, and to generate the corresponding
+	shared library suffix.
+
+	* scripts/generate_reference_docs.py: New script invoked by
+	`meson.build` to generate the FreeType 2 reference documentation
+	(using the `docwriter` and `mkdocs` packages, which must be already
+	installed).
+
+2020-09-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[raster] Improve the second pass (#58373).
+
+	Besides dropout control the second horizontal sweep is supposed to
+	clean up straight horizontal edges that are mishandled by the first
+	vertical sweep when a line passes through pixel centers.  This line
+	would present as perfectly aligned span edges in the second sweep.
+
+	* src/raster/ftraster.c (Horizontal_Sweep_Span): Replace the old
+	implementation with a better one focusing on aligned span edges only.
+
+2020-09-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[raster] Tune SMART macro (#58352).
+
+	Windows seems to perform smart dropout control at 26.6 precision.
+	To mimick Windows independent of increased precision, we need to tweak
+	the macro so that some close calls break down rather than up.
+
+	* src/raster/ftraster.c (SMART): Tweak the macro.
+
+2020-09-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[raster] Introduce SMART macro.
+
+	* src/raster/ftraster.c (SMART): New macro for smart dropout rounding.
+	(Verstical_Sweep_Drop, Horizontal_Sweep_Drop): Use it.
+
+2020-09-03  Boris Dalstein  <dalboris@gmail.com>
+
+	[build] Make CMake install basic version information.
+
+	* CMakeLists.txt: Do it.
+
+2020-09-02  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[truetype] Reduce Infinality footprint (cont'd).
+
+	* src/truetype/ttinterp.c (Ins_DELTAP): Shrink variable scope.
+	(Ins_SHPIX, Ins_MIRP): Revise if-logic.
+
+2020-09-02  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[truetype] Reduce Infinality footprint.
+
+	* src/truetype/ttinterp.c (Ins_SHPIX, Ins_MSIRP, Ins_MIAP, Ins_MDRP,
+	Ins_MIRP): Shrink variable scopes and consolidate ifdefs.
+
+2020-09-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[truetype] Refactor compensation color.
+
+	* src/truetype/ttinterp.h (TT_Round_Func): Change the last argument.
+	* src/truetype/ttinterp.c (Ins_ROUND, Ins_NROUND, Ins_MDAP, Ins_MIAP,
+	Ins_MDRP, Ins_MIRP): Move compensation retrieval from here...
+	(Round_*): ... to here.
+	* src/truetype/ttobjs.c (tt_size_init_bytecode): Reserve zero
+	compensation at color index 3.
+
+2020-08-28  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Don't set target in direct mode.
+
+	* src/smooth/ftsmooth.c (ft_smooth_raster_overlap): Remove assignment.
+	(ft_smooth_raster_lcd) [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Ditto.
+
+2020-08-25  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/smooth/ftsmooth.c (ft_smooth_raster_overlap): Limit width.
+
+	Segmentation fault reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24729
+
+2020-08-22  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgload.c (TT_Get_VMetrics): Add tracing message.
+
+2020-08-05  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[truetype] Retain OVERLAP_SIMPLE and OVERLAP_COMPOUND.
+
+	For glyphs with OVERLAP_SIMPLE or OVERLAP_COMPOUND, set
+	FT_OUTLINE_OVERLAP to render them with direct oversampling, which
+	mitigates artifacts (see 3bb512bc9f62).
+
+	* include/freetype/ftimage.h (FT_OUTLINE_OVERLAP): Redefine to rhyme
+	with OVERLAP_SIMPLE.
+	* src/base/ftgloadr.c (FT_GlyphLoader_Rewind): Reset outline flags.
+	* src/truetype/ttgload.c
+	(TT_Load_Simple_Glyph): Retain OVERLAP_SIMPLE.
+	(load_truetype_glyph): Retain OVERLAP_COMPOUND.
+
+2020-08-04  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/truetype/ttgload.c (TT_Load_Glyph): More tracing.
+
+2020-07-28  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	Hide internal functions with SunPro.
+
+	* include/freetype/internal/compiler-macros.h
+	(FT_INTERNAL_FUNCTION_ATTRIBUTE) <__SUNPRO_C>: Define as __hidden.
+
+2020-07-28  Anuj Verma  <anujv@iitbhilai.ac.in>
+
+	Fix static compilation with Visual C.
+
+	* include/freetype/internal/compiler-macros.h
+	(FT_INTERNAL_FUNCTION_ATTRIBUTE) <_WIN32>: Define as empty.
+
+2020-07-28  Priyesh Kumar  <priyeshkkumar@gmail.com>
+
+	Fix `-Wformat' compiler warnings.
+
+	* src/*: Fix format specifiers.
+
+	* builds/unix/ftsystem.c (FT_Stream_Open): Ditto.
+
+2020-07-25  Werner Lemberg  <wl@gnu.org>
+
+	Fix `-Wformat' compiler warnings.
+
+	Problem reported by Priyesh kumar <priyeshkkumar@gmail.com>
+
+	* src/base/ftoutln.c (FT_Outline_Decompose): Fix number of arguments
+	to tracing macro.
+
+	* src/bdf/bdfdrivr.c (bdf_cmap_char_next, bdf_get_bdf_property):
+	Ditto.
+
+	* src/cache/ftcbasic.c (ftc_basic_family_get_count): Ditto.
+	Reformulate message.
+
+	* src/pcf/pcfdrivr.c (pcf_get_bdf_property): Ditto.
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Ditto.
+	Trace table offset, too.
+
+	* src/truetype/ttgxvar.c (ft_var_apply_tuple): Ditto.
+
+2020-07-23  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2.c (woff2_decompress): Fix compiler warning.
+
+	Reported by Hin-Tak.
+
+2020-07-12  Werner Lemberg  <wl@gnu.org>
+
+	* builds/unix/configure.raw: Fix inclusion of `ftoption.h'.
+
+2020-07-07  Werner Lemberg  <wl@gnu.org>
+
+	Fix clang warnings.
+
+	* include/freetype/internal/autohint.h
+	(FT_DECLARE_AUTOHINTER_INTERFACE): New macro.
+	* src/autofit/afmodule.h: Use it to declare
+	`af_autofitter_interface'.
+
+	* include/freetype/internal/ftobjs.h (FT_DECLARE_GLYPH): New macro.
+	* src/base/ftbase.h: Use it to declare `ft_bitmap_glyph_class' and
+	`ft_outline_glyph_class'.
+
+	* src/base/ftglyph.c: Include `ftbase.h'.
+
+	* src/cff/cffparse.c (cff_parser_run): Fix type of `t2_size'.
+
+	* src/pcf/pcfdrivr.c (pcf_cmap_char_next): Fix type of `result'.
+
+	* src/psaux/psauxmod.c (psaux_module_class): Use `FT_DEFINE_MODULE'.
+	* src/psaux/psauxmod.h: Declare `afm_parser_funcs',
+	`t1_cmap_classes', `cff_decoder_funcs', and `psaux_module_class'.
+
+	* src/pshinter/pshmod.c: Include `pshmod.h'.
+
+	* src/sfnt/sfwoff2.c (ROUND4, WRITE_SHORT): Fix implicit sign
+	conversion.
+	(compute_ULong_sum): Fix return type.
+	Fix implicit sign conversion.
+	(store_points): Fix type of `last_flag', `repeat_count', and `flag'.
+	Use casts to avoid warnings.
+	(reconstruct_glyf): Fix implicit sign conversion.
+	Use cast to avoid warning.
+	(get_x_mins): Fix implicit sign conversion.
+	* src/sfnt/ttcmap.c: Undef `TTCMAPCITEM'.
+	* src/sfnt/ttcmap.h: Define `TTCMAPCITEM' and include `ttcmapc.h' to
+	declare cmap classes.
+
+	* src/smooth/ftsmooth.c (ft_smooth_overlap_spans): Use cast.
+
+	* src/truetype/ttinterp.c (Ins_MIAP): Fix typo.
+
+2020-07-07  David Turner  <david@freetype.org>
+
+	[build] Really fix multi and C++ builds.
+
+	The following builds were still failing due to previous changes:
+
+	  make multi
+	  make multi CC="c++"
+	  make CC="c++"
+
+	This patch fixes the issues, which were missing includes to get the
+	right macro definitions in multi-build mode.
+
+	Also, `FT_UNUSED' is actually used by third-party code, so move it
+	back to `public-macros.h' to avoid breaking it.
+
+	* include/freetype/config/public-macros.h (FT_EXPORT): Remove
+	special definition for C++.
+	(FT_UNUSED): Define here instead of...
+	* include/freetype/config/compiler-macros.h: ... here.
+	(FT_FUNCTION_DECLARATION): Remove special definition for C++.
+	(FT_LOCAL_ARRAY_DEF): Fix definition.
+
+	* src/cache/ftccback.h, src/lzw/ftzopen.h, src/gxvalid/gxvmort.h,
+	src/gxvalid/gxvmorx.h: Add `FT_BEGIN_HEADER' and `FT_END_HEADER'.
+
+2020-07-06  David Turner  <david@freetype.org>
+
+	[build] Fix multi and C++ builds.
+
+	The following builds were failing due to previous changes:
+
+	  make multi
+	  make multi CC="c++"
+
+	* include/freetype/config/ftconfig.h: Remove `FT_END_HEADER'.
+
+	* include/freetype/config/ftheader.h (FT_BEGIN_HEADER,
+	FT_END_HEADER): Protect against redefinition.
+
+	* src/cache/ftccache.h, src/cache/ftcmru.h, src/pcf/pcfutil.h,
+	src/psaux/pserror.h, src/psaux/psft.h, src/psaux/psstack.h,
+	src/sfnt/woff2tags.h: Include `compiler-macros.h'.
+
+	* src/sfnt/woff2tags.c: Include `woff2tags.h'.
+
+2020-07-06  Werner Lemberg  <wl@gnu.org>
+
+	[psaux] Improve `t1_decoder_parse_metrics' (#58646).
+
+	* src/psaux/t1decode.c (t1_decoder_parse_metrics): Copy
+	corresponding code from old engine's `t1_decoder_parse_charstrings'
+	function to handle `op_callsubr' and `op_return'.
+
+2020-07-05  David Turner  <david@freetype.org>
+
+	[build] Improve visibility support of library function names.
+
+	* include/freetype/config/public-macros.h
+	(FT_PUBLIC_FUNCTION_ATTRIBUTE): New macro to tag functions as
+	public (and thus exportable).
+	(FT_EXPORT): Use it.
+
+	* include/freetype/config/compiler-macros.h
+	(FT_INTERNAL_FUNCTION_ATTRIBUTE): New macro to tag functions as
+	internal to the library (and thus hidden).  Note that on ELF
+	systems, all internal functions have hidden visibility, which avoids
+	the need to enforce this when invoking the compiler (e.g., with an
+	option like `-fvisibility=hidden').
+
+	(FT_FUNCTION_DECLARATION, FT_FUNCTION_DEFINITION): New base macros
+	to deal with C and C++ linkage issues at the same time.
+
+	(FT_LOCAL, FT_LOCAL_DEF, FT_LOCAL_ARRAY, FT_LOCAL_ARRAY_DEF,
+	FT_BASE, FT_BASE_DEF, FT_EXPORT_VAR, FT_BASE_CALLBACK,
+	FT_BASE_CALLBACK_DEF): Redefined using new macros.
+
+2020-07-05  David Turner  <david@freetype.org>
+
+	[build] Split off more stuff from `ftconfig.h'.
+
+	* builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
+	include/freetype/config/ftconfig.h: Split off macro definitions
+	required by the FreeType API headers to...
+	* include/freetype/config/public-macros.h: ...this new file.
+
+	* builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
+	include/freetype/config/ftconfig.h: Split off macro definitions used
+	by the library but not to be exposed to clients to...
+	* include/freetype/config/compiler-macros.h: ...this new file.
+
+	* include/freetype/internal/*.h, src/raster/ftraster.h: Include
+	`compiler-macros.h' where needed.
+
+2020-07-05  David Turner  <david@freetype.org>
+
+	[build] Move mac support code to `mac-support.h'.
+
+	* builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
+	include/freetype/config/ftconfig.h: Split off mac-specific stuff
+	to...
+	* include/freetype/config/mac-support.h: ...this new file.
+
+	* CMakeLists.txt, builds/unix/configure.raw: Remove `/undef ->
+	#undef' string replacement; the affected code is no longer part of
+	the `ftconfig.h' template.
+
+2020-07-05  David Turner  <david@freetype.org>
+
+	[build] Put integer type definitions into `integer-types.h'.
+
+	Refactor some of the `ftconfig.h' headers and template to move the
+	definition of the FreeType integer types (e.g., `FT_Int16') to a
+	common header file `freetype/config/integer-types.h'.
+
+	* builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
+	include/freetype/config/ftconfig.h: Split off integer type
+	definition stuff to...
+	* include/freetype/config/integer-types.h: ...this new file.
+
+	* builds/unix/ftconfig.h.in: Control the definition of
+	`FT_SIZEOF_INT' and `FT_SIZEOF_LONG' with macro
+	`FT_USE_AUTOCONF_SIZEOF_TYPES'.  If these are not defined, auto
+	detection happens in `integer-types.h' as usual based on `INTXX_MAX'
+	values.  Otherwise the autoconf-detected values are used.
+
+	* builds/unix/configure.raw (CPPFLAGS): Don't include path to
+	`config' directory.  Instead, ...
+	(FT_CONFIG_STANDARD_LIBRARY_H): Use complete path.
+
+2020-07-05  David Turner  <david@freetype.org>
+
+	[build] Rename `build/unix/ftconfig.in' to `ftconfig.h.in'.
+
+	Since we are no longer limited to 8.3 file names, it is simpler to
+	follow the usual conventions for template files.
+
+	* builds/unix/ftconfig.in: Renamed to...
+	* builds/unix/ftconfig.h.in: ...this.
+
+	* CMakeLists.txt, builds/unix/configure.raw: Updated.
+
+2020-07-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Introduce direct oversampling for overlaps.
+
+	This implements oversampling to mitigate artifacts in pixels partially
+	covered by overlapping contours.  It turns out that the 4x4
+	oversampling is sufficient but, at least, quadruples the rendering
+	time.  The outline has to set FT_OUTLINE_OVERLAP to use this method.
+
+	* include/freetype/ftimage.h (FT_OUTLINE_OVERLAP): New flag.
+	* src/smooth/ftsmooth.c (ft_smooth_render): Check it to...
+	(ft_smooth_raster_overlap): ... inflate outline and set up direct
+	rendering for oversampling with...
+	(ft_smooth_overlap_spans): ... new span function that integrates them.
+
+2020-07-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Use direct rendering mode in Harmony.
+
+	Instead of rendering 3 bitmaps side by side and reshuffling, we use
+	direct rendering to deliver the bitmaps on each third byte.
+
+	* src/smooth/ftsmooth.c (ft_smooth_raster_lcd)
+	[!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Set up direct mode with...
+	(ft_smooth_lcd_spans): ... new span function.
+
+2020-07-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Separate LCD paths from gray rendering.
+
+	This makes `ft_smooth_render' a lot smaller and easier to follow. It
+	also cleanly separates Harmony and ClearType-style LCD rendering
+	algorithms. Now I only wish to move LCD filtering and geometry from
+	FT_Library to FT_Renderer.
+
+	* src/smooth/ftsmooth.c (ft_smooth_render): Move LCD code from here...
+	(ft_smooth_raster_lcd, ft_smooth_raster_lcdv): ... to here.
+	[FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Reorganize #ifdef's.
+
+2020-06-20  Sebastian Rasmussen  <sebras@gmail.com>
+
+	[cff] Fix handling of `style_name == NULL' (#58630).
+
+	* src/cff/cffobjs.c (cff_face_init): If a call to `cff_strcpy' fails
+	by returning NULL in `cff_face_init', `remove_style' is still
+	called.  This means that the NULL pointer is dereferenced, causing a
+	crash.
+
+2020-06-19  Sebastian Rasmussen  <sebras@gmail.com>
+
+	[cff] Fix another two memory leaks (#58629).
+
+	* src/cff/cffobjs.c (cff_size_init): If a call to `funcs->create'
+	fails to allocate one of the `internal->subfont' variables, make
+	sure to free `internal->topfont' and any successfully allocated
+	subfonts.
+
+2020-06-19  Sebastian Rasmussen  <sebras@gmail.com>
+
+	[psaux] Fix memory leak (#58626).
+
+	* src/psaux/psstack.c (cf2_stack_init): If `cf2_stack_init' fails to
+	allocate the stack, return error early.
+
+2020-06-19  Sebastian Rasmussen  <sebras@gmail.com>
+
+	[base] Fix memory leak (#58624).
+
+	* src/base/ftobjs.c (FT_New_Size): Avoid trying to free
+	`size->internal' unless `size' has been allocated.  This mistake
+	appeared in the fix for issue #58611.
+
+2020-06-19  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[base] Rework d1180b5f9598 until further notice.
+
+	* src/base/ftoutln.c (FT_Outline_Get_Orientation): Reject large
+	outlines.
+
+2020-06-19  Sebastian Rasmussen  <sebras@gmail.com>
+
+	[cff, cid] Fix segfaults in case of error (#58621).
+
+	* src/cff/cffobjs.c (cff_slot_done), src/cid/cidobjs.c
+	(cid_slot_done): If `ft_glyphslot_init' fails to allocate
+	`internal', then the class' `done_slot' callback (called by
+	`ft_glyphslot_done') must not dereference the pointer to `internal'.
+
+2020-06-19  Werner Lemberg  <wl@gnu.org>
+
+	[base] Fix UBSAN error.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7828
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23166
 
-	* src/sfnt/ttcmap.c (tt_cmap2_char_next): Avoid endless loop.
+	* src/base/ftoutln.c (FT_Outline_Get_Orientation): Avoid values
+	larger than 32 bits.
 
-2018-04-17  Werner Lemberg  <wl@gnu.org>
+2020-06-19  Werner Lemberg  <wl@gnu.org>
 
-	[truetype] Integer overflow issues.
+	[woff2] Fix segfault.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7739
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23402
 
-	* src/truetype/ttinterp.c (Ins_CEILING): Use FT_PIX_CEIL_LONG.
+	* src/sfnt/sfwoff2.c (get_x_mins): Check whether `loca' table
+	exists.
 
-2018-04-16  Werner Lemberg  <wl@gnu.org>
+2020-06-19  Stephen McDowell  <svenevs.dev@gmail.com>
 
-	[truetype] Integer overflow issues.
+	[sfnt] Support Intel compilers.
 
-	Reported as
+	* src/sfnt/pngshim.c (premultiply_data): Intel compilers do not
+	currently support `__builtin_shuffle'.
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7718
+2020-06-19  Sebastian Rasmussen  <sebras@gmail.com>
 
-	* src/truetype/ttinterp.c (Ins_MIRP): Use ADD_LONG.
+	[base] Fix memory leak (#58611).
 
-2018-04-15  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	* src/base/ftobjs.c (FT_New_Size): When the call to `clazz->init_size'
+	fails, make sure to free `size->internal'.
 
-	[build] Use `info' function of make 3.81.
+2020-06-19  Sebastian Rasmussen  <sebras@gmail.com>
 
-	* configure, docs/INSTALL, docs/INSTALL.CROSS, docs/INSTALL.GNU,
-	docs/INSTALL.UNIX, docs/MAKEPP: Bump make version requirements.
+	[cff] Fix memory leak (#58610).
 
-	* builds/detect.mk (std_setup): Replace `echo' with `info'.
-	(dos_setup): Removed.
-	* builds/unix/install.mk, builds/modules.mk, builds/dos/detect.mk,
-	builds/windows/detect.mk, builds/os2/detect.mk: Updated.
-	* builds/newline: No longer needed.
+	* src/cff/cffobjs.c (cff_size_init): When the call to
+	`funcs->create' fails, make sure to free `internal'.
 
-2018-04-15  Werner Lemberg  <wl@gnu.org>
+2020-06-19  Werner Lemberg  <wl@gnu.org>
 
-	[truetype]: Limit `SLOOP' bytecode argument to 16 bits.
+	* src/cff/cffload.c (cff_index_get_pointers): Rename `t' to `tbl'.
 
-	This fixes
+2020-06-19  Sebastian Rasmussen  <sebras@gmail.com>
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7707
+	[cff] Free table upon error allocating other data (#58609).
 
-	* src/truetype/ttinterp.c (Ins_SLOOP): Do it.
+	* src/cff/cffload.c (cff_index_get_pointers): When new_bytes fails
+	to allocate, make sure to free the table.  Do the same for both
+	allocations if there is a later error.
 
-2018-04-14  Werner Lemberg  <wl@gnu.org>
+2020-06-13  Werner Lemberg  <wl@gnu.org>
 
-	[truetype] Integer overflow issues.
+	Remove redundant inclusion of `ft2build.h'.
 
-	Reported as
+	* */*: Remove `#include <ft2build.h>' where possible.
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7652
+	* include/freetype/freetype.h: Remove cpp error about missing
+	inclusion of `ft2build.h'.
 
-	* src/truetype/ttinterp.c (Ins_MDAP): Use SUB_LONG.
+2020-06-08  David Turner  <david@freetype.org>
 
-2018-04-14  Werner Lemberg  <wl@gnu.org>
+	Make macros for header file names optional.
 
-	[autofit] Update to Unicode 11.0.0.
+	We no longer have to take care of the 8.3 file name limit; this
+	allows us (a) to introduce longer, meaningful file names, and (b) to
+	avoid macro names in `#include' lines altogether since some
+	compilers (most notably Visual C++) doesn't support this properly.
 
-	But no support new scripts (volunteers welcomed).
+	*/*: Replace
 
-	* src/autofit/afranges.c (af_arab_nonbase_uniranges,
-	af_beng_nonbase_uniranges, af_cakm_nonbase_uniranges,
-	af_deva_nonbase_uniranges, af_geor_uniranges,
-	af_gujr_nonbase_uniranges, af_mlym_nonbase_uniranges,
-	af_nkoo_nonbase_uniranges, af_telu_nonbase_uniranges,
-	af_hani_uniranges): Add new data.
+	   #include FOO_H
 
-2018-04-10  Nikolaus Waxweiler  <madigens@gmail.com>
+	with
 
-	* CMakeLists.txt, builds/cmake/FindHarfBuzz.cmake: Extensive
-	modernization measures.
+	   #include <freetype/foo.h>
 
-	This brings up the minimum required CMake version to 2.8.12.
+	or something similar.  Also update the documentation.
 
-	The installation paths follow the GNU defaults now, e.g. installing on a
-	64 bit host will place binaries into the lib64/ folder on e.g. Fedora.
+2020-06-02  Werner Lemberg  <wl@gnu.org>
 
-	Symbols are hidden by default (e.g. `-fvisibility=hidden' on GCC).
+	* src/sfnt/ttcmap.c (tt_face_build_cmaps): Trace number of cmaps.
 
-	CMake will no longer look for a C++ compiler.
+2020-05-18  David Turner  <david@freetype.org>
 
-	Library and .so version now match the Autotools build.
+	Remove obsolete HAVE_STDINT_H probing macro.
 
-	Comments in the build file and informational messages now use platform
-	agnostic example commands.
+	This macro was updated by the unix configure script and the
+	`CMakeLists.txt' one, but is never used in the source tree (nor is
+	<stdint.h> included anywhere).
 
-	ftoption.h and ftconfig.h are written directly without a redundant `-new'
-	copy.
+	* CMakeLists.txt, builds/unix/ftconfig.in: Don't handle
+	`HAVE_STDINT_H'.
 
-	External dependencies are expressed as option()s and will turn up as such
-	in cmake-gui.
+2020-05-18  David Turner  <david@freetype.org>
 
-	Internal: Properties such as dependencies and include directories are now
-	privately set on the freetype library instead of globally.
+	Remove Jamfile files from the tree.
 
-	The CPack definitions have been cleaned up, the `make dist' has been
-	removed. Source packages generated with CPack don't contain Autotools
-	files and aren't used by the maintainters anyway.
+	These have not been used in a very, very long time, so better remove
+	them.  A corresponding patch will be submitted to the
+	`freetype2-demos' repository.
 
-	On Windows, src/base/ftver.rc is compiled to decorate the library with
-	version and copyright information.
+	* src/Jamfile, src/*/Jamfile, Jamrules: Delete.
 
-	A pkg-config file is now generated and installed.
+2020-05-12  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-2018-04-09  Werner Lemberg  <wl@gnu.org>
+	[smooth] Turn on LCD filtering during FreeType initialization.
 
-	[truetype] Integer overflow issues.
+	* src/smooth/ftsmooth.c (ft_smooth_init): Enable LCD filtering.
 
-	Reported as
+	* include/freetype/ftlcdfil.h: Document it, remove patent warnings.
+	* include/freetype/freetype.h (FT_Render_Mode): Updated.
+	* include/freetype/config/ftoption.h, devel/ftoption.h
+	[FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Do not mention patents.
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7453
+2020-05-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* src/truetype/ttinterp.c (Round_Super, Round_Super_45): Use
-	ADD_LONG and SUB_LONG.
+	[smooth] Stop using dedicated LCD modules and classes.
 
-2018-04-06  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	The LCD modules were never truly independent. They mostly served as
+	a way to disable patented LCD rendering, which is no longer necessary.
+	The `smooth' module now handles LCD modes as well.
 
-	[windows, wince] Clean up legacy project files.
+	* src/smooth/ftsmooth.c (ft_smooth_lcd_renderer_class.
+	ft_smooth_lcdv_renderer_class): Deleted.
+	(ft_render_smooth): Reworked from `ft_render_smooth_generic'.
+	* src/smooth/ftsmooth.h: Remove dedicated LCD classes.
+	* src/smooth/module.mk: Remove dedicated LCD modules.
+	* include/freetype/config/ftmodule.h: Ditto.
+	* builds/amiga/include/config/ftmodule.h: Ditto.
+	* include/freetype/ftmodapi.h: Do not mention LCD modules.
+
+2020-05-09  Werner Lemberg  <wl@gnu.org>
+
+	* Version 2.10.2 released.
+	==========================
+
+
+	Tag sources with `VER-2-10-2'.
+
+	* docs/VERSION.TXT: Add entry for version 2.10.2.
+
+	* README, Jamfile (RefDoc), src/base/ftver.rc,
+	builds/windows/vc2010/index.html, builds/windows/visualc/index.html,
+	builds/windows/visualce/index.html,
+	builds/wince/vc2005-ce/index.html,
+	builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
+	s/2.10.1/2.10.2/, s/2101/2102/.
+
+	* include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
+
+	* builds/unix/configure.raw (version_info): Set to 23:2:17.
+	* CMakeLists.txt (VERSION_PATCH): Set to 2.
+
+	* docs/CHANGES: Updated.
+
+2020-05-08  Jakub Alba  <jalba@vewd.com>
+
+	* src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#58319).
+
+	The font that exceeds the old limit is Icono Regular, version
+	1.00000.
+
+2020-05-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* builds/freetype.mk: Refactor for readability.
+
+2020-05-02  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[builds] Clean up Windows CE project files.
+
+	Remove version from filenames that caused a lot of polution in the
+	release process. Use VERSIONINFO resource instead.
 
 	* builds/wince/vc2005-ce/freetype.vcproj,
 	builds/wince/vc2008-ce/freetype.vcproj,
-	builds/windows/vc2005/freetype.vcproj,
-	builds/windows/vc2008/freetype.vcproj,
 	builds/windows/visualce/freetype.vcproj,
-	builds/windows/visualce/freetype.dsp,
-	builds/windows/visualc/freetype.vcproj,
-	builds/windows/visualc/freetype.dsp: Remove per-file compile flags.
+	builds/windows/visualce/freetype.dsp: s/2101//g, but add `ftver.rc'.
+	* builds/wince/vc2008-ce/index.html,
+	builds/wince/vc2005-ce/index.html,
+	builds/windows/visualce/index.html: s/2101//g.
 
-2018-04-04  Werner Lemberg  <wl@gnu.org>
+2020-05-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	[cff, type1] Sanitize `BlueFuzz' and `BlueShift'.
+	* devel/ft2build.h: Override FT_CONFIG_MODULES_H here as well.
+
+2020-05-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[builds/unix] Consolidate marco overrides (for the demos to see them).
+
+	* builds/unix/unix-cc.in (FT_CONFIG_MODULES_H, FT_CONFIG_OPTIONS_H):
+	Override them here...
+	* builds/freetype.mk: ... instead of here.
+
+2020-04-08  Werner Lemberg  <wl@gnu.org>
+
+	Allow setting `CC' in Unix build (#58051).
+
+	* builds/unix/unix-cc.in (CC): Use `override'.  The command line
+	  value of `CC' (if any) is stored already in `CCraw'.
+
+2020-04-04  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Return if single stream operation fails.
+
+	* src/sfnt/sfwoff2.c (get_x_mins): Do it.
+
+	* src/sfnt/woff2tags.c: Remove unused include.
+
+2020-03-22  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[docs] Fix building docs if `srcdir' != `builddir'.
+
+	`docs/reference/*' was moved one directory up in commit 237fed6.
+
+	* builds/unix/unix-def.in (PIP): Remove variable.
+
+	* configure: Create `docs' directory and copy assets from
+	`docs/markdown'.
+
+	* docs/README: Output directory is `reference'.
+
+2020-03-21  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[docwriter] Drop support for Python < 3.5.
+
+	Python versions < 3.5 have reached end-of-life and as such, no
+	security or bug fixes will be provided for those versions.  See
+
+	  https://devguide.python.org/#status-of-python-branches
+	
+	for more information.
+
+	* Jamfile (RefDoc): Add `site' parameter.
+
+	* builds/detect.mk (std_setup): Update Python version requirement.
+
+	* builds/freetype.mk (refdoc-venv): Use pip as `python -m pip'.
+
+	* builds/unix/ax_compare_version.m4,
+	builds/unix/ax_prog_python_version.m4: Macros to detect Python
+	version.  New files.
+
+	* builds/unix/configure.raw: Check for Python >= 3.5 and remove
+	check for `pip'.
+
+	* docs/CHANGES, docs/INSTALL.GNU, docs/README: Updated.
+
+2020-03-02  Moazin Khatti  <moazinkhatri@gmail.com>
+
+	[gzip] Support `gzip' encoded header conditionally.
+
+	In order to support `gzip' encoded header the call to
+	`inflateInit2' was modified in commit 6a92b1fadde26477a9179.
+	However, this code breaks with the outdated internal version
+	of zlib.  This is a temporary fix to conditionally support
+	`gzip' encoded header whenever a system installation of zlib
+	is being used.
+
+	Problem report in
+
+	  https://lists.nongnu.org/archive/html/freetype-devel/2020-02/msg00023.html
+
+	* src/gzip/ftgzip.c (FT_Gzip_Uncompress): Change the the call to
+	`inflateInit2' depending on whether the system installation is
+	being used or the internal copy.
+
+2020-02-29  Ben Wagner  <bungeman@google.com>
+
+	[truetype] Fix state of `FT_Face' for buggy `gvar' tables (#57923).
+
+	By resetting the blend as implemented with this commit fonts with
+	invalid `gvar' tables may keep calling into `ft_var_load_gvar' from
+	`tt_set_mm_blend' and failing, but the font was invalid anyway and
+	we want to keep seeing the failure in `tt_set_mm_blend'.
+
+	* src/truetype/ttgxvar.c (ft_var_load_gvar): Calculate length of
+	offset array once.
+	Allocate arrays after `FT_FRAME_ENTER' (extra check before
+	allocating and avoid needing to free array later if error entering
+	frame).
+	Always call `FT_FRAME_EXIT'.
+	Consistently set counts immediately after array initialized.
+	Reset the blend (particularly `blend->glyphoffsets') on failure.
+
+2020-03-01  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[docs] Update docwriter stylesheet.
+
+	This change is required to support docwriter 1.2.1.
+
+	See
+
+	  https://github.com/freetype/docwriter/issues/36
+
+	for more information.
+
+	* docs/markdown/stylesheets/extra.css:
+	(.md-typeset code) -> (.md-typeset pre>code)
+	(pre) -> (pre>code)
+	(p, .md-typeset p, h4): Remove commented styles.
+	(table.index): Remove unused styles.
+
+2020-02-28  Ben Wagner  <bungeman@google.com>
+
+	[truetype] Add better checks for loading `gvar' table (#57905).
+
+	* src/truetype/ttgxvar.c (ft_var_load_gvar): Delay settings of any
+	`blend->xxxcount' values until the corresponding data has been
+	checked.
+	Also do some sanitizing to avoid a too early exit.
+
+	(TT_Vary_Apply_Glyph_Deltas): Improve tracing message.
+
+2020-02-27  Werner Lemberg  <wl@gnu.org>
+
+	Make `FT_HAS_*' and `FT_IS_*' really return true (#57906).
+
+	* include/freetype/freetype.h (FT_HAS_*, FT_IS_*): Implement it.
+
+2020-02-25  Dominik Röttsches  <drott@chromium.org>
+
+	Fix for CFF space glyph regression (#57541).
+
+	* src/psaux/psft.c (cf2_decoder_parse_substrings): Replace early-out
+	  with FT_OFFSET.
+
+2020-02-22  Werner Lemberg  <wl@gnu.org>
+
+	[woff2] Fix font table access.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7371
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=20778
 
-	* src/cff/cffload.c (cff_load_private_dict): Sanitize
-	`priv->blue_shift' and `priv->blue_fuzz' to avoid overflows later
-	on.
+	* src/sfnt/sfwoff2.c (get_x_mins): Explicitly check for presence of
+	`head' table, which might not have been processed yet.
 
-	* src/type1/t1load.c (T1_Open_Face): Ditto.
+2020-02-21  Werner Lemberg  <wl@gnu.org>
 
-2018-04-04  Ben Wagner  <bungeman@google.com>
+	[psaux] Make `t1_decoder_parse_metrics' handle `op_div' (#57519).
 
-	* src/truetype/ttobjs.c (trick_names): Add 3 tricky fonts (#53554),
-	`DFHei-Md-HK-BF', `DFKaiShu-Md-HK-BF' and `DFMing-Bd-HK-BF'.
-	(tt_check_trickyness_sfnt_ids): Add checksums for 3 tricky fonts
-	in above.
+	* src/psaux/t1decode.c (t1_decoder_parse_metrics): Copy
+	corresponding code from old engine's `t1_decoder_parse_charstrings'
+	function.
 
-2018-04-01  Werner Lemberg  <wl@gnu.org>
+2020-02-19  Nikolaus Waxweiler  <nikolaus.waxweiler@daltonmaag.com>
 
-	* builds/toplevel.mk (work): Use $(SEP).
+	[autofit] Add support for Hanifi Rohingya script.
 
-	This fixes the `make refdoc' using Cygwin: $(CAT) is `type' on this
-	platform, and this program only understands backslashes in paths.
+	* src/autofit/afblue.dat: Add blue zone data for Hanifi Rohingya.
+	* src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
 
-	Reported by Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>.
+	* src/autofit/afscript.h: Add Hanifi Rohingya standard character.
 
-2018-03-30  Werner Lemberg  <wl@gnu.org>
+	* src/autofit/afranges.c, src/autofit/afstyles.h: Add Hanifi
+	  Rohingya data.
 
-	[truetype] Fix memory leak (only if tracing is on).
+2020-02-19  Werner Lemberg  <wl@gnu.org>
 
-	* src/truetype/ttgxvar.c (TT_Get_MM_Var) [FT_DEBUG_LEVEL_TRACE}: Fix
-	it.
+	Require HarfBuzz 1.8.
 
-2018-03-23  Ben Wagner  <bungeman@google.com>
+	* builds/unix/configure.raw, CMakeLists.txt: Request HarfBuzz 1.8.0
+	or newer.
 
-	[sfnt] Correctly handle missing bitmaps in sbix format (#53404).
+	We are going to add auto-hinter support for Hanifi Rohingya, which
+	was introduced in Unicode 11.0.
 
-	* src/sfnt/ttfsbit.c (tt_face_load_sbix_image): Fix return value.
+2020-02-12  Werner Lemberg  <wl@gnu.org>
 
-2018-03-23  Ben Wagner  <bungeman@google.com>
+	* src/sfnt/ttcmap.c (tt_face_build_cmaps): Ignore version (#57708).
 
-	[truetype] Fix advance of empty glyphs in bitmap fonts (#53393).
+2020-02-04  Werner Lemberg  <wl@gnu.org>
 
-	* src/truetype/ttgload.c (TT_Load_Glyph): Apply scaling to metrics
-	for empty bitmaps.
+	* src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#57732).
 
-2018-03-22  Werner Lemberg  <wl@gnu.org>
+	The font that exceeds the old limit is Constantine, version 1.001.
 
-	Remove `ftlcdfil.c' and `ftfntfmt.c' from build files (#53415).
+2020-01-04  Werner Lemberg  <wl@gnu.org>
 
-	builds/amiga/makefile, builds/amiga/makefile.os4,
-	builds/amiga/smakefile, builds/mac/FreeType.m68k_cfm.make.txt,
-	builds/mac/FreeType.m68k_far.make.txt,
-	builds/mac/FreeType.ppc_carbon.make.txt,
-	builds/mac/FreeType.ppc_classic.make.txt,
-	builds/symbian/freetype.mmp, builds/wince/vc2005-ce/freetype.vcproj,
-	builds/wince/vc2008-ce/freetype.vcproj,
-	builds/windows/vc2005/freetype.vcproj,
-	builds/windows/vc2008/freetype.vcproj,
-	builds/windows/vc2010/freetype.vcxproj,
-	builds/windows/vc2010/freetype.vcxproj.filters,
-	builds/windows/visualc/freetype.dsp,
-	builds/windows/visualc/freetype.vcproj,
-	builds/windows/visualce/freetype.dsp,
-	builds/windows/visualce/freetype.vcproj, vms_make.com: Do it.
+	[base] Fix `FREETYPE_PROPERTIES=type1:hinting-engine=adobe`.
 
-2018-03-13  Werner Lemberg  <wl@gnu.org>
+	* src/base/ftpsprop.c (ps_property_set) [hinting-engine]: Avoid an
+	incorrect return value that caused a warning.  The function did the
+	right thing, though.
 
-	* src/sfnt/ttcmap.c (tt_cmap2_validate): Fix potential numeric
-	overflow.
+2020-01-03  Werner Lemberg  <wl@gnu.org>
 
-2018-03-13  Werner Lemberg  <wl@gnu.org>
-
-	Fix cmap format 2 handling (#53320).
-
-	The patch introduced for #52646 was not correct.
-
-	* src/sfnt/ttcmap.c (tt_cmap2_char_next): Adjust condition.
-
-2018-03-10  Nikolaus Waxweiler  <madigens@gmail.com>
-
-	* CMakeLists.txt (BASE_SRCS): Update to changes from 2018-03-05.
-
-2018-03-09  Chun-wei Fan  <fanc999@yahoo.com.tw>
-
-	* CMakeLists.txt [win32]: Allow MSVC DLL builds (#53287).
-
-	Do not limit DLL builds to MinGW, since we already have
-	`__declspec(dllexport)' directives in `ftconfig.h'.
-	Also suppress more warnings for POSIX functions.
-
-2018-03-08  Hugh McMaster  <hugh.mcmaster@outlook.com>
-
-	Make installation of `freetype-config' optional (#53093).
-
-	* builds/unix/configure.raw: Add option `--enable-freetype-config'
-	and set `INSTALL_FT2_CONFIG'.
-	* builds/unix/unix-def.in (INSTALL_FT2_CONFIG): Define.
-	* builds/unix/install.mk (install): Handle it.
-
-2018-03-05  Werner Lemberg  <wl@gnu.org>
-
-	Make `ftlcdfil.c' part of the `base' module.
-
-	`ftobjs.c' needs `ft_lcd_padding'.
-
-	Problem reported by duhuanpeng <548708880@qq.com>.
-
-	* modules.cfg (BASE_EXTENSIONS): Don't include `ftlcdfil.c'.
-
-	* src/base/ftbase.c: Include `ftlcdfil.c'.
-	* src/base/rules.mk (BASE_SRC): Add `ftlcdfil.c'.
-	* src/base/Jamfile (_sources): Adjusted.
-
-	* docs/INSTALL.ANY: Updated.
-
-2018-03-05  Werner Lemberg  <wl@gnu.org>
-
-	Make `ftfntfmt.c' part of the `base' module.
-
-	`ftobjs.c' needs `FT_Get_Font_Format'.
-
-	Problem reported by duhuanpeng <548708880@qq.com>.
-
-	* modules.cfg (BASE_EXTENSIONS): Don't include `ftfntfmt.c'.
-
-	* src/base/ftbase.c: Include `ftfntfmt.c'.
-	* src/base/rules.mk (BASE_SRC): Add `ftfntfmt.c'.
-	* src/base/Jamfile (_sources): Adjusted.
-
-	* docs/INSTALL.ANY: Updated.
-
-2018-03-01  Werner Lemberg  <wl@gnu.org>
-
-	* src/truetype/ttinterp.c (TT_RunIns): Fix tracing arguments.
-
-2018-02-23  Werner Lemberg  <wl@gnu.org>
-
-	* builds/unix/configure.raw: Need HarfBuzz 1.3.0 or newer.
-
-	Problem reported by Alan Coopersmith <alan.coopersmith@oracle.com>.
-
-2018-02-17  Werner Lemberg  <wl@gnu.org>
-
-	[sfnt] Prefer `CBDT'/`CBLC' over `glyf' table (#53154).
-
-2018-02-06  Werner Lemberg  <wl@gnu.org>
-
-	[truetype] Integer overflow issues.
+	[woff2] Fix memory leaks and a runtime warning.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6027
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19773
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18101
 
-	* src/truetype/ttinterp.c (Ins_MSIRP, Ins_MIAP, Ins_MIRP): Use
-	SUB_LONG; avoid FT_ABS.
+	* src/sfnt/sfwoff2.c (compute_ULong_sum): Add missing cast.
+	(reconstruct_hmtx): Add missing deallocation calls.
 
-2018-02-04  Alexei Podtelezhnikov  <apodtele@gmail.com>
+2020-01-02  Dominik Röttsches  <drott@chromium.org>
 
-	[unix] Use -fvisibility=hidden.
+	[truetype] Fix UBSan warning on offset to nullptr (#57501).
 
-	It is now widely recommended that ELF shared libraries hide symbols
-	except those with explicit __attribute__((visibility("default"))).
-	This is supported by all major compilers and should rather be an
-	option in libtool.
+	* src/truetype/ttinterp.c (Ins_CALL): Fail if `exc->FDefs' is null.
 
-	* builds/unix/configure.raw: Add -fvisibility=hidden to CFLAGS.
-	* builds/unix/ftconfig.in, builds/vms/ftconfig.h,
-	include/freetype/config/ftconfig.h (FT_EXPORT): Use visibility
-	attribute.
+2019-12-31  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
 
-2018-01-27  Werner Lemberg  <wl@gnu.org>
+	[woff2] Allow bitmap-only fonts (#57394).
 
-	[truetype] Better protection against invalid VF data.
+	* src/sfnt/sfwoff2.c (reconstruct_font): Fix test for `glyf' and
+	`loca' tables.
+
+2019-12-21  Hugh McMaster  <hugh.mcmaster@outlook.com>
+
+	[docs] (2/2) Fix generation of API documentation (#56745).
+
+	Creating the API Reference in the (new) `reference' sub-directory is
+	consistent with other documentation sub-topics, such as `design',
+	`glyphs' and `tutorial'.
+
+	This patch fixes broken hyperlinks in the documentation pointing to
+	and from the API Reference.  It also allows web assets to load from
+	their relative paths.
+
+	* builds/freetype.mk (DOC_DIR): Adjust.
+	(refdoc, refdoc-venv): Add `--site' argument.
+
+	* builds/toplevel.mk (do-dist): Updated.
+
+2019-12-21  Hugh McMaster  <hugh.mcmaster@outlook.com>
+
+	[docs] (1/2) Move static web assets (#56745).
+
+	* docs/reference/*: Move ...
+	* docs: ... one directory up.
+
+2019-12-21  Dominik Röttsches  <drott@chromium.org>
+
+	Fix more UBSan warnings on adding offset to nullptr (#57432).
+
+	* src/truetype/ttinterp.c (Ins_LOOPCALL), src/psaux/psft.c
+	(cf2_initLocalRegionBuffer): Use `FT_OFFSET'.
+
+2019-12-16  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Fix UBSan warnings on adding offsets to nullptr.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5739
+	  https://bugs.chromium.org/p/chromium/issues/detail?id=1032152
 
-	Bug introduced in commit 08cd62deedefe217f2ea50e392923ce8b5bc7ac7.
+	* src/truetype/ttinterp.c (Ins_FDEF, Ins_IDEF): Use `FT_OFFSET'.
 
-	* src/truetype/ttgxvar.c (TT_Set_Var_Design): Always initialize
-	`normalizedcoords'.
+2019-12-14  Werner Lemberg  <wl@gnu.org>
 
-2018-01-27  Werner Lemberg  <wl@gnu.org>
-
-	* src/truetype/ttinterp.c (Ins_GETVARIATION): Avoid NULL reference.
+	[truetype] Fix integer overflow.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5736
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19305
 
-2018-01-27  Werner Lemberg  <wl@gnu.org>
+	* src/truetype/ttinterp.c (Ins_MIRP): Use `ADD_LONG'.
 
-	* src/truetype/ttgxvar.c (tt_set_mm_blend): Minor.
+2019-12-13  Werner Lemberg  <wl@gnu.org>
 
-2018-01-27  Werner Lemberg  <wl@gnu.org>
+	Another bunch of UBSan warnings on adding offsets to nullptr.
 
-	[truetype] Better trace VF instances.
+	Reported as
 
-	* src/truetype/ttgxvar.c (ft_var_to_normalized): Don't emit number
-	of coordinates.
-	(TT_Get_MM_Var): Trace instance indices names.
-	(TT_Set_Var_Design): Updated.
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19427
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19433
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19441
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19451
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19452
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19457
 
-2018-01-27  Werner Lemberg  <wl@gnu.org>
+	* src/autofit/aflatin.c (af_latin_hints_compute_segments,
+	af_latin_hints_compute_edges): Use `FT_OFFSET'.
 
-	[truetype] Beautify tracing of VF axis records.
+	* src/base/ftstream.c (FT_Stream_EnterFrame): Use `FT_OFFSET'.
 
-	* src/truetype/ttgxvar.c (TT_Get_MM_Var): Show axis records in a
-	table-like manner.
+	* src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Exit early
+	if there is no charstring.
 
-2018-01-26  Ben Wagner  <bungeman@google.com>
+	* src/psaux/psobjs.c (t1_decrypt): Use `FT_OFFSET'.
 
-	[truetype] Fix multiple calls of `FT_Get_MM_Var' (#52955).
+	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Exit early for
+	zero bitmap dimensions.
 
-	* src/truetype/ttgxvar.c (TT_Get_MM_Var): Set
-	`face->blend->num_axis' in case we have to initialize the
-	`face->blend'.
+2019-12-09  Dominik Röttsches  <drott@chromium.org>
 
-2018-01-23  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	Fix more UBSan warnings on adding offset to nullptr (#57384).
 
-	[apinames] Anonymous version map for GNU linker.
+	* src/smooth/ftsmooth.c (ft_smooth_render_generic),
+	src/psaux/psobjs.c (ps_table_add): Use `FT_OFFSET'.
 
-	* src/tools/apinames.c (PROGRAM_VERSION): Set to 0.3.
-	(OutputFormat): Add `OUTPUT_GNU_VERMAP'.
-	(names_dump): Handle it.
-	(usage): Updated.
-	(main): Handle new command line flag `-wL'.
+2019-12-05  Werner Lemberg  <wl@gnu.org>
 
-2018-01-21  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	* src/truetype/ttinterp.c (TT_RunIns): Use `FT_OFFSET'.
 
-	[unix] Call libtool to clean up.
+	Reported as
 
-	* builds/unix/install.mk (clean_project_unix, distclean_project_unix):
-	Use libtool.
-	* builds/freetype.mk: Minor.
+	  https://bugs.chromium.org/p/chromium/issues/detail?id=1030614
 
-2018-01-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
+2019-12-03  Werner Lemberg  <wl@gnu.org>
 
-	* src/base/ftver.rc: Fix mingw-w64 compilation.
+	More nullptr offset UBSan warnings (#57331, #57347).
 
-2018-01-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	* src/autofit/afcjk.c (af_cjk_hints_compute_segments),
+	src/psaux/psft.c (cf2_getSeacComponent), src/truetype/ttinterp.c
+	(Ins_UNKNOWN): Use `FT_OFFSET'.
 
-	[build] Enable VERSIONINFO resource for Cygwin/MinGW.
+2019-11-29  Dominik Röttsches  <drott@chromium.org>
 
-	* builds/unix/configure.raw: Check for resource compiler.
-	* builds/unix/unix-cc.in: Conditionally set up resource compiler.
-	* builds/freetype.mk: Add conditional rule for `ftver.rc'.
-	* src/base/ftver.rc: Copyright notice and year update.
+	Avoid more nullptr offset UBSan warnings (#57316).
 
-2018-01-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	* src/base/ftoutln.c (FT_Outline_Transform): Bail on empty points.
+	* src/cff/cffload.c (cff_subfont_load): Use `FT_OFFSET'.
+	* src/psaux/psft.c (cf2_decoder_parse_substrings): Early out if
+	`charstring_base' or `charstring_len' are null.
+	* src/sfnt/ttload.c (tt_face_load_name): Use `FT_OFFSET'.
 
-	[build] Move VERSIONINFO resource.
+2019-11-23  John Stracke  <jstracke@Google.com>
 
-	* builds/windows/vc2010/freetype.vcxproj: Updated.
-	* builds/windows/ftver.rc: Move file from here...
-	* src/base/ftver.rc: ... to here.
+	[base] Really fix #57194.
 
-2018-01-12  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	Apply accidentally missed second part of patch.
 
-	[build] Expand dllexport/dllimport to Cygwin/MinGW.
+	* src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Call
+	`FT_GlyphLoader_CreateExtra'.
 
-	* include/freetype/config/ftconfig.h: Respect DLL_EXPORT,
-	s/_MSC_VER/_WIN32/.
-	* builds/unix/ftconfig.in: Replicate here.
-	* builds/vms/ftconfig.h: Replicate here.
+2019-11-23  Werner Lemberg  <wl@gnu.org>
 
-2018-01-12  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	[truetype] Avoid sanitizer warning (#57289).
 
-	[build] Improve and document MSVC build.
+	* src/truetype/ttpload.c (tt_face_get_device_metrics): Use
+	`FT_OFFSET'.
 
-	* include/freetype/config/ftconfig.h: Guard dllexport/dllimport
-	attributes with _DLL and FT2_DLLIMPORT.
-	* builds/windows/vc2010/index.html: Update documentation.
+2019-11-23  Armin Hasitzka  <prince.cherusker@gmail.com>
 
-2018-01-10  Steve Robinson  <ssrobins@gmail.com>
+	[truetype] Fix integer overflow (#57287).
 
-	* CMakeLists.txt [win32]: Suppress warnings for POSIX functions.
+	* src/truetype/ttgload.c (compute_glyph_metrics): Use `SUB_LONG'.
 
-2018-01-10  Ewald Hew  <ewaldhew@gmail.com>
+2019-11-23  Ben Wagner  <bungeman@google.com>
 
-	[psaux] Correctly handle Flex features (#52846).
+	[sfnt] Avoid sanitizer warning (#57286).
 
-	* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdVMOVETO,
-	cf2_cmdHMOVETO>: Do not move if doing Flex.
+	* src/sfnt/ttcmap.c (tt_face_build_cmaps): Avoid possible `NULL +
+	offset' computation.
+	Tag `table' as `const'.
 
-2018-01-09  Alexei Podtelezhnikov  <apodtele@gmail.com>
+2019-11-23  John Stracke  <jstracke@Google.com>
+            Werner Lemberg  <wl@gnu.org>
 
-	* builds/windows/vc2010/freetype.sln: Synchronize with the project.
+	[base] Fix `NULL + offset' sanitizer warnings (#57194).
 
-2018-01-08  Werner Lemberg  <wl@gnu.org>
+	* src/base/ftgloadr.c (FT_GlyphLoader_Adjust_Points,
+	FT_GlyphLoader_Adjust_Subglyphs): Use `FT_OFFSET'.
+	(FT_GlyphLoader_CreateExtra): Add short cut if some values are zero.
 
-	* Version 2.9 released.
-	=======================
+2019-11-23  Werner Lemberg  <wl@gnu.org>
+
+	* include/freetype/internal/ftmemory.h (FT_OFFSET): New macro.
+
+	Use this for `base + offset' pointer calculations where `base' can
+	be NULL (triggering a sanitizer warning even if the resulting
+	pointer gets never dereferenced since it is undefined behaviour
+	in C).
+
+	Suggested by Ben Wagner.
+
+2019-11-23  Ben Wagner  <bungeman@google.com>
+
+	[sfnt] Ensure OTTO fonts have tables (#57285).
+
+	* src/sfnt/ttload.c (tt_face_load_font_dir): Add test.
+
+2019-11-23  Behdad Esfahbod  <behdad@behdad.org>
+
+	Minor fixes for recent compilers.
+
+	* src/gzip/infutil.h (inflate_mask): Add `const'.
+
+	* src/autofit/aflatin2.c: Include `ft2build.h'.
+
+2019-11-07  Nikolaus Waxweiler  <madigens@gmail.com>
+
+	* CMakeLists.txt: Minor additions to the notes, compile
+	  builds/unix/ftsystem.c instead of src/base/ftsystem.c on UNIX.
+
+	The latter change is based on the code proposed by rim in #55235.
+
+2019-10-25  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Check `num_fonts' for TTCs.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18494
+
+2019-10-22  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Avoid undefined shift.
+
+	Also improve tracing.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18390
+
+2019-10-10  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/sfnt/pngshim.c (premultiply_data): Optimize for __SSE__ only.
+
+2019-10-10  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2.c (reconstruct_glyf): Check `triplet_size'.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18108
+
+2019-10-09  John Tytgat  <John.Tytgat@esko.com>
+
+	[cff] Fix FT_FACE_FLAG_GLYPH_NAMES for CFF2 based fonts (#57023).
+
+	* src/cff/cffobjs.c (cff_face_init): Don't set
+	FT_FACE_FLAG_GLYPH_NAMES for CFF2 based fonts.
+
+2019-10-08  Werner Lemberg  <wl@gnu.org>
+
+	[woff2] Fix SFNT table checks.
+
+	Also reduce number of SFNT table lookups.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18065
+
+	* include/freetype/internal/wofftypes.h (WOFF2_InfoRec): Add fields
+	`glyf_table', `loca_table', and `head_table'.
+
+	* src/sfnt/sfwoff2.c (reconstruct_glyf): Update signature.
+	Use table pointers in `info' parameter.
+	(get_x_mins): Check `maxp_table'
+	Use table pointers in `info' parameter.
+	(reconstruct_font):  Use and set table pointers in `info' parameter.
+	Fix check for `glyf' and `loca' tables.
+	Update call to `reconstruct_glyf'.
+	(woff2_open_font): Updated.
+
+2019-10-06  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2.c (reconstruct_glyf): Fix reallocation.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18046
+
+2019-10-06  Werner Lemberg  <wl@gnu.org>
+
+	Improve memory debugging.
+
+	* include/freetype/internal/ftmemory.h (FT_MEM_FREE): Use
+	`FT_DEBUG_INNER' to set source code file name and line.
+
+	* src/base/ftdbgmem.c (ft_mem_table_remove): Better formatting of
+	tracing message.
+
+2019-10-03  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2 (reconstruct_font): Fix reallocation.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17966
+
+2019-10-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/base/ftstroke.c (ft_stroker_inside): Speed up.
+
+2019-10-01  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2 (woff2_open_font): Initialize `woff2.ttc_fonts'.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17804
+
+2019-09-30  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2.c (reconstruct_font): Fix memory leak.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17812
+
+2019-09-30  Werner Lemberg  <wl@gnu.org>
+
+	[woff2] Reject fonts without `head' table.
+
+	Also fix memory deallocation in case of error.
+
+	`head' problem reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17820
+
+	* src/sfnt/sfwoff2.c (reconstruct_glyf): Don't use `stream_close'.
+	Abort if `head_table' is NULL.
+	Don't free `transformed_buf' in case of error.
+	(woff2_open_font): Don't set `uncompressed_buf' to NULL.
+
+2019-09-29  Werner Lemberg  <wl@gnu.org>
+
+	[woff2] Fix compiler warnings.
+
+	Problem reported by Alexei.
+
+	* src/sfnt/sfwoff2.c (reconstruct_glyf): Initialize `x_min'.
+	(reconstruct_font): Initialize `num_hmetrics'.
+	(woff2_open_font): Initialize `info'.
+
+2019-09-28  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Fix sanity check.
+
+	Correct thinkos in patch from 2019-09-01.
+
+2019-09-28  Werner Lemberg  <wl@gnu.org>
+
+	[woff2] Fix memory leaks.
+
+	One of them reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17766
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Free `info->x_mins' and
+	`woff2->ttc_fonts'.
+
+	(reconstruct_glyf): Initialize `info->x_mins'.
+
+2019-09-27  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/base/ftstroke.c (ft_stroker_cap): Speed up caps.
+
+2019-09-25  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/base/ftstroke.c (ft_stroker_outside): Speed up clipped miter.
+	* include/freetype/ftstroke.h: Wordsmith miter docs.
+
+2019-09-25  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Check (sum of) table sizes.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17684
+
+2019-09-23  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/base/ftstroke.c (ft_stroke_border_arcto): Speed up calculations.
+
+2019-09-20  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Fix memory leaks.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16896
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Fix error handling.
+	Free `uncompressed_buf'.
+	(reconstruct_font): Free `transformed_buf'.
+
+2019-09-17  Werner Lemberg  <wl@gnu.org>
+
+	* src/otvalid/otvcommon.c (otv_Coverage_get_last): Guard `count'.
+
+	Problem reported by Marc Schönefeld <marc.schoenefeld@gmx.org>.
+
+2019-09-17  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Check table index.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17100
+
+2019-09-15  Avi Halachmi (:avih)  <avihpit@yahoo.com>
+
+	[cmake] Don't fail if brotli is missing (#56894).
+
+	The libs which cmake controls are commented out at
+
+	  include/freetype/config/ftoption.h
+
+	and cmake un-comment each enabled library, but the brotli option was
+	not commented out, therefore `FT_CONFIG_OPTION_USE_BROTLI' remained
+	defined even if brotli was missing/disabled/etc.
+
+	Comment it such that cmake can control it, which means leaving it
+	undefined if brotli is missing.
+
+	* include/freetype/config/ftoption.h: Fix typo.
+
+2019-09-05  Werner Lemberg  <wl@gnu.org>
+
+	[cmake] Add brotli support.
+
+	* CMakeLists.txt (FT_WITH_BROTLI): New option.
+
+	* builds/cmake/FindBrotliDec.cmake: New file.
+
+2019-09-05  Werner Lemberg  <wl@gnu.org>
+
+	Fix handling of `AF_CONFIG_OPTION_INDIC'.
+
+	* devel/ftoption.h, include/freetype/config/ftoption.h:
+	`AF_CONFIG_OPTION_INDIC' needs `AF_CONFIG_OPTION_CJK'.
+
+2019-09-05  Werner Lemberg  <wl@gnu.org>
+
+	CMakeLists.txt: Fix generation of DLL related stuff (#56852).
+
+	Extract `version_info' variable from `builds/unix/configure.raw' and
+	use the data to correctly set `LIBRARY_VERSION' and
+	`LIBRARY_SOVERSION'.
+
+	Also use the data to set `ft_version' field in `freetype2.pc'.
+	Also fix the needed minimum version of HarfBuzz in `freetype2.pc'.
+
+2019-09-03  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2.c (compute_ULong_sum): Fix undefined shift.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16933
+
+2019-09-01  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Add sanity check.
+
+	Don't trust `totalSfntSize' unconditionally.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16893
+
+2019-08-27  Dominik Röttsches  <drott@chromium.org>
+
+	[woff2] Don't use `FT_UInt64' (#56815).
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Use `FT_UInt32' for
+	`file_offset'.  This fixes builds on platforms where `FT_LONG64' is
+	not defined while still being sufficient to store a file offset.
+
+2019-08-27  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Prevent crash in `TT_Set_Named_Instance' (#56813).
+
+	* src/truetype/ttgxvar.c (TT_Set_Named_Instance): Fix error
+	handling.
+
+2019-08-27  Werner Lemberg  <wl@gnu.org>
+
+	[woff2] Fix compiler warnings.
+
+	* src/sfnt/sfwoff2.c (read_num_hmetrics): Remove unused argument
+	`table_len'.
+	Update caller.
+	(triplet_decode, compute_bbox, store_loca, reconstruct_glyf): Make
+	`i' variable unsigned.
+	(reconstruct_glyph): Remove condition which is always false.
+	(reconstruct_html): Removed unused argument `transformed_size'.
+	Update caller.
+
+	* src/sfnt/woff2tags.c (woff2_known_tags): Remove condition which is
+	always false.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Check whether known tag is in array bounds.
+
+	If table tag is not 0x3f, we expect a value between 0 and 62.  If
+	this is not the case, exit with errors.
+
+	* src/sfnt/sfwoff2/c: Check whether table tag makes sense.
+
+	* src/sfnt/woff2tags.c: Return 0 if tag is out of bounds.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	* src/sfnt/sfwoff2.c: Improve trace comments.
+
+	Adjust tracing levels for comments, and more formatting.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Support `hmtx' reconstruction when `glyf' is untransformed.
+
+	`reconstruct_hmtx' requires `info->x_mins' and `info->num_glyphs' to
+	reconstruct the hmtx table.  In case glyf is not transformed, we
+	call `get_x_mins' which does the necessary work.
+
+	* src/sfnt/sfwoff2.c (get_x_mins): New function.
+	(reconstruct_font): Call get_x_mins.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[sfnt] Support `face->num_faces' for WOFF2 fonts.
+
+	Set correct value of `face->num_faces' for WOFF2 fonts.  This is
+	being handled separately because we only load the tables for the
+	requested font face in `woff2_open_font' and create a single-face
+	sfnt stream.
+
+	The full discussion is at:
+
+	  https://lists.gnu.org/archive/html/freetype-devel/2019-08/msg00000.html
+
+	* src/sfnt/sfobjs.c (sfnt_open_font): Add parameter
+	`woff2_num_faces'.
+	(sfnt_init_face): Introduce variable `woff2_num_faces', and change
+	`face->root.num_faces' if `woff2_num_faces' is set.
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Validate requested face
+	index and handle negative face indices.
+
+	* src/sfnt/sfwoff2.h (woff2_open_font): Add parameter `num_faces' to
+	declaration.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Improve memory and error handling.
+
+	Free up memory after use, and improve error handling.
+
+	* src/sfnt/sfwoff2.c (reconstruct_font, woff2_open_font): Implement
+	changes.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Avoid too many calls to `FT_REALLOC'.
+
+	We do this by using `totalSfntSize' as an initial reference, and
+	extending the buffer when required.  This reduces rendering time
+	considerably.
+
+	* include/freetype/internal/wofftypes.h (WOFF2_HeaderRec): Add
+	`totalSfntSize', rename `total_sfnt_size' to `actual_sfnt_size'.
+
+	* src/sfnt/sfwoff2.c (write_buf): Add parameter `dst_size' to keep
+	track of and update total size of stream.
+
+	(WRITE_SFNT_BUF, WRITE_SFNT_BUF_AT): Modify macros accordingly.
+
+	(pad4, store_loca, reconstruct_glyf, reconstruct_hmtx,
+	reconstruct_font): Update parameters to accept `sfnt_size'.
+
+	(woff2_open_font): Add variable `sfnt_size'.  Use WOFF2 header field
+	`totalSfntSize' as initial reference (if value makes sense) and
+	allocate `totalSfntSize' bytes for the sfnt stream.  `write_buf'
+	handles reallocation if and when required.  Also resize the stream
+	to `actual_sfnt_size' after reconstruction.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Reconstruct `loca', `hmtx', and swap out stream.
+
+	Add necessary functions to reconstruct loca and hmtx tables (the two
+	remaining tables that can have a transform).  `woff2_open_font' is
+	now capable of loading a woff2 font face.  This code may still need
+	more refining and better memory management.
+
+	* include/freetype/internal/wofftypes.h (WOFF2_HeaderRec): Add total
+	(final) size of sfnt stream.
+
+	(WOFF2_InfoRec): Add header checksum value.
+
+	* src/sfnt/sfobjs.c (sfnt_open_font): Change `face_instance_index'
+	parameter to its pointer so its value can be modified by
+	`woff2_open_font'.
+
+	* src/sfnt/sfwoff2.c: (WRITE_SFNT_BUF_AT): New macro to write into
+	sfnt buffer at given position.
+
+	(write_buf): Add parameter `extend_buf' which allows caller to
+	specify whether buffer should be reallocated before copying data.
+
+	(WRITE_SFNT_BUF): Updated.
+
+	(pad4, store_loca, reconstruct_htmx): New functions.
+
+	(reconstruct_glyf): Calculate loca values and store them.
+
+	(reconstruct_font): Call `reconstruct_hmtx', write table record
+	entries, and calculate table checksums.  Also calculate font
+	checksum and update `checksumAdjustment' entry in head table.
+
+	(woff2_open_font): Open stream for sfnt buffer, swap out input
+	stream and return.
+
+	* src/sfnt/sfwoff2.h (woff2_open_font): Modify parameter to accept
+	pointer to `face_index'.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Reconstruct transformed `glyf' table.
+
+	Reconstruct `glyf' table if it is transformed in the uncompressed
+	table stream.  Also add necessary structures, macros and functions.
+
+	* include/freetype/internal/wofftypes.h (WOFF2_InfoRec,
+	WOFF2_SubstreamRec, WOFF2_PointRec): New structures.
+	(WOFF2_TableRec): s/OrigLength/dst_length/.
+
+	* src/sfnt/sfwoff2.c (READ_255USHORT, READ_BASE128): Use
+	`FT_SET_ERROR' to set implicit `error' variable.
+
+	(WRITE_SHORT): New macro.
+
+	(N_CONTOUR_STREAM, N_POINTS_STREAM, FLAG_STREAM, GLYPH_STREAM,
+	COMPOSITE_STREAM, BBOX_STREAM, INSTRUCTION_STREAM): New macros to
+	refer to substreams of the transformed `glyf' tables.
+
+	(Read255UShort, ReadBase128): Return errors set by `FT_READ_XXX'
+	macros.
+
+	(with_sign, safe_int_addition): New functions to add sign to values
+	based on a flag and perform safe addition respectively.
+
+	(triplet_decode): Decode variable-length (flag, xCoordinate,
+	yCoordinate) triplet for a simple glyph.   See
+
+	  https://www.w3.org/TR/WOFF2/#triplet_decoding
+
+	(store_points, compute_bbox, composteGlyph_size, reconstruct_glyf):
+	New functions.
+
+	(reconstruct_font): Call `reconstruct_glyf'.
+
+	* src/sfnt/sfwoff2.h: Add required constants.
+
+	* src/sfnt/woff2tags.h: Move out constants to `sfwoff2.h'.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Copy un-transformed tables to sfnt stream.
+
+	Copy un-transformed tables to the sfnt stream.
+
+	* src/sfnt/sfwoff2.c: (WRITE_SFNT_BUF): New macro.
+	(write_buf): New function.  Extend memory of `dst' buffer and copy
+	bytes from `src'.
+	(compute_ULong_sum): New function.  Calculate checksum of table.
+	(reconstruct_font): Change `FT_Byte* sfnt' to `FT_Byte**
+	sfnt_bytes'.  This has been done because we reallocate memory to
+	`sfnt' multiple times, which may change the pointer value of `sfnt'.
+	This new pointer must be propogated back to the caller.  Same reason
+	for using a double pointer in `write_buf'.
+
+	* src/sfnt/woff2tags.h (WOFF2_DEFAULT_MAX_SIZE): New macro used for
+	overflow checking.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Create stream for uncompressed buffer.
+
+	Uncompressed buffer is now an `FT_Stream'.
+
+	Perform basic checks and start iterating over tables.
+
+	* src/sfnt/sfwoff2.c (stream_close, find_table, read_num_hmetrics):
+	New functions.
+	(reconstruct_font): Modify parameters and iterate over tables.
+	(woff2_open_font): Updated.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Handle TTCs and start reconstructing font.
+
+	We `handle' TTCs by modifying the `indices' array to point to only
+	those tables that are part of the requested `face_index'.
+
+	Set and use `num_tables' in `WOFF2_TtcFont'.
+
+	* src/sfnt/sfwoff2.c (reconstruct_font): New function.
+	(woff2_open_font): Start reconstruction of font.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Get known tags from function.
+
+	Change `KnownTags' to a function (`woff2_known_tags').  This avoids
+	introducing a global constant array.  This function returns the
+	specified index without *any* checks.  The caller must ensure that
+	`index' is within array limits.
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Change `KnownTags[...]'
+	notation to `woff2_known_tags( ...  )'.
+
+	* src/sfnt/woff2tags.c: Perform changes.
+
+	* src/sfnt/woff2tags.h: Update definitions.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Minor.
+
+	* src/sfnt/sfwoff2.c (woff2_uncompress): Add error message
+	(woff2_open_font): Free `uncompressed_buf'.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Uncompress Brotli streams and `face_index' support.
+
+	WOFF2 compressed stream is now uncompressed if Brotli is available.
+	This data is stored in a separate buffer (uncompressed_buf) because
+	it does not contain direct table data.  Certain tables have
+	transformations applied to them, and they must be reconstructed
+	before we can write those tables to the SFNT stream.
+
+	`face_index' is now being passed as a parameter to
+	`woff2_open_font'.
+
+	* src/sfnt/sfobjs.c (sfnt_open_font): Add parameter
+	`face_instance_index'.
+
+	* src/sfnt/sfwoff2.c (woff2_uncompress): New function.
+	(woff2_open_font): Call `woff2_uncompress'.
+	(compute_first_table_offset): Fix return type.
+
+	* src/sfnt/sfwoff2.h (woff2_open_font): Modify declaration.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	* builds/unix/configure.raw: Change argument name to `brotli'.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	Add Brotli dependency and required checks.
+
+	Brotli is required for decompressing WOFF2 font directory streams.
+	The library is thus being added as an optional dependency for
+	FreeType.
+
+	* builds/unix/configure.raw: Add checks for `libbrotlidec'.
+	(REQUIRES_PRIVATE, LIBS_PRIVATE, LIBSSTATIC_CONFIG): Updated.
+
+	* devel/ftoption.h, include/freetype/config/ftoption.h
+	(FT_CONFIG_OPTION_USE_BROTLI): New macro.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Write SFNT Offset table.
+
+	* src/sfnt/sfwoff2.c (WRITE_USHORT, WRITE_ULONG): New macros.
+	(compare_tags): New function.
+	(woff2_open_font): Implement it.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	* src/sfnt/sfwoff2.c: #undef macros.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[woff2] Read table and collection directory.
+
+	* include/freetype/internal/wofftypes.h (WOFF2_TtcFontRec): New
+	structure.
+	(WOFF2_HeaderRec): Add more fields.
+
+	* src/sfnt/sfwoff2.c (READ_255USHORT, READ_BASE128, ROUND4): New
+	macros.
+	(Read255UShort, CollectionHeaderSize, compute_first_table_offset):
+	New functions.
+	(ReadBase128): Use `FT_READ_BYTE'.
+	(woff2_open_font): Add functionality to read table directory and
+	collection directory (if present).
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[sfnt] Include `woff2tags.c' for building.
+
+	* src/sfnt/rules.mk (SFNT_DRV_SRC): Add `woff2tags.c'.
+
+	* src/sfnt/sfnt.c: Include `woff2tags.c'.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[sfnt] Add WOFF2 constants.
+
+	Add constants required for WOFF2, and known table tags as defined in
+	the specification.  See
+
+	  https://www.w3.org/TR/WOFF2/#table_dir_format
+
+	for details.
+
+	* src/sfnt/woff2tags.c, src/sfnt/woff2tags.h: New files.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[sfnt] Read WOFF 2 header.
+
+	Check for WOFF2 tag, call `woff2_open_font', and implement it to read
+	header according to specification.
+
+	* include/freetype/internal/fttrace.h: Add `sfwoff2.c'.
+
+	* src/sfnt/rules.mk (SFNT_DRV_SRC): Add `sfwoff2.c'.
+
+	* src/sfnt/sfnt.c: Include `sfwoff2.c'.
+
+	* src/sfnt/sfobjs.c (sfnt_open_font): Check for `wOF2' tag and call
+	`woff2_open_font'.
+
+	* src/sfnt/sfwoff2.c, src/sfnt/sfwoff2.h: New files.
+
+2019-08-27  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	Add structures for WOFF2.
+
+	Add structures and macro for WOFF 2 header and table directory.
+
+	* include/freetype/internal/wofftypes.h (WOFF2_HeaderRec,
+	WOFF2_TableRec_): New structures.
+
+	* include/freetype/tttags.h (TTAG_wOF2): New macro.
+
+2019-08-26  Werner Lemberg  <wl@gnu.org>
+
+	* src/psaux/cffdecode.c (cff_operator_seac): Fix numeric overflow.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16470
+
+2019-08-26  Werner Lemberg  <wl@gnu.org>
+
+	[type1] Fix `FT_Get_Var_Axis_Flags' (#56804).
+
+	* src/type1/t1load.c (T1_Get_MM_Var): Allocate space for axis flags.
+	Also remove redundant assignment.
+
+2019-07-24  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/base/ftbbox.c (cubic_peak): Sanitize left shift (#56586).
+
+2019-07-22  Weiyi Wu  <w1w2y3@gmail.com>
+
+	* src/cid/cidload.c (cid_hex_to_binary): Fix typo (#56653).
+
+2019-07-12  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt, winfonts] Avoid memory leaks in case of error (#56587).
+
+	* src/sfnt/sfwoff.c (woff_open_font): Call `FT_FRAME_EXIT' in case
+	of error.
+
+	* src/winfonts/winfnt.c (fnt_face_get_dll_font): Ditto.
+
+2019-07-12  Ben Wagner  <bungeman@google.com>
+
+	Properly handle phantom points for variation fonts (#56601).
+
+	* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Scale phantom
+	points if HVAR and/or VVAR is present.
+
+2019-07-04  Werner Lemberg  <wl@gnu.org>
+
+	[psaux] (2/2) Handle fonts that use SEAC for ligatures (#56580).
+
+	The same as previous commit but for the old engine.
+
+	* src/psaux/t1decode.c (t1operator_seac): Implement it.
+
+2019-07-04  Chris Liddell <chris.liddell@artifex.com>
+
+	[psaux] (1/2) Handle fonts that use SEAC for ligatures (#56580).
+
+	As originally intended, a Type 1 SEAC charstring would be used for
+	an accented glyph (like `acaron' or `uumlaut'), where the advance
+	width of the SEAC glyph is the same as that of the `base' glyph
+	(like `a' or `u').  In this case it is not uncommon for the SEAC
+	glyph to not use an (H)SBW opcode of its own but to rely on the
+	value from the base glyph.
+
+	However, out-of-spec fonts also use SEAC glyphs for ligatures (like
+	`oe' or `fi'), and in those cases the overall advance width is
+	greater than that of the `base' glyph.  For this reason we have to
+	allow that the SEAC glyph can have an (H)SBW value of its own, and
+	if it has, retain this value, rather than the one from the base
+	glyph.
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_escSEAC>:
+	Implement it.
+
+2019-07-01  Werner Lemberg  <wl@gnu.org>
+
+	* Version 2.10.1 released.
+	==========================
 
 
-	Tag sources with `VER-2-9'.
+	Tag sources with `VER-2-10-1'.
 
-	* docs/VERSION.TXT: Add entry for version 2.9.
+	* docs/VERSION.TXT: Add entry for version 2.10.1.
 
-	* README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
-	builds/windows/vc2005/index.html,
-	builds/windows/vc2008/freetype.vcproj,
-	builds/windows/vc2008/index.html,
+	* README, Jamfile (RefDoc), src/base/ftver.rc,
 	builds/windows/vc2010/freetype.vcxproj,
 	builds/windows/vc2010/index.html,
 	builds/windows/visualc/freetype.dsp,
@@ -547,1796 +1963,3094 @@
 	builds/windows/visualce/freetype.dsp,
 	builds/windows/visualce/freetype.vcproj,
 	builds/windows/visualce/index.html,
-	builds/windows/ftver.rc,
 	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.8.1/2.9/, s/281/29/.
+	builds/wince/vc2008-ce/index.html: s/2.10.0/2.10.1/, s/2100/2101/.
 
-	* include/freetype/freetype.h (FREETYPE_MINOR): Set to 9.
-	(FREETYPE_PATCH): Set to 0.
+	* include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
 
-	* builds/unix/configure.raw (version_info): Set to 22:0:16.
-	* CMakeLists.txt (VERSION_PATCH): Set to 0.
+	* builds/unix/configure.raw (version_info): Set to 23:1:17.
+	* CMakeLists.txt (VERSION_PATCH): Set to 1.
 
-2018-01-07  Werner Lemberg  <wl@gnu.org>
+	* include/freetype/fterrors.h (FT_Error_String): Fix C++ compilation.
 
-	Add check for librt, needed for `ftbench' (#52824).
+2019-06-26  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* builds/unix/configure.raw (LIB_CLOCK_GETTIME): Define; this will
-	hold `-lrt' if necessary.
+	* src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Fix inequality.
 
-	* builds/unix/unix-cc.in (LIB_CLOCK_GETTIME): New variable.
+	Reported by Armin Hasitzka.
 
-2018-01-07  Ewald Hew  <ewaldhew@gmail.com>
+2019-06-16  Werner Lemberg  <wl@gnu.org>
 
-	[psaux] Fix Type 1 glyphs with too many stem hints.
+	* src/tools/apinames.c: Formatting, minor edits.
 
-	According to the CFF specification, charstrings can have up to 96 stem
-	hints. Due to hint replacement routines in Type 1 charstrings, some
-	glyphs are rejected by the Adobe engine, which implements the above
-	limit. This fix turns off hinting for such glyphs.
+2019-06-16  Werner Lemberg  <wl@gnu.org>
 
-	* src/psaux/pshints.c (cf2_hintmap_build): Reset the error from calling
-	`cf2_hintmask_setAll' on a problematic Type 1 charstring and turn off
-	hinting.
+	[autofit] Disable hinting if no blue zones are available (#56450).
 
-2018-01-06  Werner Lemberg  <wl@gnu.org>
+	* src/autofit/afglobal.c (af_face_global_get_metrics): Start again
+	(with dummy hinter module) if no blue zones are present.
 
-	Add `FT_Done_MM_Var'.
+	* src/autofit/aflatin.c (af_latin_metrics_init_blues): Change
+	signature to return error code.
+	If no blue zones are found, update `glyph_styles' array to hold
+	AF_STYLE_NONE_DFLT instead of the current style.
+	(af_latin_metrics_init): Return internal error code if no blue zones
+	are found.
 
-	This is necessary in case the application's memory routines differ
-	from FreeType.  A typical example is a Python application on Windows
-	that calls FreeType compiled as a DLL via the `ctypes' interface.
+2019-06-16  Werner Lemberg  <wl@gnu.org>
 
-	* include/freetype/ftmm.h, src/base/ftmm.c (FT_Done_MM_Var): Declare
-	and define.
+	Towards better VMS support.
+
+	More to come.
+
+	* builds/vms/LIBS.OPT_IA64, builds/vms/_LINK.OPT_IA64,
+	builds/vms/vmslib.dat: New files provided by Jouk Jansen
+	<joukj@hrem.nano.tudelft.nl>.
+
+	* builds/vms/ftconfig.h: Update, also from Jouk.
+
+2019-06-13  Werner Lemberg  <wl@gnu.org>
+
+	* src/autofit/aflatin.c (af_latin_metrics_init_widths): Minor.
+
+2019-06-13  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Restore the span buffering for direct mode only.
+
+	The buffer size FT_MAX_GRAY_SPANS is set to 10 spans, which should be
+	enough to cover the entire scanline for simple glyphs in most cases:
+	each slightly slanted edge needs up to two spans, plus a filling span
+	in-between.  This is not new, we used to do it before cb4388783cecc.
+
+	* src/smooth/ftgrays.c (gray_TWorker): Add `spans' and `num_spans'.
+	(gray_hline, gray_sweep): Implement the span buffering.
+	(gray_raster_render): Use negative `num_spans' to avoid the direct
+	mode.
+
+2019-06-12  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* include/freetype/ftmodapi.h (FT_DebugHook_Func): Return error.
+
+	Fix a warning by adding a return value as in `TT_RunIns',
+	which should not be a compatibility issue.
+
+2019-06-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/truetype/ttobjs.c (tt_check_trickyness_family): Add `const'.
+
+2019-06-11  Moazin Khatti  <moazinkhatri@gmail.com>
+
+	[gzip] Add support for `gzip' encoded header.
+
+	* src/gzip/ftgzip.c (FT_Gzip_Uncompress): Modify the the call to
+	`inflateInit2' to enable support for `gzip' encoded headers.
+
+2019-06-10  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[type1,type42] Use `const' for string literals.
+
+	* include/freetype/internal/psaux.h (PS_Table_FuncsRec): Updated.
+	* include/freetype/internal/t1types.h (T1_EncodingRec): Updated.
+	* src/psaux/psobjs.[ch] (ps_table_add): Updated.
+	* src/type1/t1load.c (T1_Open_Face, parse_encoding): Updated.
+	* src/type42/t42objs.c (T42_Open_Face): Updated.
+	* src/type42/t42parse.c (t42_parse_encoding): Updated.
+
+	* src/cff/cffobjs.c (cff_face_init): Minor.
+
+2019-06-10  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[bdf,pcf] Use `const' for string literals.
+
+	* src/bdf/bdf.h (bdf_property_t): Updated `name'.
+	* src/bdf/bdflib.c (_bdf_list_split,bdf_create_property,
+	_bdf_add_property,_bdf_ato*): Updated.
+	* src/bdf/bdfdrivr.c (bdf_interpret_style): Updated.
+	* src/pcf/pcfread.c (pcf_intrpret_style): Ditto.
+
+2019-06-07  Philip Race  <philip.race@oracle.com>
+
+	* src/base/ftinit.c (FT_Set_Default_Properties): Fix crash.
+
+	Terminate loop at end of environment.
+
+2019-05-31  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	Solidify VC2005 builds.
+
+	* include/freetype/internal/ftcalc.h (FT_MSB) [_MSC_VER]: Explicitly
+	declare `_BitScanReverse' intrinsic.
+	* builds/windows/visualc/freetype.vcproj [Debug]: Disable intrinsics.
+
+2019-05-30  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[sfnt] Separate WOFF sources and headers.
+
+	Move WOFF sources and headers to separate files.
+
+	* include/freetype/internal/wofftypes.h, src/sfnt/sfwoff.c,
+	src/sfnt/sfwoff.h: New files.
+
+	* include/freetype/internal/fttrace.h: Register `sfwoff.c'.
+
+	* include/freetype/internal/internal.h: Define
+	FT_INTERNAL_WOFF_TYPES_H.
+
+	* include/freetype/internal/sfnt.h: Include FT_INTERNAL_WOFF_TYPES_H.
+
+	* include/freetype/internal/tttypes.h: Move out WOFF structures.
+
+	* src/sfnt/rules.mk: Add `sfwoff.c'.
+
+	* src/sfnt/sfnt.c: Include `sfwoff.c'.
+
+	* src/sfnt/sfobjs.c: Include `sfwoff.h', move out WOFF sources.
+
+2019-05-30  Werner Lemberg  <wl@gnu.org>
+
+	[base] Fix `make multi'.
+
+	Reported by Nikhil.
+
+	* src/base/fterrors.c: Include FT_INTERNAL_DEBUG_H.
+
+2019-05-29  Ben Wagner  <bungeman@google.com>
+
+	[truetype] Fix copy-and-paste error (#56409).
+
+	* src/truetype/ttgload.c (load_truetype_glyph): Use correct indices
+	into `unrounded' array for phantom points.
+
+2019-05-29  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Fix 32bit builds (#56404).
+
+	Patch suggested by Ben Wagner <bungeman@google.com>.
+
+	* src/truetype/ttgxvar.c (FT_fixedToInt, FT_fixedToFdot6): Remove
+	harmful cast to unsigned type.
+
+2019-05-26  Ben Wagner  <bungeman@google.com>
+
+	* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Improve accuracy.
+
+2019-05-23  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Draw glyphs without deltas in variation font (#56374).
+
+	* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Always fill
+	`unrounded' array.
+
+2019-05-21  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttinterp.c (opcode_name): Improve mnemonics.
+
+2019-05-16  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Actually scale varied CVT values.
+
+	Up to now, only the unscaled CVT values were varied; in other words,
+	the `CVAR' data was never used for bytecode hinting.
+
+	* src/truetype/ttgxvar.c (tt_cvt_ready_iterator): New auxiliary
+	function.
+	(tt_face_vary_cvt): Use it to trigger rescaling of CVT values.
+
+2019-05-16  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Use 26.6 format for storing unscaled CVT values.
+
+	If `CVAR' data is applied to variation fonts, fractional values are
+	possible.
+
+	* include/freetype/internal/tttypes.h (TT_FaceRec): Change type of
+	`cvt' from `FT_Short' to `FT_Int32'.
+
+	* src/truetype/ttgxvar.c (FT_fdot6ToFixed): New macro.
+	(tt_face_vary_cvt): Use it to update code to 26.6 format.
+
+	* src/truetype/ttobjs.c (tt_size_run_prep): Update code to 26.6
+	format.
+
+	* src/truetype/ttpload.c (tt_face_load_cvt): Stora data in 26.6
+	format.
+
+2019-05-16  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgload.c (load_truetype_glyph): Init `unrounded'.
+
+	This fixes linear advance width values for spacing glyphs.  Bug
+	introduced 2019-05-09.
+
+2019-05-16  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Avoid code duplication.
+
+	* src/truetype/ttobjs.c (tt_size_run_prep): Scale CVT values in this
+	function.
+	(tt_size_ready_bytecode): Updated.
+	* src/truetype/ttgload.c (tt_loader_init): Updated.
+
+2019-05-13  Jouk Jansen  <joukj@hrem.nano.tudelft.nl>
+
+	* vms_make.com: Updated.  Handle `bzip2' directory, too.
+
+2019-05-13  Werner Lemberg  <wl@gnu.org>
+
+	* src/psaux/psfont.c (cf2_font_setup): Fix compiler warning.
+
+2019-05-12  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Doh.  Fix last commit to make it work.
+
+	Very embarassing :-)
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14701
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14705
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14710
+
+	* src/truetype/ttgload.c (IS_DEFAULT_INSTANCE): Move up and add
+	argument; update all callers.
+	(TT_Process_Simple_Glyph): Use it.  The `unrounded' array is active
+	for variation fonts only, thus also enclose related code with
+	`#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT ...  #endif' where
+	necessary.
+	Revert commit a113e5d from 2019-05-09, and don't use `extra_points2'
+	but allocate a temporary array.
+	Speed up the scaling of the `unrounded' array.
+
+	* src/truetype/ttgxvar.c (FT_fixedToInt, FT_FixedToFdot6): Fix type
+	conversions and rounding.  The unsigned type must have more or equal
+	bits to the signed type.
+
+2019-05-09  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Increase precision of font variation (#54371).
+
+	This patch makes FreeType use font units in 26.6 format internally
+	instead of integers.
+
+	* src/truetype/ttgxvar.c (FT_fixedToFdot6): New macro.
+	(TT_Vary_Apply_Glyph_Deltas): Add argument to output unrounded font
+	coordinates.
+	* src/truetype/ttgxvar.h: Updated.
+
+	* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Use
+	`extra_points2' array to temporarily hold unrounded point
+	coordinates; use them to compute scaled coordinates and linear
+	advance width and height.
+	(load_truetype_code): Adjust similarly.
+
+2019-05-09  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Minor.
+
+2019-05-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Faster fractions.
+
+	* src/smooth/ftgrays.c (SUBPIXELS): Replace with...
+	(FRACT): A fractional coordinate macro to use in...
+	(gray_render_line, gray_render_scanline): ... here.
+
+2019-05-07  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/raster/ftraster.c (Draw_Sweep): Unbreak.
+
+2019-05-05  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/raster/ftraster.c: Clean-ups.
+
+2019-05-05  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgxvar.c: More use of `FT_fdot14ToFixed'.
+
+2019-05-04  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/smooth/ftgrays.c (gray_render_line): Small shortcut.
+
+2019-05-04  Werner Lemberg  <wl@gnu.org>
+
+	Various clang 8.0 static analyzer fixes.
+
+	Reported by Sender Ghost <lightside@gmx.com>.
+
+	* src/autofit/afcjk.c (af_cjk_hints_compute_edges): Catch a corner
+	case where `edge->first' could be NULL.
+
+	* src/pfr/pfrobjs.c (pfr_slot_load): Remove unnecessary test of
+	`size'.
+
+	* src/raster/ftraster.c (Draw_Sweep): Catch a corner case where
+	`draw_right' might be NULL.
+
+	* src/sfnt/ttmtx.c (tt_face_get_metrics): Fix limit test for
+	`aadvance'.
+	Ensure `abearing' always hold a meaningful result.
+
+	* src/truetype/ttgload.c (load_truetype_glyph): Ensure `subglyph' is
+	not NULL before accessing it.
+	* src/truetype/ttgxvar.c (TT_Set_Named_Instance): Remove unnecessary
+	test of `namedstyle'.
+
+	* src/type42/t42parse.c (t42_parser_done): Ensure
+	`parser->root.funcs.done' is not NULL before accessing it.
+
+2019-05-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	Miscellaneous macro updates.
+
+	* src/base/ftoutln.c (SCALED): Updated.
+	* src/smooth/ftgrays.c (SCALED): Ditto.
+	(FLOOR, ROUND, CEILING): Removed.
+	* src/psaux/psfixed.h (cf2_fracToFixed): Updated.
+
+2019-05-02  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	Tweak LCD filtering.
+
+	* src/base/ftlcdfil.c (ft_lcd_filter_fir, _ft_lcd_filter_legacy):
+	Choose direction from bitmap's pixel_mode.
+	* include/freetype/internal/ftobjs.c (FT_Bitmap_LcdFilterFunc):
+	Updated.
+	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Updated.
+
+2019-05-02  Werner Lemberg  <wl@gnu.org>
+
+	* vms_make.com: Updated (#56253).
+
+	Remove no longer existing directories (`autohint', `otlayout').
+	Update used base extensions.
+	Activate `autofit' module.
+	Add `gxvalid' module.
+	Update copyright notices.
+
+2019-04-29  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Simplify cubic Bézier flattening.
+
+	The previous implementation is correct but it is too complex.
+	The revised algorithm is based on the fact that each split moves
+	the control points closer to the trisection points on the chord.
+	The corresponding distances are good surrogates for the curve
+	deviation from the straight line.
+
+	This cubic flattening algorithm is somewhat similar to the conic
+	algorithm based the distance from the control point to the middle of
+	the chord.  The cubic distances, however, decrease less predictably
+	but are easy enough to calculate on each step.
+
+	The new algorithm produces slightly larger number of splits, which is
+	compensated by its simplicity.  The overall rendering performance is
+	improved by 1-2%.  The larger number of splits does not necessarily
+	result in higher quality, which stays comparable.
+
+	* src/smooth/ftgrays.c (gray_render_cubic): Replace the split
+	condition.
+
+2019-04-26  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Bithacks and cosmetics.
+
+	* src/smooth/ftgrays.c (gray_record_cell, gray_set_cell, gray_hline,
+	gray_render_conic, gray_convert_glyph_inner): Updated.
+
+2019-04-25  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	Optimize Bézier bisections.
+
+	This change makes bisections faster by 20-30%. When inlined into
+	`gray_render_cubic', this makes the function faster by 10% and is
+	noticeable in the overall rendering performance.
+
+	* src/raster/ftraster.c (Split_Conic, Split_Cubic): Use shifts and
+	refactor.
+	* src/smooth/ftgrays.c (gray_split_conic, gray_split_cubic): Ditto.
+	* src/base/ftstroke.c (ft_conic_split, ft_cubic_split): Ditto.
+	* src/base/ftbbox.c (cubic_peak): Use shifts.
+
+2019-04-23  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/ttcmap.c (tt_cmap12_next): Remove dead code.
+
+	Found by clang 8.0's static analyzer and reported by Sender Ghost
+	<lightside@gmx.com>.
+
+2019-04-23  Werner Lemberg  <wl@gnu.org>
+
+	[base] Fix thinko in previous commit.
+
+	* src/base/ftbitmap.c (FT_Bitmap_Blend): Check final width, not
+	target pitch.
+
+	Problem reported by Sender Ghost <lightside@gmx.com>.
+
+2019-04-22  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftbitmap.c (FT_Bitmap_Blend): Check target pitch.
+
+	Problem reported by Sender Ghost <lightside@gmx.com>.
+
+2019-04-22  Werner Lemberg  <wl@gnu.org>
+
+	Fix return value of `FT_Set_Named_Instance' (#56186).
+
+	* src/truetype/ttgxvar.c (TT_Set_Named_Instance): Correctly handle
+	internal return value -1 of `TT_Set_Var_Design'.
+
+2019-04-18  Werner Lemberg  <wl@gnu.org>
+
+	[pcf] Fix handling of undefined glyph (#56067).
+
+	This commit fixes the changes from 2018-07-21, which broke charmap
+	iteration.  We now add the default character as a new glyph with
+	index 0, thus increasing the number of glyphs by one (as before).
+
+	* src/pcf/pcfread.c (pcf_get_metrics): Adjust to new artificial
+	glyph with index 0.
+	Limit number of elements to 65534.
+	(pcf_get_bitmaps): Ditto.
+	Unify two loops into one; this avoids allocation of an intermediate
+	array.
+	(pcf_get_encodings): Don't flip indices but copy glyph metrics of
+	default character to index 0.
+	Also handle invalid default character.
 
 	* docs/CHANGES: Updated.
 
-2018-01-03  Werner Lemberg  <wl@gnu.org>
+2019-04-15  Minmin Gong  <gongminmin@msn.com>
 
-	[truetype] Round offsets of glyph components only if hinting is on.
-
-	* src/truetype/ttgload.c (TT_Process_Composite_Component): Implement
-	it.
-
-2018-01-03  Werner Lemberg  <wl@gnu.org>
-
-	* src/truetype/ttgxvar.c (ft_var_to_design): Remove dead code.
-
-	This is a better fix than the previous commit, which is now
-	reverted.
-
-2018-01-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
-
-	Move internal LCD-related declarations.
-
-	* include/freetype/ftlcdfil.h (ft_lcd_padding, ft_lcd_filter_fir):
-	Move from here...
-	* include/freetype/internal/ftobjs.h: ... to here.
-
-2018-01-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
-
-	* include/freetype/config/ftconfig.h (FT_EXPORT, FT_EXPORT_DEF)
-	[_MSC_VER]: Limit Visual C++ attributes.
-
-2018-01-03  Werner Lemberg  <wl@gnu.org>
-
-	[truetype] Make blend/design coordinate round-tripping work.
-
-	Behdad reported that setting blend coordinates, then getting design
-	coordinates did incorrectly return the default instance's
-	coordinates.
-
-	* src/truetype/ttgxvar.c (tt_set_mm_blend): Fix it.
-
-2017-12-31  Werner Lemberg  <wl@gnu.org>
-
-	* src/sfnt/ttcmap.c (tt_cmap2_char_next): Fix endless loop.
+	* CMakeLists.txt: Avoid rewriting of unchanged configuration files.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4838
+	  https://savannah.nongnu.org/patch/index.php?9755
 
-2017-12-31  Werner Lemberg  <wl@gnu.org>
+2019-04-15  JDG  <JonathanG@iQmetrix.com>
 
-	Synchronize other Windows project files.
-
-	* builds/windows/*: Add missing files.
-
-2017-12-31  Werner Lemberg  <wl@gnu.org>
-
-	Update Visual C 2010 project files.
-
-	Problem reported by Hin-Tak.
-
-	* builds/windows/vc2010/freetype.vcxproj: Add files `ftbdf.c' and
-	`ftcid.c'.
-	Sort entries.
-	* builds/windows/vc2010/freetype.vcxproj.filter: Ditto.
-	Fix members of `FT_MODULE' group.
-
-2017-12-30  Werner Lemberg  <wl@gnu.org>
-
-	* builds/vms/ftconfig.h: Synchronize with unix `ftconfig.in' file.
-
-2017-12-28  Werner Lemberg  <wl@gnu.org>
-
-	* builds/unix/ftconfig.in: Synchronize with main `ftconfig.h' file.
-
-	Reported by Nikolaus.
-
-2017-12-27  Werner Lemberg  <wl@gnu.org>
-
-	Fix compiler warnings.
-
-	* src/base/ftbitmap.c (ft_bitmap_assure_buffer): Make `pitch' and
-	`new_pitch' unsigned.
-
-	* src/base/ftpsprop.c: Include FT_INTERNAL_POSTSCRIPT_PROPS_H.
-
-2017-12-27  Werner Lemberg  <wl@gnu.org>
-
-	Fixes for `make multi'.
-
-	* include/freetype/internal/ftpsprop.h: Use `FT_BASE_CALLBACK'.
-	(ps_property_get): Harmonize declaration with corresponding
-	function typedef.
-
-	* include/freety[e/internal/fttrace.h: Add `trace_psprops'.
-
-	* src/base/ftpsprop.c: Include necessary header files.
-	(FT_COMPONENT): Define.
-	(ps_property_set): Tag with `FT_BASE_CALLBACK_DEF'.
-	(ps_property_get): Tag with `FT_BASE_CALLBACK_DEF'.
-	Harmonize declaration with corresponding function typedef.
-
-2017-12-27  Werner Lemberg  <wl@gnu.org>
-
-	Provide support for intra-module callback functions.
-
-	This is needed especially for `make multi' with C++.
-
-	* include/freetype/config/ftconfig.h (FT_BASE_CALLBACK,
-	FT_BASE_CALLBACK_DEF): New macros.
-
-2017-12-25  Ewald Hew  <ewaldhew@gmail.com>
-
-	Move PostScript drivers' property handlers to `base'.
-
-	This reduces the amount of duplicated code across PostScript
-	drivers.
-
-	* src/cff/cffdrivr.c, src/cid/cidriver.c, src/type1/t1driver.c
-	({cff,cid,t1}_property_{get,set}): Moved to...
-	* include/freetype/internal/ftpsprop.h: ...this new file.
-	(ps_property_{get,set}): New functions to replace moved ones.
-
-	* src/base/ftpsprop.c: New file that implements above functions.
-
-	* include/freetype/internal/internal.h
-	(FT_INTERNAL_POSTSCRIPT_PROPS_H): New macro.
-
-	* src/cff/cffdrivr.c, src/cid/cidriver.c, src/type1/t1driver.c:
-	Updated.
-
-	* src/base/Jamfile, src/base/rules.mk (BASE_SRC), src/base/ftbase.c:
-	Updated.
-
-2017-12-20  Werner Lemberg  <wl@gnu.org>
-
-	Speed up FT_Set_Var_{Design,Blend}_Coordinates if curr == new.
-
-	We exit early if the current design or blend coordinates are
-	identical to the new ones.
-
-	* src/truetype/ttgxvar.c (tt_set_mm_blend, TT_Set_Var_Design):
-	Implement it, returning internal error code -1 if there will be no
-	variation change.
-
-	* src/type1/t1load.c (t1_set_mm_blend): Ditto.
-
-	* src/base/ftmm.c (FT_Set_Var_Design_Coordinates,
-	FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates): Updated.
-
-2017-12-18  Werner Lemberg  <wl@gnu.org>
-
-	[sfnt] Fix charmap type 2 iterator (#52646).
-
-	The subsetted demo font of the report that exhibits the bug has a
-	very unusual type 2 cmap for Unicode(!): It contains only two
-	sub-headers, one for one-byte characters (covering the range 0x20 to
-	0xFA), and a second one for higher byte 0x01 (just for character
-	code U+0131).
-
-	Before this commit, the iterator wasn't able to correctly handle a
-	sub-header for higher byte 0x01.
-
-	* src/sfnt/ttcmap.c (tt_cmap2_char_next): Fix character increment
-	for outer loop.
-
-2017-12-18  Matthias Clasen  <matthias.clasen@gmail.com>
-
-	[truetype] Fix clamping, minor tracing code beautification.
-
-	* src/truetype/ttgxvar.c (ft_var_to_normalized): Trace number of
-	design coordinates.
-	Use clamped value.
-
-2017-12-18  Werner Lemberg  <wl@gnu.org>
-
-	* src/*/*: Only use `ft_' and `FT_' variants of stdc library stuff.
-
-2017-12-18  Werner Lemberg  <wl@gnu.org>
-
-	* src/truetype/ttgxvar.c (tt_face_vary_cvt): Add size guard (#52688).
-
-2017-12-18  Werner Lemberg  <wl@gnu.org>
-
-	[truetype] Fix previous commit.
-
-	* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Correctly handle
-	unhinted phantom points, which must be properly scaled.
-
-2017-12-18  Werner Lemberg  <wl@gnu.org>
-
-	[truetype] Don't apply HVAR and VVAR deltas twice (#52683).
-
-	* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Always adjust
-	`pp1' to `pp4', except if we have an HVAR and/or VVAR table.
-
-	* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Handle
-	alternative code branch identically w.r.t. presence of an HVAR
-	and/or VVAR table.
-
-2017-12-17  Jonathan Kew  <jfkthame@gmail.com>
-
-	[truetype] Correctly handle variation font phantom points (#52683).
-
-	* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix phantom
-	point indices.
-
-2017-12-17  Jonathan Kew  <jfkthame@gmail.com>
-
-	Fix incorrect advance width scaling (#52683).
-
-	* src/base/ftadvance.c (FT_Get_Advances): Always respect the
-	FT_LOAD_NO_SCALE flag if present.
-
-2017-12-16  Alexei Podtelezhnikov  <apodtele@gmail.com>
-
-	* builds/windows/vc2010/freetype.vcxproj: AfterBuild copy.
-	* objs/.gitignore: Ignore almost everything.
-
-2017-12-11  Werner Lemberg  <wl@gnu.org>
-
-	Fix compiler warning (#52640).
-
-	* src/base/ftbitmap.c (ft_bitmap_assure_buffer): Remove unused
-	variable.
-
-2017-12-08  Azzuro  <azzuro@team-mediaportal.com>
-
-	* builds/windows/vc2010/freetype.vcxproj: Adjust output directory.
-
-	This allows builds with different configurations in parallel.
-
-2017-12-08  Werner Lemberg  <wl@gnu.org>
-
-	Fix `make setup dos', second try (#52622).
-
-	* builds/detect.mk (dos_setup): Don't use literal `>' character at
-	all.  Mixing the different escaping rules from make, dos, and
-	windows is too fragile.
-
-2017-12-08  Werner Lemberg  <wl@gnu.org>
-
-	[docmaker] Fix code section parsing.
-
-	Stuff like
-
-	  {
-	    <bla>
-	  }
-
-	confused the parser, which incorrectly treated `<bla>' as a markup
-	tag.
-
-	* src/tools/docmaker/content.py (ContentProcessor::process_content):
-	Apply `re_markup_tags' only outside of code sections.
-
-2017-12-08  Werner Lemberg  <wl@gnu.org>
-
-	New `ftdriver.h' file, covering all driver modules.
-
-	This reduces redundancy and increases synergy; it also reduces the
-	number of header files.
-
-	* include/freetype/config/ftheader.h (FT_DRIVER_H): New macro.
-	(FT_AUTOHINTER_H, FT_CFF_DRIVER_H, FT_TRUETYPE_DRIVER_H,
-	FT_PCF_DRIVER_H, FT_TYPE1_DRIVER_H): Make them aliases to
-	FT_DRIVER_H.
-
-	* include/freetype/ftautoh.h, include/freetype/ftcffdrv.h,
-	include/freetype/ftpcfdrv.h, include/freetype/ftt1drv.h,
-	include/freetype/ftttdrv.h: Replaced with...
-	* include/freetype/ftdriver.h: ...this new file.
-	(FT_CFF_HINTING_ADOBE, FT_T1_HINTING_ADOBE): Renamed to...
-	(FT_HINTING_ADOBE): ... this new macro.
-	(FT_CFF_HINTING_FREETYPE, FT_T1_HINTING_FREETYPE): Renamed to...
-	(FT_HINTING_FREETYPE): ... this new macro.
-
-	* src/*/*: Updated accordingly.
-
-2017-12-08  Werner Lemberg  <wl@gnu.org>
-
-	Move `ftdriver.h' to `ftdrv.h'.
-
-	* include/freetype/internal/ftdriver.h: Renamed to...
-	* include/freetype/internal/ftdrv.h: ... this name.
-
-	* include/freetype/internal/internal.h (FT_INTERNAL_DRIVER_H):
-	Updated.
-
-2017-12-08  Werner Lemberg  <wl@gnu.org>
-
-	Fix access to uninitalized memory (#52613).
-
-	Also reported as
-
-	  https://bugs.chromium.org/p/chromium/issues/detail?id=791317
-
-	* src/base/ftbitmap.c (ft_bitmap_assure_buffer): If increasing the
-	bitmap size needs a larger bitmap buffer, assure that the new memory
-	areas are initialized also.
-
-2017-12-08  Werner Lemberg  <wl@gnu.org>
-
-	Fix `make setup dos' (#52622).
-
-	* builds/detect.mk (dos_setup): Properly escape literal `>'
-	character.
-
-2017-12-07  Werner Lemberg  <wl@gnu.org>
-
-	Fix C++ compilation.
-
-	* src/psaux/psauxmod.h: Use FT_CALLBACK_TABLE macro where necessary.
-
-	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Fix warning.
-
-2017-12-07  Werner Lemberg  <wl@gnu.org>
-
-	Fix `make multi'.
-
-	* include/freetype/internal/fttrace.h: Remove unused tracing macros.
-	s/pshalgo2/pshalgo/.
-	Add `trace_cffdecode'.
-	* src/pshinter/pshalgo.c (FT_COMPONENT): Updated.
-
-	* src/cff/cffload.c: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
-	* src/cff/cffobjs.c: Include FT_SERVICE_METRICS_VARIATIONS_H and
-	FT_SERVICE_CFF_TABLE_LOAD_H.
-
-	* src/cid/cidriver.c: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
-
-	* src/psaux/cffdecode.c: Include FT_FREETYPE_H and
-	FT_INTERNAL_DEBUG_H.
-	(FT_COMPONENT): Define.
-	* src/psaux/cffdecode.h: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
-	* src/psaux/psauxmod.h: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
-	Declare `cff_builder_funcs' and `ps_builder_funcs'.
-	* src/psaux/psft.c: Include `psobjs.h' and `cffdecode.h'.
-	* src/psaux/psobjs.c : Include `psauxmod.h'.
-
-2017-12-07  Werner Lemberg  <wl@gnu.org>
-
-	* include/freetype/config/ftheader.h: Some clean-up.
-
-	This commit removes documentation of deprecated macros and does some
-	minor streamlining.
-
-2017-12-06  Werner Lemberg  <wl@gnu.org>
-
-	* builds/symbian/bld.inf: Updated.
-
-2017-12-06  Werner Lemberg  <wl@gnu.org>
-
-	New header file `ftparams.h' that collects all parameter tags.
-
-	* include/freetype/config/ftheader.h (FT_PARAMETER_TAGS_H): New
-	macro.
-	(FT_TRUETYPE_UNPATENTED_H, FT_UNPATENTED_HINTING_H): Define it to
-	`ftparams.h'.
-
-	* include/freetype/ftautoh.h, include/freetype/ftcffdrv.h,
-	include/freetype/ftincrem.h, include/freetype/ftlcdfil.h,
-	include/freetype/ftsnames.h, include/freetype/ftt1drv.h: Include
-	FT_PARAMETER_TAGS_H.
-	Move FT_PARAM_TAG_XXX definitions to...
-	* include/freetype/ftparams.h: ...this new file.
-
-	* include/freetype/ttunpat.h: Remove.  No longer needed.
-
-2017-12-05  Werner Lemberg  <wl@gnu.org>
-
-	Improve tracing messages by using singular and plural forms.
-
-	* src/*/*.c: Implement it.
-
-2017-12-04  Werner Lemberg  <wl@gnu.org>
-
-	[truetype] Allow shared points in `cvar' table (#52532).
-
-	* src/truetype/ttgxvar.c (tt_face_vary_cvt): Implement it by copying
-	and adjusting the corresponding code from
-	`TT_Vary_Apply_Glyph_Deltas'.
-
-2017-11-28  Werner Lemberg  <wl@gnu.org>
-
-	[truetype] Improving tracing of composite glyphs.
-
-	* src/truetype/ttgload.c (TT_Load_Composite_Glyph)
-	[FT_DEBUG_LEVEL_TRACE]: Show composite glyph information.
-
-2017-11-27  Werner Lemberg  <wl@gnu.org>
-
-	[type1] Allow (again) `/Encoding' with >256 elements (#52464).
-
-	In version 2.6.1, this has been disallowed to better reject
-	malformed fonts; however, this restriction was too strong.  This
-	time, we only take the first 256 elements into account, since
-	encoding arrays are always accessed with a 8bit integer, according
-	to the PostScript Language Reference.
-
-	* src/type1/t1load.c (parse_encoding): Implement it.
-
-2017-11-27  Jan Alexander Steffens (heftig)  <jan.steffens@gmail.com>
-
-	Fix last commit (#52522).
-
-	* builds/freetype.mk: Set `FT_OPTION_H' and `FTOPTION_FLAG'
-	properly if we have `ftoption.h' in `BUILD_DIR'.
-
-2017-11-24  Werner Lemberg  <wl@gnu.org>
-
-	[unix] Install a massaged `ftoption.h' file (#51780).
-
-	* builds/unix/configure.raw (ftoption_set, ftoption_unset): New
-	auxiliary functions to construct...
-	(FTOPTION_H_SED): ... this new variable.
-	Apply it as a sed argument while copying `ftoption.h' to the
-	`builds/unix' directory (using `AC_CONFIG_FILES').
-	Simplify code of test that checks cpp's computation of bit length
-	(the test previously created an empty `ftoption.h' file and deleted
-	it immediately afterwards); without this change, it can happen on my
-	GNU/Linux box that `configure's execution of `config.status' doesn't
-	create `ftoption.h' (no idea why this happens).
-
-	* builds/unix/install.mk (install): Install
-	`builds/unix/ftoption.h'.
-
-	* builds/unix/unix-def.in (DISTCLEAN): Updated.
-
-	* builds/unix/.gitignore: Updated.
-
-2017-11-23  Tor Andersson  <tor.andersson@artifex.com>
-
-	Silence unused function warnings (#52465).
-
-	Some static function declarations cause unused function warnings if
-	certain config options are turned off via `ftoption.h'.
-
-	* src/base/ftbase.h, src/base/ftrfork.c, src/sfnt/ttbdf.h,
-	src/truetype/ttgxvar.h: Add #ifdef guards around these sections.
-
-2017-11-22  Ewald Hew  <ewaldhew@gmail.com>
-
-	* src/psaux/psft.c (cf2_setGlyphWidth): Check format before setting.
+	* src/tools/apinames.c (main): Fix error message.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4377
+	  https://savannah.nongnu.org/patch/?9796
 
-2017-11-22  Ewald Hew  <ewaldhew@gmail.com>
+2019-04-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	[psaux] Fix CFF advance widths. (#52466)
+	[smooth] Fix segfault in direct mode (#56092).
 
-	Glyph advance widths were being written to the new `PS_Decoder' but not
-	saved to the underlying format specific decoder. This caused pure CFF
-	fonts to have bad advance width.
+	* src/base/ftoutln.c (FT_Outline_Render): Set missing clip_box for
+	direct mode.
+	* src/smooth/ftgrays.c (gray_raster_render): Use it.
 
-	* include/freetype/internal/psaux.h (PS_Decoder): Change `glyph_width'
-	field to pointer.
-	Remove unused fields.
-	* src/psaux/psobjs.c (ps_decoder_init): Change `glyph_width' from copy
-	to reference.
-	Remove unused.
-	* src/psaux/psft.c (cf2_setGlyphWidth): Update code.
+2019-04-06  Werner Lemberg  <wl@gnu.org>
 
-2017-11-15  Vlad Tsyrklevich  <vtsyrklevich@google.com>
+	* src/sfnt/ttcmap.c (tt_get_glyph_name): Pacify compiler (#56061).
 
-	* include/freetype/ftrender.h: Fix `FT_Renderer_RenderFunc' type.
+	This is for Visual Studio 2019 on ARM.
 
-2017-11-14  Nikolaus Waxweiler  <madigens@gmail.com>
+2019-04-06  Werner Lemberg  <wl@gnu.org>
 
-	Use Adobe hinting engine for `light' hinting of both CFF and Type 1.
+	For distribution, replace `.tar.bz2' with `.tar.xz' bundles.
 
-	Since Ewald Hew factored the Adobe hinting engine out of the CFF
-	driver code, we can now use it on Type 1 (and CID) font formats, as
-	both have the same hinting philosophy.
+	* builds/toplevel.mk (build): Do it.
 
-	This change activates the Adobe hinter when in LIGHT mode, and
-	therefore always unless explicitly asking for the auto-hinter.  This
-	makes LIGHT behavior consistent with CFF fonts.  As of this commit,
-	the hinting engine table looks as follows.
+	* README, docs/CHANGES, docs/release: Updated.
 
-	             LIGHT  NORMAL
-	  -------------------------
-	   TrueType  Auto   v40
-	   CFF       Adobe  Adobe
-	   Type 1    Adobe  Adobe
+2019-04-06  Antony Lee  <anntzer.lee@gmail.com>
 
-2017-11-10  Yuri Levchenko  <yuri_levchenko@boolat.com>
+	Make `glyph_name' parameter to `FT_Get_Name_Index' a `const'.
 
-	* CMakeLists.txt: Add `DISABLE_FORCE_DEBUG_PREFIX' option.
+	* include/freetype/freetype.h (FT_Get_Name_Index),
+	include/freetype/internal/ftobjs.h (FT_Face_GetGlyphNameIndexFunc),
+	include/freetype/internal/services/svgldict.h
+	(FT_GlyphDict_NameIndexFunc), src/base/ftobjs.c (FT_Get_Name_Index),
+	src/cff/cffdrivr.c (cff_get_name_index), src/sfnt/sfdriver.c
+	(sfnt_get_name_index), src/type1/t1driver.c (t1_get_name_index),
+	src/type42/t42drivr.c (t42_get_name_index): Add `const' to second
+	argument.
 
-2017-11-06  Alexei Podtelezhnikov  <apodtele@gmail.com>
+2019-03-31  Armin Hasitzka  <prince.cherusker@gmail.com>
 
-	* src/base/ftobjs.c (FT_Load_Glyph): Relocate condition.
+	[cff] Fix boundary checks.
 
-2017-11-06  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	642bc7590c701c8cd35a9f60fa899cfa518b17ff introduced dynamically
+	allocated memory when parsing CFF files with the "old" engine.  Bounds
+	checks have never been updated, however, leading to pointless
+	comparisons of pointers in some cases.  This commit presents a
+	solution for bounds checks in the CFF module with an extended logic
+	for the "old" engine while staying as concise as possible for the
+	"new" one.
 
-	* src/smooth/ftgrays.c (gray_set_cell): Fix uninitialized variables.
+	* src/cff/cffparse.h: Introduce the struct `CFF_T2_StringRec' and
+	the additional field `t2_strings' within `CFF_ParserRec'.
 
-2017-11-03  Ewald Hew  <ewaldhew@gmail.com>
-
-	[psaux] Fix PostScript interpreter rewinding in Type 1 mode. (#52251)
-
-	The interpreter in Type 1 mode rewinds the charstring after collecting
-	all hints for building the initial hintmap (commit d52dd7f). However,
-	some charstrings use `endchar' in a final subroutine call, rewinding to
-	the start of that subroutine, and only a small section of the actual
-	glyph is drawn.
-
-	* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdENDCHAR>:
-	Ensure we are on the top level charstring before rewinding.
-
-2017-11-03  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
-
-	[truetype] Add more tricky fonts.
-
-	See the report by Yang Yinsen.
-	https://lists.gnu.org/archive/html/freetype-devel/2017-11/msg00000.html
-
-	* src/truetype/ttobjs.c (trick_names): Add `DFGothic-EB',
-	`DFGyoSho-Lt', `DFHSGothic-W5', `DFHSMincho-W3' and `DFHSMincho-W7'.
-	(tt_check_trickyness_sfnt_ids): Add checksums for DFGothic-EB,
-	DFGyoSho-Lt, DFHSGothic-W5, DFHSMincho-W3 and DFHSMincho-W7.  Also
-	add checksums for DLCLiShu and DLCHayBold which their family names
-	were already listed but their checksums were previously unknown.
-
-2017-11-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
-
-	[smooth] Fix complex rendering at high ppem.
-
-	We used to split large glyphs into horizontal bands and continue
-	bisecting them still horizontally if that was not enough.  This is
-	guaranteed to fail when a single scanline cannot fit into the
-	rendering memory pool.  Now we bisect the bands vertically so that
-	the smallest unit is a column of the band height, which is guranteed
-	to fit into memory.
-
-	* src/smooth/ftgrays.c (gray_convert_glyph): Implement it.
-
-2017-10-20  Alexei Podtelezhnikov  <apodtele@gmail.com>
-
-	[smooth] Improve complex rendering at high ppem.
-
-	At large sizes almost but not exactly horizontal segments can quickly
-	drain the rendering pool. This patch at least avoids filling the pool
-	with trivial cells. Beyond this, we can only increase the pool size.
-
-	Reported, analyzed, and tested by Colin Fahey.
-
-	* src/smooth/ftgrays.c (gray_set_cell): Do not record trivial cells.
-
-2017-10-20  Alexei Podtelezhnikov  <apodtele@gmail.com>
-
-	[base] Improve tracing in FT_Load_Glyph, FT_*_Size.
-
-	* src/base/ftobjs.c (FT_Load_Glyph): Tag tracing messages with
-	function name, glyph index, and load flags.
-	(FT_Select_Metrics, FT_Request_Metrics): Remove all tracing.
-	(FT_Select_Size, FT_Request_Size): Improve tracing.
-
-2017-10-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
-
-	[base] Improve tracing in FT_Render_Glyph.
-
-	* src/base/ftobjs.c (FT_Render_Glyph_Internal): Add total coverage
-	calculations and downgrade Netpbm dump to bitmap:7.
-
-2017-10-15  Ewald Hew  <ewaldhew@gmail.com>
-
-	[cff] Fix segfault on missing `psaux' (#52218)
-
-	* src/cff/cffload.c (cff_done_blend): Add a check for possible nullptr.
-
-	* modules.cfg: Update dependency list.
-
-2017-10-15  Alexei Podtelezhnikov  <apodtele@gmail.com>
-
-	[base, cff] Fix MSVC warnings.
-
-	* src/base/ftobjs.c (FT_New_Library): C4702: unreachable code.
-	(ft_glyphslot_preset_bitmap): C4244: possible loss of data.
-	* src/cff/cffload.c (cff_blend_doBlend): C4244: possible loss of data.
-	Turn `sum' into unsigned.
-
-2017-10-14  Alexei Podtelezhnikov  <apodtele@gmail.com>
-
-	[base] Netpbm image tracing.
-
-	* src/base/ftobjs.c (FT_Load_Glyph): Trace bitmap size.
-	(FT_Render_Glyph_Internal): Trace bitmap in Netpbm format.
-
-	* src/smooth/ftgrays.c (gray_sweep): Sweep remnants of span tracing.
-
-2017-10-14  Alexei Podtelezhnikov  <apodtele@gmail.com>
-
-	* builds/windows/ftdebug.c (FT_Message): Print to stderr.
-	* builds/wince/ftdebug.c (FT_Message): Ditto.
-
-2017-10-14  Behdad Esfahbod  <behdad@behdad.org>
-
-	[afshaper] Delay creating `hb_set' objects until needed.
-
-	In runs on Noto Naskh Arabic, this results in 89 sets created
-	instead of 340 before.  Makes auto-hinter setup with HarfBuzz
-	enabled 20% to 30% faster.
-
-	* src/autofit/afshaper.c (af_shaper_get_coverage): Implement it.
-
-2017-10-12  Ewald Hew  <ewaldhew@gmail.com>
-
-	[type1, cid] Add hinting engine switch.
-
-	Implement property service in `type1' and `cid' drivers to allow
-	switching between FreeType or Adobe hinting engine when both are
-	available.
-
-	* src/cid/cidriver.c (cid_property_{set,get}, cid_services),
-	src/type1/t1driver.c (t1_property_{set,get}, t1_services): Add
-	Properties service.
-
-	* src/cid/cidobjs.c (cid_driver_init), src/type1/t1objs.c
-	(T1_Driver_Init): Add default property values.
-
-2017-10-12  Ewald Hew  <ewaldhew@gmail.com>
-
-	Add T1_CONFIG_OPTION_OLD_ENGINE configuration option.
-
-	This controls whether the old Type 1 engine gets compiled into FreeType.
-	It is disabled by default.
-
-	* devel/ftoption.h, include/freetype/config/ftoption.h
-	(T1_CONFIG_OPTION_OLD_ENGINE): New macro.
-
-	* include/freetype/internal/psaux.h (PS_Decoder): Remove unused field.
-	* include/freetype/internal/psaux.h, src/cid/cidgload.c
-	(cid_load_glyph), src/psaux/psauxmod.c, src/psaux/psobjs.c
-	(ps_builder_add_point), src/psaux/t1decode.c
-	(t1_lookup_glyph_by_stdcharcode, t1_decoder_parse_glyph,
-	t1operator_seac, t1_decoder_parse_charstrings), src/psaux/t1decode.h,
-	src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Surround
-	relevant code with macro.
-	Minor code changes.
-
-2017-10-12  Ewald Hew  <ewaldhew@gmail.com>
-
-	Extract width parsing from Type 1 parser.
-
-	Duplicate the fast advance width calculations from the old parser.
-	This is to facilitate adding options for compiling out the old parser.
-
-	* src/psaux/t1decode.{c,h} (t1_decoder_parse_metrics): New function.
-	* include/freetype/internal/psaux.h (T1_Decoder_Funcs): New entry
-	`parse_metrics'.
-	* src/psaux/psauxmod.c: Set the new entry.
-
-	* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String),
-	src/cid/cidgload.c (cid_load_glyph): Separate
-	conditional for selecting engine.
-
-2017-10-09  Werner Lemberg  <wl@gnu.org>
-
-	* src/base/ftoutln.c (FT_Outline_Translate): Fix integer overflow.
+	* src/cff/cffparse.c (cff_parser_within_limits): Move all boundary
+	checks into this new function and update the rest of `cffparse.c' to
+	use it.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/chromium/issues/detail?id=772775
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12137
 
-2017-10-08  Werner Lemberg  <wl@gnu.org>
+2019-03-20  Werner Lemberg  <wl@gnu.org>
 
-	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Integer overflows.
+	[autofit] Fix Mongolian blue zone characters.
+
+	* src/autofit/afblue.dat: Use U+200D (ZERO-WIDTH JOINER) characters
+	to get medial forms for some Mongolian characters.
+	* src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+2019-03-19  Werner Lemberg  <wl@gnu.org>
+
+	[autofit] Add support for Mongolian script.
+
+	As a de-facto standard, layouts using this script are constructed
+	horizontally line by line, then the lines are rotated clockwise for
+	vertical display.
+
+	* src/autofit/afblue.dat: Add blue zone data for Mongolian.
+	* src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+	* src/autofit/afscript.h: Add Mongolian standard characters.
+
+	* src/autofit/afranges.c, src/autofit/afstyles.h: Add Mongolian
+	data.
+
+2019-03-15  Werner Lemberg  <wl@gnu.org>
+
+	* Version 2.10.0 released.
+	==========================
+
+
+	Tag sources with `VER-2-10-0'.
+
+	* docs/VERSION.TXT: Add entry for version 2.10.0.
+	* docs/CHANGES: Updated.
+
+	* README, Jamfile (RefDoc), src/base/ftver.rc,
+	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.9.1/2.10.0/, s/291/2100/.
+
+	* include/freetype/freetype.h (FREETYPE_MINOR): Set to 10.
+	(FREETYPE_PATCH): Set to 0.
+
+	* builds/unix/configure.raw (version_info): Set to 23:0:17.
+	* CMakeLists.txt (VERSION_MINOR): Set to 10.
+	(VERSION_PATCH): Set to 0.
+
+	* builds/toplevel.mk (version, winversion): Since the minor version
+	number has two digits now, never omit the patch number.  We would
+	get ambiguous zip file names otherwise.
+	(dist): Remove remnants of `docmaker' tool.
+	(do-dist): Remove unused intermediate files.
+
+	* src/cff/cffparse.c (destrict_c2s_item): Guard function with
+	CFF_CONFIG_OPTION_OLD_ENGINE macro.
+
+2019-03-07  Andrei Alexeyev  <0x416b617269@gmail.com>
+            Werner Lemberg  <wl@gnu.org>
+
+	Fix invalid function pointer casts.
+
+	This change should allow Freetype to work on WASM/Emscripten without
+	needing `-s EMULATE_FUNCTION_POINTER_CASTS=1'.
+
+	* src/autofit/afdummy.c (af_dummy_hints_apply): Fix signature.
+
+	* src/cid/cidload.c (cid_parse_font_matrix, parse_fd_array,
+	parse_expansion_factor, parse_font_name): Return `void', not
+	`FT_Error'.
+
+	* include/freetype/internal/ftobjs.h (FT_CMap_CharVarIsDefaultFunc):
+	Fix signature.
+
+2019-03-05  Werner Lemberg  <wl@gnu.org>
+
+	[base] Handle numeric overflow (#55827).
+
+	* src/base/ftglyph.c (FT_Glyph_Get_CBox): Use `FT_PIX_CEIL_LONG'.
+
+2019-03-05  Sebastian Rasmussen  <sebras@gmail.com>
+
+	[psaux] Fix use of uninitialized memory (#55832).
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString): The call to
+	`cf2_arrstack_setCount' may fail because the allocator ran out of
+	memory.  When this happens the stack is still written to before the
+	error condition is checked.  This means that FreeType writes outside
+	of allocated memory.  This commit moves the error check prior to the
+	stack assignment, hence the function now properly returns with an
+	error condition.
+
+2019-02-23  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftbitmap.c (FT_Bitmap_Blend): No fractional offsets.
+
+	The function only provided a framework without an actual
+	implementation, which this commit removes.
+
+2019-02-23  Werner Lemberg  <wl@gnu.org>
+
+	* src/tools/update-copyright-year: Insert `(C)'.
+
+2019-02-21  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	[truetype] Mask numeric overflows.
+
+	* src/truetype/ttinterp.c (Move_CVT, Move_CVT_Stretched, Ins_MIRP):
+	Mask numeric overflows.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3579
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11681
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11734
 
-2017-10-07  Werner Lemberg  <wl@gnu.org>
+2019-02-21  Armin Hasitzka  <prince.cherusker@gmail.com>
 
-	[sfnt] Adjust behaviour of PS font names for variation fonts.
+	[psaux] Mask numeric overflow.
 
-	* src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Use a named instance's
-	PS name only if no variation is applied.
-
-2017-10-07  Werner Lemberg  <wl@gnu.org>
-
-	[cff, truetype] Adjust behaviour of named instances.
-
-	This commit completely separates the interaction between named
-	instances and variation functions.  In particular, resetting the
-	variation returns to the current named instance (if set) and not to
-	the base font.
-
-	As a side effect, variation functions no longer change the named
-	instance index.
-
-	* src/cff/cffobjs.c (cff_face_init): Use MM service's `set_instance'
-	function.
-	Also apply `MVAR' table to named instances.
-
-	* src/truetype/ttgxvar.c (TT_Get_MM_Var): Add cast.
-	(tt_set_mm_blend): No longer check whether requested variation
-	coincides with a named instance.
-	(TT_Set_Var_Design): Use current named instance for default
-	coordinates.
-	* src/truetype/ttobjs.c (tt_face_init): Use `TT_Set_Named_Instance'.
-
-2017-10-07  Werner Lemberg  <wl@gnu.org>
-
-	Make `FT_Set_Named_Instance' work.
-
-	* src/cff/cffdrivr.c (cff_set_instance): New function.
-	(cff_service_multi_masters): Register it.
-
-	* src/truetype/ttgxvar.c (TT_Set_Named_Instance): New function.
-	* src/truetype/ttgxvar.h: Updated.
-	* src/truetype/ttdriver.c (tt_service_gx_multi_masters): Register
-	it.
-
-	* src/type1/t1load.c (T1_Reset_MM_Blend): New function.
-	* src/type1/t1load.h: Updated.
-	* src/type1/t1driver.c (t1_service_multi_masters): Register it.
-
-2017-10-07  Werner Lemberg  <wl@gnu.org>
-
-	Make `FT_FACE_FLAG_VARIATION' work.
-
-	* include/freetype/internal/tttypes.h (TT_Face): Remove
-	`is_default_instance'; this can be replaced with a combination of
-	`FT_IS_VARIATION' and `FT_IS_INSTANCE'.
-
-	* src/cff/cffdrivr.c (cff_get_advances): Updated.
-
-	* src/sfnt/sfdriver.c (sfnt_get_ps_name), src/sfnt/sfobjs.c
-	(sfnt_init_face): Updated.
-
-	* src/truetype/ttdriver.c (tt_get_advances), src/truetype/ttgload.c
-	(TT_Process_Simple_Glyph, load_truetype_glyph, IS_DEFAULT_INSTANCE),
-	src/truetype/ttgxvar.c (tt_set_mm_blend): Updated.
-	* src/truetype/ttgxvar.c (TT_Set_MM_Blend, TT_Set_Var_Design):
-	Handle `FT_FACE_FLAG_VARIATION'.
-
-	* src/type1/t1load.c (T1_Set_MM_Blend, T1_Set_MM_Design): Handle
-	`FT_FACE_FLAG_VARIATION'.
-
-2017-10-07  Werner Lemberg  <wl@gnu.org>
-
-	New function `FT_Set_Named_Instance'.
-
-	No effect yet.
-
-	* src/base/ftmm.c (FT_Set_Named_Instance): New function.
-
-	* include/freetype/ftmm.h: Updated.
-
-2017-10-07  Werner Lemberg  <wl@gnu.org>
-
-	Add macros for checking whether a font variation is active.
-
-	* include/freetype/freetype.h (FT_FACE_FLAG_VARIATION,
-	FT_IS_VARIATION): New macros.
-	No effect yet.
-
-2017-10-07  Werner Lemberg  <wl@gnu.org>
-
-	Add framework for setting named instance in MM service.
-
-	* include/freetype/internal/services/svmm.h (FT_Set_Instance_Func):
-	New function typedef.
-	(MultiMasters): Add `set_instance' member.
-	(FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated.
-
-	* src/cff/cffdrivr.c (cff_service_multi_masters),
-	src/truetype/ttdriver (tt_service_gx_multi_masters),
-	src/type1/t1driver.c (t1_service_multi_masters): Updated.
-
-2017-10-07  Werner Lemberg  <wl@gnu.org>
-
-	[type1] Minor code shuffling.
-
-	* src/type1/t1load.c (T1_Set_MM_Blend): Make it a wrapper of...
-	(t1_set_mm_blend): ...this new function.
-	(T1_Set_MM_Design): Use `t1_set_mm_blend'.
-
-2017-10-05  Werner Lemberg  <wl@gnu.org>
-
-	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Fix integer
+	* src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Mask numeric
 	overflow.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3539
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13041
 
-2017-10-05  Werner Lemberg  <wl@gnu.org>
+2019-02-16  Wink Saville  <wink@saville.com>
 
-	Fix compiler warnings.
+	* src/autofit/afwarp.h (af_warper_compute): Fix declaration.
 
-	* src/cff/cffdrivr.c (cff_ps_get_font_extra): Avoid code that relies
-	on numeric overflow.
-	Add cast.
+2019-02-02  Nikolaus Waxweiler  <madigens@gmail.com>
 
-	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Fix variable
-	types, add cast.
+	[truetype] Apply MVAR hasc, hdsc and hlgp metrics to current FT_Face metrics.
 
-2017-10-04  John Tytgat  <John.Tytgat@esko.com>
+	Instead of setting typo or win metrics as the new `FT_Face' metrics
+	indiscriminately, apply only typo deltas to the currently active
+	`FT_Face' metrics.  This prevents line height differences when the
+	default outlines were used as the regular face and instances for
+	everything else, for example.
 
-	[cff] Add support for `FSType'.
+	* src/truetype/ttgxvar.c (tt_apply_mvar): Implement.
 
-	* include/freetype/internal/cfftypes.h (CFF_FontRec): Add
-	`font_extra' entry.
+2019-02-02  Nikolaus Waxweiler  <madigens@gmail.com>
 
-	* src/cff/cffdrivr.c (cff_ps_get_font_extra): New function to
-	retrieve FSType info from the embedded PostScript data.
-	(cff_service_ps_info): Register function.
+	[sfnt] Use typo metrics if OS/2 fsSelection USE_TYPO_METRICS bit is set.
 
-	* src/cff/cffload.c (cff_font_done): Free `font_extra'.
+	If the `OS/2' table exists and `fsSelection' bit 7
+	(USE_TYPO_METRICS) is set, use the `sTypo*' set of values to compute
+	the `FT_Face's ascender, descender, and height.  Otherwise, fall
+	back to old behavior.
 
-2017-09-30  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	* src/sfnt/sfobjs.c (sfnt_load_face): Implement.
 
-	Signedness fixes in bitmap presetting.
+2019-01-18  John Tytgat  <John.Tytgat@esko.com>
+
+	[sfnt] Handle TT fonts having two PostScript font names (#55471).
+
+	* src/sfnt/sfdriver.c (sfnt_get_name_id): Prefer English over any
+	other language found for PostScript font names.
+
+2019-01-08  Chris Liddell <chris.liddell@artifex.com>
+
+	[psaux] Fix closepath (#55414).
+
+	All of the Type 1 path building is done with code common to the
+	revised CFF engine, with the exception of closepath, which was still
+	calling ps_builder_close_contour(), thus previously cached segments
+	were not always written to the path, and glyph corruption, or even
+	invalid outlines were possible.
+
+	* src/psauc/psinterp.c (cf2_interpT2CharString) <cf2_cmdCLOSEPATH>:
+	Switch to calling `cf2_glyphpath_closeOpenPath'.
+
+2018-12-29  Werner Lemberg  <wl@gnu.org>
+
+	* src/autofit/aflatin2.c: Some fixes from `aflatin.c' (#55310).
+
+2018-12-25  Werner Lemberg  <wl@gnu.org>
+
+	* src/psaux/cffdecode.c (cff_operaor_seac): Fix numeric overflow.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3514.
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11915
 
-	* src/raster/ftrend1.c (ft_raster1_render): Exlicitly signed height.
-	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
-	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Explicitly unsigned
-	subtraction.
+2018-12-12  Werner Lemberg  <wl@gnu.org>
 
-2017-09-29  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	[gxvalid] Fix compiler warnings.
 
-	Bitmap metrics presetting [2/2].
+	* src/gxvalid/gxvjust.c (gxv_just_check_max_gid),
+	src/gxvalid/gxvmort.c (gxv_mort_coverage_validate): Use `FT_UNUSED'.
 
-	* src/base/ftobjs.c (FT_Load_Glyph): Preset the bitmap metrics when
-	appropriate but `FT_Render_Glyph' is not called.
-	* include/freetype/freetype.h (FT_GlyphSlotRec): Document the change.
+2018-12-11  Werner Lemberg  <wl@gnu.org>
 
-2017-09-28  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	* src/truetype/ttgload.c (TT_Hint_Glyph): Remove useless test.
 
-	[smooth, raster] Miscellaneous cleanups.
+	`control_len' only gets its value from `n_ins' (and vice versa),
+	which is always read as `unsigned short' and thus can't be larger
+	than 0xFFFF.
 
-	* src/raster/ftrend1.c (ft_raster1_render): Clean up the exit.
-	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Reduce
-	translations and clean up the exit.
-	(ft_smooth_render_lcd, ft_smooth_render_lcd): Remove unused `error'.
+2018-12-04  Werner Lemberg  <wl@gnu.org>
 
-2017-09-28  Ben Wagner  <bungeman@google.com>
-
-	[truetype] Really, really fix #52082.
-
-	* src/truetype/ttinterp.c (Ins_MDRP): Correct conditional.
-
-2017-09-28  Werner Lemberg  <wl@gnu.org>
-
-	* src/psaux/psintrp.c (cf2_doStems): Fix integer overflow.
+	[bdf] Ignore data after `ENDFONT'.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3510
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10798
 
-2017-09-28  Ewald Hew  <ewaldhew@gmail.com>
+	* src/bdf/bdflib.c (_bdf_parse_end): New function.
+	(_bdf_parse_glyphs): Switch to `_bdf_parse_end' after `ENDFONT' has
+	been encountered.
 
-	* src/cid/cidgload.c (cid_slot_load_glyph): Fix memory leak.
+2018-12-02  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* builds/windows/visualc/freetype.dsp: Dust off.
+
+2018-11-27  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* builds/windows/vc2010/freetype.vcxproj: Simplify.
+
+2018-11-27  Chris Liddell  <chris.liddell@artifex.com>
+
+	[type1,cff] Add FT_{Set,Get}_MM_WeightVector API calls.
+
+	For multiple master fonts, common usage (in Postscript) is to modify
+	the WeightVector of an existing font instance, this addition
+	supports that use.
+
+	* include/freetype/ftmm.h, src/base/ftmm.c (FT_Set_MM_WeightVector,
+	FT_Get_MM_WeightVector): New API functions.
+
+	* include/freetype/internalservices/svmm.h
+	(FT_Set_MM_WeightVector_Func, FT_Get_MM_WeightVector_Func): New
+	function types.
+	(MultiMasters): Add `set_mm_weightvector' and `get_mm_weightvector'
+	members.
+	(FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated.
+
+	* src/cffcffdrivr.c (cff_set_mm_weightvector,
+	cff_get_mm_weightvector): New functions.
+	(cff_service_multi_masters): Register them.
+
+	* src/truetype/ttdriver.c (tt_service_gx_multi_masters): Updated.
+	This driver doesn't use the new interface.
+
+	* src/type1/t1load.c (T1_Set_MM_WeightVector,
+	T1_Get_MM_WeightVector): New functions.
+	* src/type1/t1driver.c (t1_service_multi_masters): Register them.
+	* src/type1/t1load.h: Updated.
+
+2018-11-27  Ben Wagner  <bungeman@google.com>
+
+	[cff] Fix compiler warning (#55105).
+
+	* src/cff/cffparse.c (cff_parser_run): Guard label only used if
+	CFF_CONFIG_OPTION_OLD_ENGINE is active.
+
+2018-11-27  Ben Wagner  <bungeman@google.com>
+
+	[truetype] Fix numeric overflow (#55103).
+
+	* src/truetype/ttgload.c (compute_glyph_metrics): Use `SUB_LONG'.
+
+2018-11-25  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[builds] Belated DLL support with vc2002-vc2008.
+
+	The solution and project files should be automatically upgraded for
+	the approriate Visual C++ version.
+
+	* builds/windows/visualc/freetype.{sln,vcproj}: Major upgrades.
+	* builds/windows/visualc/index.html: Document the change.
+	* builds/windows/vc2005, builds/windows/vc2008: Removed as redundant.
+
+2018-11-22  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	* src/cff/cffparse.c: Please the compiler.
+
+2018-11-22  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	[cff] Fix memory overflow.
 
 	Reported as
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3489
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9869
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10869
 
-2017-09-28  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	* src/cff/cffparse.c (destruct_t2s_item, cff_parser_run): Store
+	evaluated T2 charstrings in separately allocated memory.
 
-	Bitmap metrics presetting [1/2].
+2018-11-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	This mainly just extracts the code for presetting the bitmap metrics
-	from the monochrome, grayscale, and LCD renderers into a separate
-	function.
+	* builds/windows/{visualc,vc2005,vc2008}/freetype.vcproj: Fix it.
 
-	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): New function that
-	calculates prospective bitmap metrics for the given rendering mode.
-	* include/freetype/internal/ftobjs.h (ft_glyphslot_preset_bitmap):
-	Declare it.
+2018-11-10  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* src/base/ftlcdfil.c (ft_lcd_padding): New helper function that adds
-	padding to CBox taking into account pecularities of LCD rendering.
-	* include/freetype/ftlcdfil.h (ft_lcd_padding): Declare it.
+	[smooth] Placeholder only for library-enabled LCD filtering.
 
-	* src/raster/ftrend1.c (ft_raster1_render): Reworked to use
-	`ft_glyphslot_preset_bitmap'.
-	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
-	(ft_smooth_render_lcd, ft_smooth_render_lcd): The pixel_mode setting
-	is moved to `ft_glyphslot_preset_bitmap'.
+	* src/smooth/ftsmooth.c (ft_smooth_init): Add disabled
+	`FT_Library_SetLcdFilter' call.
 
-2017-09-28  Ewald Hew  <ewaldhew@gmail.com>
+2018-11-09  Young Xiao  <yangx92@hotmail.com>
 
-	[psaux] Fix compiler warning.
+	[psaux] Add safety guard (#54985).
 
-	* src/psaux/pshints.c (cf2_hintmap_dump): Add switch for tracing
+	* src/psaux/psobjs.c (cff_builder_close_contour): Do it.
+
+2018-11-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* builds/unix/configure.raw: Require `windows.h' for windres.
+
+2018-11-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[ftstroke] Fix unpredictable failures (#54986).
+
+	* src/base/ftstroke.c (ft_sroke_border_lineto): Fix lineto check.
+
+2018-11-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[ftstroke] Fix unpredictable failures (#54976).
+
+	* src/base/ftstroke.c (ft_sroke_border_close): Set the start tags.
+
+2018-11-07  Ben Wagner  <bungeman@google.com>
+
+	[truetype] Fix VF check from 2018-09-12 (#54973).
+
+	* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Use correct
+	offsets for estimates.
+
+2018-11-06  Werner Lemberg  <wl@gnu.org>
+
+	[pshinter] Fix numeric overflow.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11242
+
+	* src/pshinter/pshrec.c (ps_dimension_add_t1stem): Implement it.
+
+2018-11-06  Werner Lemberg  <wl@gnu.org>
+
+	[psaux] Fix timeout in old CFF engine.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11260
+
+	* src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
+	<cff_op_sqrt> [CFF_CONFIG_OPTION_OLD_ENGINE]: Fix potential endless
+	loop.
+
+2018-11-04  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/truetype/ttgxvar.c: Use enum definitions.
+
+2018-11-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/truetype/ttgxvar.c (ft_var_apply_tuple): Adjust condition.
+
+2018-11-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/truetype/ttgxvar.c (ft_var_apply_tuple): Tracing tweaks.
+
+2018-11-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	Revert due to specs: [truetype] Speed up variation IUP.
+
+2018-11-02  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/truetype/ttgxvar.c (ft_var_get_item_delta): Fixed logic.
+
+	Reported and tested by Behdad.
+
+2018-11-02  Shailesh Mistry  <shailesh.mistry@hotmail.co.uk>
+
+	[autofit] Prevent SEGV.
+
+	See
+
+	  https://bugs.ghostscript.com/show_bug.cgi?id=697545
+
+	for more details on how the bug was found.
+
+	* src/autofit/afloader.c (af_loader_load_glyph): Propagate error
 	code.
 
-2017-09-27  Werner Lemberg  <wl@gnu.org>
+2018-10-31  Alexei Podtelezhnikov <apodtele@gmail.com>
 
-	* src/sfnt/ttload.c (tt_face_load_font_dir): Fix compiler warning.
+	[truetype] Speed up variation IUP.
 
-2017-09-25  Werner Lemberg  <wl@gnu.org>
+	* src/truetype/ttgxvar.c (tt_delta_interpolate): Separate trivial
+	snapping to the same position from true interpolation.
 
-	[psaux] Fix compiler warnings.
+2018-10-31  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* src/psaux/psft.c (cf2_initLocalRegionBuffer): Remove redundant
-	test.
+	* src/type1/t1load.c (t1_set_mm_blend): Optimized.
 
-	* src/psaux/psintrp.c (cf2_interpT2CharString)
-	<cf2_escCALLOTHERSUBR>: Add casts.
+2018-10-31  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* src/psaux/psobjs.c (ps_decoder_init): Add cast.
+	* src/truetype/ttgxvar.c (ft_var_get_item_delta): Optimized.
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+2018-10-29  Werner Lemberg  <wl@gnu.org>
 
-	[psaux] Minor fixes.
+	[base] Fix numeric overflow.
 
-	* include/freetype/internal/psaux.h, src/psaux/psobjs.{c,h}:
-	Rearrange `ps_builder_init' arguments to conventional order.
+	Reported as
 
-	* src/psaux/psft.c (cf2_decoder_parse_charstrings): Add a check and
-	notice for `SubFont' in Type 1 mode.
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11080
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	* src/base/ftoutln.c (FT_Outline_Get_Orientation): Use `MUL_LONG'.
 
-	[psaux] Move `psdecode' into `psobjs'.
+2018-10-29  Werner Lemberg  <wl@gnu.org>
 
-	As the former only contains a single procedure, move it into
-	`psobjs' for simplicity.  Also change the parameter order to the
-	conventional one.
+	[cff] Fix numeric overflow.
 
-	* src/psaux/psdecode.c (ps_decoder_init): Moved to...
-	* src/psaux/psobjs.c: ...Here.
-	* src/psaux/psdecode.h, src/psaux/psobjs.h: Ditto.
+	Reported as
 
-	* include/freetype/internal/psaux.h (PSAux_ServiceRec): Update
-	`ps_decoder_init' function signature.
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10988
 
-	* src/cff/cffgload.c, src/cid/cidgload.c, src/type1/t1gload.c:
-	Update calls.
+	* src/cff/cffparse.c (cff_parser_run)
+	[CFF_CONFIG_OPTION_OLD_ENGINE]: Use `NEG_LONG'.
 
-	* src/psaux/psaux.c, src/psaux/psauxmod.c: Update includes.
+2018-10-27  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* src/psaux/Jamfile (_sources), src/psaux/rules.mk (PSAUX_DRV_SRC):
-	Update file references.
+	[sfnt] Make `head' timestamps unsigned.
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	It's been more than 2^31 seconds since 1904.
 
-	[psaux] Fix Type 1 hinting.
+	* include/freetype/tttables.h (TT_Header): Change field types.
+	* src/sfnt/ttload.c (tt_face_load_generic_header): Updated.
 
-	Type 1 hinting breaks sometimes when mid-charstring hints should
-	have been in the initial hintmap.  This fix adds a preprocessing
-	pass that reads all hints and builds the correct initial hintmap
-	first, before proceeding to build the glyph outline.
+2018-10-27  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* src/psaux/psintrp.c (cf2_interpT2CharString): New
-	`initial_map_ready' boolean flag.
-	Ignore outline commands and hint changes on first pass.
-	<cf2_cmdENDCHAR>: Add section to build hintmap and rewind.
+	Revert: Align FreeType with standard C memory management.
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+2018-10-27  Werner Lemberg  <wl@gnu.org>
 
-	[psaux] Add tracing for hints.
+	[psaux] Fix numeric overflow.
 
-	* src/psaux/pshints.c (cf2_hintmap_dump): New function.
-	(cf2_hintmap_insertHint): Trace incoming and inserted hints.
-	(cf2_hintmap_build): Dump hintmap before and after hint adjustment.
+	Triggered by
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11157
 
-	[psaux] Minor fixes.
+	* src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_blend>
+	[CFF_CONFIG_OPTION_OLD_ENGINE]: Fix integer overflow.
 
-	* src/psaux/psintrp.c (cf2_interpT2CharString): Fix check for pop
-	results.
-	s/font->decoder/decoder/ where necessary.
-	<cf2_cmdHSTEM, cf2_cmdVSTEM, cf2_escHSTEM3, cf2_escVSTEM3>: Use
-	offset parameter in `cf2_doStems' instead of doing correction for
-	left-sidebearing.
+2018-10-20  Werner Lemberg  <wl@gnu.org>
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	Avoid endless loop while tracing (#54858).
 
-	[cid] Use the new engine.
+	* src/type1/t1load.c (parse_buildchar): Guard tracing stuff with
+	FT_DEBUG_LEVEL_TRACE.
 
-	* src/cid/cidgload.c: Update includes.
-	(cid_load_glyph, cid_slot_load_glyph): Implement changes to glyph
-	loading code as with `type1' module.
+2018-10-17  David Demelier  <markand@malikania.fr>
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	* CMakeLists.txt: Specify `RUNTIME DESTINATION'.
 
-	[cid] Add Adobe engine configuration.
+	This is needed for DLL builds.
 
-	This is similar to what was done in the `type1' module.
+2018-10-07  Werner Lemberg  <wl@gnu.org>
 
-	* src/cid/cidriver.c (t1cid_driver_class): Update declaration.
-	* src/cid/cidobjs.c: Include FT_TYPE1_DRIVER_H.
-	(cid_driver_init): Update code.
+	A missing Unicode cmap is not a fatal error.
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	This is a follow-up to the previous commit.
 
-	[psaux] Change subfont synthesis for CID fonts.
+	* src/cff/cffobjs.c (cff_face_init), src/sfnt/sfobjs.c
+	(sfnt_load_face), src/type1/t1objs.c (T1_Face_Init),
+	src/type42/t42objs.c (T42_Face_Init): Implement it.
 
-	Change `t1_make_subfont' to take in the Private dict record as an
-	argument.  This is because Type 1 and CID font records in FreeType
-	have this in different places.
+2018-10-07  Werner Lemberg  <wl@gnu.org>
 
-	* src/psaux/psobjs.c (t1_make_subfont): Change `T1_Face' to
-	`FT_Face' so that CID is also accepted.
-	Take `PS_Private' as an argument and let caller figure out where the
-	Private dict actually is.
-	Update references.
+	Fix handling of FT_CONFIG_OPTION_ADOBE_GLYPH_LIST (#54794).
 
-	* include/freetype/internal/psaux.h, src/psaux/psobjs.h: Update
-	declaration.
+	* src/cff/cffcmap.c (cff_cmap_unicode_init), src/psaux/t1cmap.c
+	(t1_cmap_unicode_init), src/sfnt/ttcmap.c (tt_cmap_unicode_init):
+	Check `unicodes_init' field.
 
-	* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Update
-	call.
+2018-10-03  Werner Lemberg  <wl@gnu.org>
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	[ftgrays] Fix typo in stand-alone mode (#54771).
 
-	[type1] Switch to Adobe engine.
+	* src/smooth/ftgrays.c (FT_THROW) [STANDALONE_ &&
+	FT_DEBUG_LEVEL_TRACE]: Fix call to `FT_ERR_CAT'.
 
-	* src/type1/t1objs.c (T1_Driver_Init): Set default to Adobe engine.
+2018-10-02  Werner Lemberg  <wl@gnu.org>
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	[psaux] Fix segfault.
 
-	[psaux] Extend Adobe interpreter (seac).
+	Reported as
 
-	This concludes the changes needed to add Type 1 support.
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10768
 
-	* src/psaux/psintrp.c: Update includes.
-	(cf2_interpT2CharString) <cf2_escSEAC>: Implement this similarly to
-	implied seac for CFF.
+	* src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
+	<cff_op_callothersubr> [CFF_CONFIG_OPTION_OLD_ENGINE]: Check
+	argument.
 
-	* src/psaux/t1decode.c (t1_lookup_glyph_by_stdcharcode_ps): New
-	function to look up the glyph index.
+2018-10-02  Werner Lemberg  <wl@gnu.org>
 
-	* src/psaux/psft.c (cf2_getT1SeacComponent,
-	cf2_freeT1SeacComponent): New functions to get the charstrings for
-	seac components.
+	[psaux] Fix numeric overflow.
 
-	* src/psaux/t1decode.h, src/psaux/psft.h: Update declarations.
+	Reported as
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10740
 
-	[psaux] Extend Adobe interpreter (flex in callothersubr).
+	* src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_roll>
+	[CFF_CONFIG_OPTION_OLD_ENGINE]: Use NEG_INT.
 
-	* src/psaux/psintrp.c (cf2_interpT2CharString)
-	<cf2_escCALLOTHERSUBR>: Fix Flex feature handling (OtherSubrs 0, 1,
-	2).
-	<cf2_cmdRMOVETO>: Do not actually move the `glyphPath' while doing
-	flex.  This is to avoid closing the current contour.
+2018-10-02  Werner Lemberg  <wl@gnu.org>
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	[pshinter] Handle numeric overflow.
 
-	[psaux] Extend Adobe interpreter (callothersubr).
+	Reported as
 
-	* src/psaux/psintrp.c (cf2_interpT2CharString)
-	<cf2_escCALLOTHERSUBR>: Copy code from
-	`t1_decoder_parse_charstrings' (in `t1decode.c').
-	OtherSubr 3 (change hints) should reset the hintmask, so that the
-	new hints are applied.
-	Fix function calls and stack access.
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10550
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	* src/pshinter/pshglob.c (psh_blues_snap_stem): Mask numeric
+	overflow.
 
-	[psaux] Extend Adobe interpreter (pop).
+2018-09-27  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* src/psaux/psintrp.c (cf2_interpT2CharString): Change how unhandled
-	OtherSubr results are stored.  Implement the PostScript stack using
-	an array.
-	<cf2_escPOP>: Ensure that the stack is not cleared after getting
-	`OtherSubr' results.
-	Fix stack access.
+	Align FreeType with standard C memory management.
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	* include/freetype/ftsystem.h: Include FT_TYPES_H.
+	(*FT_Alloc_Func, *FT_Realloc_Func): Use size_t for the size arguments.
+	* src/raster/ftmisc.h: Ditto.
 
-	[psaux] Extend Adobe interpreter (callsubr).
+	* builds/amiga/src/base/ftsystem.c, builds/unix/ftsystem.c,
+	* builds/vms/ftsystem.c, src/base/ftsystem.c (ft_alloc, ft_realloc):
+	Use size_t for the size arguments.
 
-	* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdCALLSUBR>:
-	Type 1 mode.
+	* src/base/ftdbgmem.c (ft_mem_debug_alloc, ft_mem_debug_realloc): Use
+	FT_Offset, aka size_t, for the size arguments.
 
-	* src/psaux/psft.c (cf2_initLocalRegionBuffer): Add Type 1 mode.
+2018-09-25  Werner Lemberg  <wl@gnu.org>
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	Fix handling of `FT_Bool'.
 
-	[psaux] Extend Adobe interpreter (div, four-byte numbers).
+	Before this commit we had code like
 
-	* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_escDIV>: Add
-	Type 1 mode.  Type 1 requires large integers to be followed by
-	`div'; cf. `Adobe Type 1 Font Format', section 6.2.
-	<op == 255>: Push Type 1 four-byte numbers as `Int' always.  This is
-	to ensure `div' and `callsubr' get values they can use.
+	  (FT_Bool)( globals->glyph_styles[gindex] & 0x8000)
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
-
-	[psaux] Extend Adobe interpreter (hints).
-
-	* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdHSTEM,
-	cf2_cmdVSTEM>: Add correction for left sidebearing in Type 1 mode.
-	Allow adding hints mid-charstring.
-	<cf2_escVSTEM3, cf2_escHSTEM3>: Translate into equivalent commands
-	for three normal stem hints.  This requires some recalculation of
-	stem positions.
-	Correction for left sidebearing.
-
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
-
-	[psaux] Extend Adobe interpreter (hsbw, sbw).
-
-	* src/psaux/psintrp.c (cf2_doStems): `hsbw' or `sbw' must be the
-	first operation in a Type 1 charstring.
-	(cf2_interpT2CharString): Remove unused variables.
-	<cf2_cmdHMOVETO, cf2_cmdVMOVETO, cf2_cmdRMOVETO>: `hsbw' or `sbw'
-	must be the first operation in a Type 1 charstring.
-	<cf2_cmdHSBW, cf2_escSBW>: Fix data access and add correction for
-	left sidebearing.
-
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
-
-	[psaux] Extend Adobe interpreter (setcurrentpoint).
-
-	* src/psaux/psintrp.c (cf2_interpT2CharString)
-	<cf2_escSETCURRENTPT>: Fix stack access.
-
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
-
-	[psaux] Extend Adobe interpreter (closepath).
-
-	* src/psaux/psintrp.c (cf2_interpT2CharString) <c2f_cmdCLOSEPATH>:
-	Use the right builder function.  We can use the `haveWidth' boolean
-	already present, instead of implementing `parse_state'.
-
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
-
-	[psaux] Add Type 1 operations to Adobe CFF interpreter.
-
-	The following Type 1 specific ops have been added (copied from
-	`t1decode'):
-
-	  closepath
-	  vstem3
-	  hstem3
-	  seac
-	  sbw
-	  callothersubr
-	  pop
-	  setcurrentpoint
-	  hsbw
-
-	The following require a Type 1 mode, because of differences in
-	specification:
-
-	  hstem
-	  vstem
-	  vmoveto
-	  callsubr
-	  div
-	  rmoveto
-	  hmoveto
-	  Numbers
-
-	The subsequent commits will implement these changes and adapt
-	accesses of data and objects to the new interpreter.
-
-	NOTE: Will not compile in the meantime!
-
-	* src/psaux/psintrp.c: Add opcodes to enum.
-	(cf2_interpT2CharString): Copy relevant code over from
-	`t1_decoder_parse_charstrings' (in `t1decode.c').
+	Since `FT_Bool' is defined to be an `unsigned char', the code
+	evaluated to something like
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	  (unsigned char)( 0x8532 & 0x8000)
 
-	[type1] Fixes for rendering.
+	which in turn expanded to
 
-	The Type 1 advance width calculation passes null for glyph slot,
-	etc, which can cause null pointer access in the new interpreter.
-	Fall back to the old one for now.
+	  (unsigned char)( 0x8000)
 
-	Fix the large glyph retry code and ensure hinting and scaling flags
-	are set properly.
+	and finally yielded 0x00 – i.e., false – not as expected.
 
-	* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Add a
-	check for metrics_only.
-	Set the `force_scaling' flag.
-	(T1_Parse_Glyph): Updated.
-	(T1_Load_Glyph): Add `hinting' and `scaled' flags.
+	Problem reported and analyzed by Tony Smith <tony.smith@macro4.com>.
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	* include/freetype/fttypes.h (FT_BOOL): Add a comparison against
+	zero so that we always have a Boolean expression.
 
-	[psaux] Add missing objects (2/2).
+	*/*: Replace castings to `FT_Bool' with calls to `FT_BOOL' where
+	possible.
 
-	Synthesize a `SubFont' object for Type 1 fonts.  This is used in the
-	interpreter to access Private dict data, which are stored in
-	different places for Type 1 and CFF.  This allows the same data to
-	be used in either mode.
+2018-09-23  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* src/psaux/psobjs.c (t1_make_subfont): New procedure to copy
-	required values to a dummy `CFF_SubFont' object.  This is similar to
-	`cff_make_private_dict'.
-	* src/psaux/psobjs.h: Add the new declaration.
+	[bdf] Speed up charmap access.
 
-	* include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Ditto.
-	Add this to the PSAux Service for future use with CID fonts.
+	This makes FT_Get_Char_Index and FT_Get_Next_Char 4-5 times faster.
 
-	* src/type1/t1gload.c: Include FT_INTERNAL_CFF_TYPES_H.
-	(T1_Parse_Glyph_And_Get_Char_String): Add the call.
+	* src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Help binary search
+	with continuous prediction.
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+2018-09-22  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	[psaux] Add missing objects for Type 1 (1/2).
+	* src/base/ftobjs.c (ft_glyphslot_preset_bimap): Another tweak.
 
-	Move `CF2_Font' instance to `PS_Decoder'.  This is the context for
-	the interpreter and since it is currently stored in `CFF_Font', is
-	unavailable in Type 1 mode.
+	This one should be clearer. When the rounded monochrome bbox collapses
+	we add a pixel that covers most if not all original cbox.
 
-	* include/freetype/internal/psaux.h (T1_Decoder, PS_Decoder): New
-	`cf2_instance' field.
+2018-09-21  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* src/psaux/psdecode.c (ps_decoder_init): Copy `cf2_instance' to
-	`PS_Decoder'.
+	* src/base/ftobjs.c (ft_glyphslot_preset_bimap): Further tweak.
 
-	* src/psaux/t1decode.c (t1_decoder_done): Add finalization code.
+2018-09-21  Ben Wagner  <bungeman@google.com>
 
-	* src/psaux/psft.c (cf2_decoder_parse_charstrings): Update accesses.
+	Improve auto-hinter handling of bitmap fonts (#54681).
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	For bitmap fonts, `FT_Load_Glyph' should either return an error or
+	not set the format to `FT_GLYPH_FORMAT_OUTLINE'.  However, in this
+	case `FT_Load_Glyph' calls into the auto-hinter which calls back
+	into `FT_Load_Glyph' with `FT_LOAD_NO_SCALE' in the flags, which
+	marks the glyph as `FT_GLYPH_FORMAT_OUTLINE' with an empty path
+	(even though it doesn't have any path).  It appears that the
+	auto-hinter should not be called when the face doesn't have
+	outlines.  The current test for using the auto-hinter in
+	`FT_Load_Glyph' checks whether the driver supports scalable
+	outlines, but not if the face supports scalable outlines.
 
-	Allow `type1' module to use the Adobe engine.
+	* src/base/ftobjs.c (FT_Load_Glyph): Directly check whether we have
+	scalable outlines.
 
-	Add the callback and some conditionals to switch between the two
-	engines.
+2018-09-21  Werner Lemberg  <wl@gnu.org>
 
-	* include/freetype/internal/psaux.h (T1_Decoder_FuncsRec): Change
-	function declarations.
-	* src/psaux/psauxmod.c (T1_Decoder_FuncsRec): Register the
-	callbacks.
+	[raster] Fix disappearing vertical lines (#54589).
 
-	* src/psaux/psobjs.c (ps_builder_add_point): Add conditionals for
-	number conversion.
+	* src/raster/ftraster.c (Vertical_Sweep_Span): Handle special case
+	where both left and right outline exactly pass pixel centers.
 
-	* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Add code
-	to choose which renderer to use.
+2018-09-20  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* src/cid/cidgload.c (cid_load_glyph): Update call.
-	* src/base/ftobjs.c, src/psaux/psobjs.c, src/type1/t1gload.c: Update
-	includes.
+	* src/base/ftobjs.c (ft_glyphslot_preset_bimap): Tiny rounding tweak.
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	This adds pixels in case a contour goes through the center
+	and they need to be turned on in the b/w rasterizer.
 
-	[type1] Add Adobe engine configuration.
+2018-09-20  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	Use the previously changed PS_Driver in type1 module to store
-	hinting engine configuration.
+	[pcf] Replace charmap implementation.
 
-	* include/freetype/ftt1drv.h: New file.
-	Duplicate and rename config options from CFF.
-	* include/freetype/config/ftheader.h (FT_TYPE1_DRIVER_H): New macro.
+	PCF comes with charmap lookup table, aka PCF encodings.  Using it
+	directly makes FT_Get_Char_Index and FT_Get_Next_Char 4-5 times
+	faster than the original BDF-like binary searches.
 
-	* src/type1/t1driver.c (t1_driver_class): Update declaration.
-	* src/type1/t1objs.c: Include FT_TYPE1_DRIVER_H.
-	(T1_Driver_Init): Update code.
+	* src/pcf/pcf.h (PCF_EncodingRec): Removed.
+	(PCF_FaceRec): Remove `nencodings' and `encodings'.
+	* src/pcf/pcfdrivr.c (pcf_cmap_char_{index,next}): Replaced.
+	* src/pcf/pcfread.c (pcf_get_encodings): Store data differently.
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+2018-09-20  Werner Lemberg  <wl@gnu.org>
 
-	[cff] Move and rename `CFF_Driver'.
+	[base] Remove unused function `FT_GlyphLoader_CopyPoints'.
 
-	This is so that we can use the same hinting engine parameters for
-	Type 1.
+	* include/freetype/internal/ftgloadr.h, src/base/ftgloadr.c
+	(FT_GlyphLoader_CopyPoints): Do it.
 
-	* include/freetype/internal/cffotypes.h (CFF_Driver): Rename and
-	move to...
-	* include/freetype/internal/psaux.h (PS_Driver): ...here.
+2018-09-19  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* src/cff/cffdrivr.c, src/cff/cffgload.c, src/cff/cffload.c,
-	src/cff/cffobjs.c, src/cff/cffobjs.h, src/psaux/psft.c,
-	src/psaux/psobjs.c: Update references.
+	[pcf] Prepare to replace charmap implementation.
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	* src/pcf/pcf.h (PCF_FaceRec): Updated to include...
+	(PCF_EncRec): ... this new structure to store charmap geometry.
 
-	[psaux, type1] Reorganize object fields.
+	* src/pcf/pcfread.c (pcf_get_encodings): Store charmap geometry.
 
-	Make some fields more generic, so that we can access them the same
-	way regardless of Type 1 or CFF.
+2018-09-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* include/freetype/internal/psaux.h (PS_Builder): Change `TT_Face'
-	to `FT_Face'.
 	Remove unused fields.
 
-	* src/psaux/psft.c: Update all accesses of `PS_Builder.face'.
-	Add some asserts to guard against casting `T1_Face' as `TT_Face'.
+	* src/pcf.h (PCF_FaceRec): Remove `charmap' and `charmap_handle'.
+	* src/bdfdrvr.h (BDF_FaceRec): Ditto.
+	* src/winfonts/winfnt.h (FNT_FaceRec): Ditto.
 
-	* src/type1/t1objs.h (T1_GlyphSlot): Reorder fields to follow
-	`CFF_GlyphSlot', so that we can pretend they are the same in the
-	interpreter.
+2018-09-17  Werner Lemberg  <wl@gnu.org>
 
-	* src/psaux/psobjs.c (ps_builder_init, ps_builder_add_point):
-	Updated with above changes.
+	[pshinter] Handle numeric overflow.
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	Reported as
 
-	[psaux] Prepare for Type 1 mode.
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10396
 
-	Add some checks for Type 1 data passing through.
+	* src/pshinter/pshglob.c: Include FT_INTERNAL_CALC_H.
+	(psh_blues_snap_stem): Mask numeric overflow.
 
-	* src/psaux/psfont.h (CF2_Font): Add `isT1' flag.
-	* src/psaux/psfont.c (cf2_font_setup): Skip the variations and blend
-	code which is not applicable for Type 1.
+2018-09-13  Werner Lemberg  <wl@gnu.org>
 
-	* src/psaux/psft.c (cf2_decoder_parse_charstrings): Avoid accessing
-	`decoder->cff' in Type 1 mode.
-	Copy `is_t1' flag to `CF2_Font'.
+	[truetype] Some fixes for VF checks.
 
-2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+	Reported as
 
-	[psaux, cff] Use the new objects.
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10317
 
-	* include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Fix
-	switching between new and old engines.
+	* src/truetype/ttgxvar.c (ft_var_load_gvar): Properly exit memory
+	frame if we have invalid glyph variation data offsets.
+	(tt_face_vary_cvt): Protect against missing `tuplecoords' array.
+	Fix typo.
 
-	* src/cff/cffgload.c, src/cff/cffparse.c: Update calls.
+2018-09-13  Werner Lemberg  <wl@gnu.org>
 
-	* src/psaux/psblues.c, src/psaux/psfont.c, src/psaux/psfont.h,
-	src/psaux/psft.c, src/psaux/psft.h, src/psaux/psintrp.c: Update all
-	to use new objects.
+	* src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Fix last commit.
 
-2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+2018-09-13  Werner Lemberg  <wl@gnu.org>
 
-	[psaux] Objects for new interpreter (part 2).
+	* src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Check `result'.
 
-	Make the new objects copy over values.  They are essentially wrapper
-	types for the different decoders/builders.
+	Reported as
 
-	* include/freetype/internal/psaux.h: Update declarations.
-	(PS_Builder): Add `is_t1' flag.
-	(PS_Decoder_{Get,Free}_Glyph_Callback): Renamed to...
-	(CFF_Decoder_{Get,Free}_Glyph_Callback: ... this.
-	(PS_Decoder): Updated.
-	Add `t1_parse_callback' member.
-	(PSAux_ServiceRec): Add `ps_decoder_init' member.
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10316
 
-	* src/psaux/psdecode.h, src/psaux/psobjs.h: Update declarations.
+2018-09-12  John Tytgat  <John.Tytgat@esko.com>
 
-	* src/psaux/psdecode.c, src/psaux/psobjs.c: Implement copy with two
-	modes.
+	[sfnt] Better PS name handling (#54629).
 
-	* src/psaux/psauxmod.c: Add builder and decoder functions to `PSAux'
-	service.
+	* src/sfnt/sfdriver (IS_WIN, IS_APPLE): Omit language ID checks.
+	(get_win_string, get_apple_string): Return NULL when the PostScript
+	font name characters is not according to specification.
+	(get_win_string): Make trace output work if the high byte if
+	non-zero.
+	(sfnt_get_var_ps_name, sfnt_get_ps_name): Previously we preferred
+	Win PS name (when there is also an Apple PS name); change this into
+	a fallback to Apple PS name in case the Win PS name is invalid.
 
-2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+2018-09-12  Werner Lemberg  <wl@gnu.org>
 
-	[psaux] Add objects for new interpreter.
+	[truetype] Improve VF check.
 
-	Introduce `PS_Decoder' and `PS_Builder' which include all fields
-	from either Type 1 or CFF decoders/builders.
+	Triggered by
 
-	* include/freetype/internal/psaux.h (PS_Builder, PS_Decoder): New
-	structs.
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10255
 
-	* src/psaux/psobjs.c, src/psaux/psobjs.h: Add `PS_Builder'
+	* src/truetype/ttgxvar.c (ft_var_load_gvar): Use better limit check
+	for `tupleCount'.
+
+2018-09-12  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgxvar.c (ft_var_load_gvar): Check `glyphoffsets'.
+
+2018-09-10  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	* src/pshinter/pshrec.c (t2_hints_stems): Mask numeric overflow.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10215
+
+2018-09-09  Ben Wagner  <bungeman@google.com>
+
+	* builds/freetype.mk (refdoc-venv): Ensure python version (#54631).
+
+2018-09-07  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Fix assertion failure.
+
+	Triggered by
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10212
+
+	* src/truetype/ttgload.c (load_truetype_glyph): Reintroduce
+	`opened_frame' (removed in a change from 2018-08-26) to handle
+	deallocation of the second frame.
+
+2018-09-05  Werner Lemberg  <wl@gnu.org>
+
+	Synchronize `ftdebug.c' files.
+
+	* builds/amiga/src/base/ftdebug.c, builds/wince/ftdebug.c,
+	builds/windows/ftdebug.c: Synchronize with `src/base/ftdebug.c'.
+
+2018-09-05  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	Add documentation guidelines file.
+
+	* docs/DOCGUIDE: New file.
+
+2018-09-04  Werner Lemberg  <wl@gnu.org>
+
+	* devel/ftoption.h: Synchronize with master `ftoption.h'.
+
+2018-09-03  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[docwriter] Don't break code snippets accross lines.
+
+	Reported as
+
+	  https://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00124.html
+
+	* docs/reference/markdown/stylesheets/extra.css (.md-typeset code):
+	Add rule `white-space'.
+
+2018-09-03  Werner Lemberg  <wl@gnu.org>
+
+	*/*: s/PSNames/psnames/.
+
+	Only tracing messages are affected.
+
+2018-09-03  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt] Fix heap buffer overflow in CPAL handling.
+
+	* src/sfnt/ttcpal.c (tt_face_palette_set): Fix boundary test.
+	(tt_face_load_cpal): Updated.
+
+2018-09-01  Werner Lemberg  <wl@gnu.org>
+
+	Remove `FT_Outline_{New,Done}_Internal'.
+
+	These public API functions(!) were always undocumented and have
+	escaped all clean-up efforts until now.
+
+	* include/freetype/ftoutln.h (FT_Outline_New_Internal,
+	FT_Outline_Done_Internal): Removed.
+
+	* src/base/ftoutln.h (FT_Outline_New_Internal,
+	FT_Outline_Done_Internal): Merge into...
+	(FT_Outline_New, FT_Outline_Done): ... these functions.
+
+	* docs/README: Updated.
+
+2018-08-30  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Check glyph format.
+
+2018-08-31  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	[errors] Refine the macro logic surrounding `FT_Error_String'.
+
+	* include/freetype/fterrors.h (FT_INCLUDE_ERR_PROTOS,
+	FT_ERR_PROTOS_DEFINED): Undefine `FT_INCLUDE_ERR_PROTOS' after
+	checking it and introduce a new macro that takes proper care of
+	multiple-inclusion protection.
+
+2018-08-31  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftdebug.c (FT_Throw): Restore missing `FT_UNUSED' calls.
+
+2018-08-31  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftdebug.c (FT_Throw): Reduce chattiness.
+
+2018-08-31  Werner Lemberg  <wl@gnu.org>
+
+	* src/autofit/afhints.c (af_glyph_hints_reload): Add initialization.
+
+2018-08-30  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	Consolidate bitmap presetting and size assessment.
+
+	* include/freetype/internal/ftobjs.h (ft_glyphslot_preset_bitmap):
+	Change return type.
+	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Return the bitmap
+	size assessment.
+
+	* src/raster/ftrend1.c (ft_raster1_render): Use it to refuse the
+	rendering of enourmous or far-fetched outlines.
+	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
+
+2018-08-30  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Correct mono.
+
+2018-08-30  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	[errors] Introduce a macro to control `FT_Error_String'.
+
+	* devel/ftoption.h (FT_CONFIG_OPTION_ERROR_STRINGS),
+	include/freetype/config/ftoption.h (FT_CONFIG_OPTION_ERROR_STRINGS):
+	New macro.
+
+2018-08-30  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	[errors] Introduce `FT_Error_String'.
+
+	* include/freetype/fterrors.h (FT_Error_String),
+	src/base/fterrors.c (FT_Error_String): Implement `FT_Error_String'.
+
+	* src/base/ftbase.c, src/base/Jamfile (_source),
+	src/base/rules.mk (BASE_SRC): Add `fterrors.c' to the build logic.
+
+	* src/base/ftdebug.c (FT_Throw): Use `FT_Error_String'.
+
+2018-08-30  Werner Lemberg  <wl@gnu.org>
+
+	[autofit] Trace `before' and `after' edges of strong points.
+
+	* src/autofit/afhints.h (AF_PointRec) [FT_DEBUG_AUTOFIT]: New arrays
+	`before' and `after'.
+
+	* src/autofit/afhints.c (af_get_strong_edge_index): New auxiliary
+	function.
+	(af_glyph_hints_dump_points): Trace `before' and `after' edges.
+	(af_glyph_hints_align_strong_points) [FT_DEBUG_AUTOFIT]: Set
+	`before' and `after' information.
+
+2018-08-30  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[base] Overflow-resistant bitmap presetting.
+
+	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Implement it.
+
+2018-08-29  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	Fix numeric overflows.
+
+	* src/pshint/pshalgo.c (psh_hint_align, psh_hint_align_light,
+	psh_hint_table_find_strong_points): Fix numeric overflows.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10083
+
+2018-08-29  Werner Lemberg  <wl@gnu.org>
+
+	[cff] Fix handling of `roll' op in old engine.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10080
+
+	* src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_roll>
+	[CFF_CONFIG_OPTION_OLD_ENGINE]: Use modulo for loop count, as
+	documented in the specification.
+
+2018-08-26  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttobjs.c (tt_size_read_bytecode): Trace CVT values.
+
+2018-08-26  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	* configure: Copy assets required by docwriter.
+
+	Copy directory `docs/reference/markdown' when FreeType is compiled in a
+	different directory.
+
+	Fixes `make refdoc' if builddir != srcdir.
+
+	Reported as
+
+	  https://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00083.html
+
+2018-08-26  Werner Lemberg  <wl@gnu.org>
+
+	* src/pshint/pshalgo.c (psh_hint_overlap): Fix numeric overflow.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10057
+
+2018-08-26  Werner Lemberg  <wl@gnu.org>
+
+	Minor tracing adjustments.
+
+	* src/base/ftstream.c (FT_Stream_EnterFrame, FT_Stream_ExitFrame):
+	Trace.
+
+	* src/truetype/ttgload.c (TT_Access_Glyph_Frame): Remove tracing.
+
+2018-08-26  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Avoid nested frames.
+
+	Triggered by
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10054
+
+	* src/truetype/ttgload.c (load_truetype_glyph): Don't use variable
+	`opened_frame' to trace whether a frame must be closed at the end of
+	function: This fails because `TT_Vary_Apply_Glyph_Deltas' (which
+	gets called for space glyphs) uses a frame by itself.  Instead,
+	close the frame after loading the header, then use another frame for
+	the remaining part of the glyph later on.
+
+	Also avoid calling `tt_get_metrics' twice under some circumstances.
+
+2018-08-26  Werner Lemberg  <wl@gnu.org>
+
+	Various minor clean-ups.
+
+	* src/base/ftapi.c: Remove.  Unused.
+	* src/base/Jamfile (_sources): Updated.
+
+	* src/base/ftstream.c (FT_Stream_ReleaseFrame): Remove redundant
+	code.
+
+2018-08-25  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	Convert documentation markup to Markdown.
+
+	It is the result of a GSoC 2018 project; this separate ChangeLog
+	commit covers the last four commits
+
+	  ae5d1a4cec37557f31aec270332cfe886a62f9a0
+	  53c69ce04faed3dcc68ca0f54cb8d703d8babf69
+	  195728d5ba38f34fb2c2c20807c01656f2f59b66
+	  c962db28ea59225f0105c03d907d4a9b71765687
+
+	* docs/reference/markdown/images/favico.ico,
+	docs/reference/markdown/javascripts/extra.js,
+	docs/reference/markdown/stylesheets/extra.css: New files.
+
+	* docs/reference/.gitignore, docs/reference/README: Updated.
+
+	* src/tools/docmaker/*: Removed.  It has been replaced with
+	`docwriter', a python package available at
+
+	  https://pypi.org/project/docwriter/
+
+	* Jamfile: Updated.
+	* builds/ansi/ansi-def.mk, builds/beos/beos-def.mk,
+	builds/dos/dos-def.mk, builds/os2/os2-def.mk (BIN),
+	builds/unix/unixddef.mk, builds/windows/win32-def.mk: New variable.
+
+	* builds/unix/configure.raw: Check for `python' and `pip'.
+	If not present, warn that `make refdoc' will fail.
+	* builds/unix/unix-def.in (PYTHON, PIP, BIN): New variables.
+
+	* builds/freetype.mk (PYTHON, PIP, VENV_NAME, VENV_DIR, ENV_PYTHON,
+	ENV_PIP): New variables.
+	(refdoc): Updated.
+	(refdoc-venv): New target.
+	(.PHONY): Updated.
+
+2018-08-23  Werner Lemberg  <wl@gnu.org>
+
+	Add macros for handling over-/underflowing `FT_Int64' values.
+
+	* include/freetype/internal/ftcalc.h (ADD_INT64, SUB_INT64,
+	MUL_INT64, DIV_INT64) [FT_LONG64]: New macros.
+
+	* src/base/ftcalc.c (ft_corner_orientation) [FT_LONG64]: Use
+	`SUB_INT64' and `MUL_INT64'.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10028
+
+2018-08-22  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Improve legibility of `glyf' parsing.
+
+	* src/truetype/ttgload.c (ON_CURVE_POINT, X_SHORT_VECTOR,
+	Y_SHORT_VECTOR, REPEAT_FLAG, X_POSITIVE, SAME_X, Y_POSITIVE, SAME_Y,
+	OVERLAP_SIMPLE): New macros.
+	(TT_Load_Simple_Glyph): Use new macros to make code more readable.
+	Remove useless adjustment of `outline->tags' elements.
+
+2018-08-21  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/ttcpal.c (tt_face_load_cpal): Add missing safety check.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9981
+
+2018-08-18  Werner Lemberg  <wl@gnu.org>
+
+	[psaux] Avoid slow PS font parsing in case of error.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9955
+
+	* src/psaux/psobjs.c (ps_parser_to_bytes): Set `parser->cursor' even
+	in case of error to avoid potential re-scanning.
+
+2018-08-18  Werner Lemberg  <wl@gnu.org>
+
+	[cff] Fix heap buffer overflow in old engine.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9967
+
+	* src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
+	<cff_op_blend> [CFF_CONFIG_OPTION_OLD_ENGINE]: `num_designs' must be
+	non-zero.
+
+2018-08-16  Young Xiao  <yangx92@hotmail.com>
+
+	* builds/mac/ftmac.c (parse_fond): Fix buffer overrun.
+
+	Reported as bug #54515, duplicate of #43540.
+
+2018-08-16  Werner Lemberg  <wl@gnu.org>
+
+	* builds/*/ftsystem.c (FT_COMPONENT): Updated also.
+
+2018-08-15  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[bdf] Don't track duplicate encodings.
+
+	There is no harm except some umbiguity in broken fonts with duplicate
+	encodings.
+
+	* src/bdf/bdflib.c (_bdf_parse_glyphs): Remove duplicate tracking.
+	(_bdf_parse_t): Remove large `have' bitfield.
+
+2018-08-15  Werner Lemberg  <wl@gnu.org>
+
+	Don't use `trace_' prefix for FT_COMPONENT arguments.
+
+	* include/freetype/internal/ftdebug.h (FT_TRACE_COMP,
+	FT_TRACE_COMP_): New auxiliary macros to add `trace_' prefix.
+	(FT_TRACE): Use `FT_TRACE_COMP'.
+
+	*/* (FT_COMPONENT): Updated.
+
+2018-08-14  Werner Lemberg  <wl@gnu.org>
+
+	Use formatting string in FT_TRACEX calls for non-simple arguments.
+
+	* src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
+	<cff_op_hstem, cff_op_hintmask, cff_op_hlineto, cff_op_vhcurveto>:
+	Do it.
+
+	* src/psaux/pshints.c (cf2_hintmap_build): Ditto.
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdHSTEM,
+	cf2_cmdVSTEM, cf2_cmdHLINETO, cf2_cmdRRCURVETO, cf2_cmdCALLSUBR,
+	cf2_escHSTEM3, cf2_cmdHINTMASK, cf2_cmdHVCURVETO>: Ditto.
+
+	* src/truetype/ttinterp.c (TT_RunIns): Ditto.
+
+2018-08-14  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[bdf] Remove unused fields.
+
+	* src/bdf/bdf.h (bdf_font_t): Remove `nmod', `umod', and `modified',
+	which were set but never used.
+	* src/bdf/bdflib.c (_bdf_parse_{glyphs,properties}, bdf_load_font):
+	Updated accordingly.
+
+2018-08-14  Werner Lemberg  <wl@gnu.org>
+
+	[cff] Fix another segv in old engine.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9872
+
+	* src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
+	[CFF_CONFIG_OPTION_OLD_ENGINE]: Disallow invalid T1 opcodes in
+	dictionaries.
+
+2018-08-14  Werner Lemberg  <wl@gnu.org>
+
+	[cff] Fix missing error handling.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9865
+
+	* src/psaux/cffparse.c (cff_parser_run)
+	[CFF_CONFIG_OPTION_OLD_ENGINE]: Don't ignore return value of
+	`parse_charstrings_old'.
+
+2018-08-14  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[bdf] Remove unused overflow storage.
+
+	* src/bdf/bdf.h (bdf_glyphlist_t): Remove this type.
+	(bdf_font_t): Remove `overflow' field.
+	* src/bdf/bdflib.c (bdf_free_font): Remove `overflow' freeing.
+
+2018-08-14  Werner Lemberg  <wl@gnu.org>
+
+	[cff] Fix segv in old engine.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9864
+
+	* src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
+	<cff_op_random> [CFF_CONFIG_OPTION_OLD_ENGINE]: Use top dict's
+	`random' field directly if parsing dictionaries.
+
+2018-08-13  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[bdf] Use unsigned types.
+
+	* src/bdf/bdf.h (bdf_glyph_t): Unsign `encoding'.
+	(bdf_font_t): Unsign `default_char'.
+	* src/bdf/bdfdrivr.h (BDF_encoding_el): Unsign `enc'.
+
+	* src/bdf/bdflib.c (_bdf_add_property, _bdf_parse_glyphs,
+	_bdf_parse_start): Updated accordingly.
+	* src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Ditto.
+
+2018-08-13  Werner Lemberg  <wl@gnu.org>
+
+	* src/type42/t42parse.c (t42_parse_sfnts): One more format check.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9832
+
+2018-08-11  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftcalc.c (FT_Matrix_Check): Fix integer overflow.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9811
+
+2018-08-10  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/sfnt/ttsbit.c (tt_sbit_decoder_load_compound): Follow specs.
+
+2018-08-10  Ben Wagner  <bungeman@google.com>
+
+	* src/sfnt/sfobjs.c (sfnt_done_face): Fix memory leak (#54435).
+
+2018-08-10  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftobjs.c (FT_Render_Glyph_Internal): Improve tracing.
+
+2018-08-10  Werner Lemberg  <wl@gnu.org>
+
+	Fix clang warnings.
+
+	* src/base/ftdebug.c (ft_trace_level_enabled,
+	ft_trace_level_disabled): Add `static' keyword.
+
+2018-08-09  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[raster, smooth] Reinstate bitmap size limits.
+
+	This again moves outline and bitmap size checks one level up.
+
+	* src/base/ftoutln.c (FT_Outline_Render): Explicitly reject enormous
+	outlines.
+	* src/raster/ftrend1.c (ft_raster1_render): Reject enormous bitmaps
+	and, therefore, outlines that require them.
+	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
+
+	* src/raster/ftraster.c (ft_black_render): Remove outline size checks.
+	* src/smooth/ftgrays.c (gray_raster_render): Ditto.
+	[STANDALONE]: Remove `FT_Outline_Get_CBox' copy.
+
+2018-08-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[pcf] Revert massive unsigning.
+
+2018-08-08  Werner Lemberg  <wl@gnu.org>
+
+	[smooth] Improve tracing.
+
+	* src/smooth/ftgrays.c (gray_convert_glyph_inner): Only use tracing
+	if called the first time.
+	(gray_convert_glyph): Updated.
+
+2018-08-08  Werner Lemberg  <wl@gnu.org>
+
+	Add internal functions `FT_Trace_Disable' and `FT_Trace_Enable'.
+
+	It sometimes makes sense to suppress tracing informations, for
+	example, if it outputs identical messages again and again.
+
+	* include/freetype/internal/ftdebug.h: Make `ft_trace_levels' a
+	pointer.
+	(FT_Trace_Disable, FT_Trace_Enable): New declarations.
+
+	* src/base/ftdebug.c (ft_trace_levels): Rename to...
+	(ft_trace_levels_enabled): ... this.
+	(ft_trace_levels_disabled): New array.
+	(ft_trace_levels): New pointer.
+	(FT_Trace_Disable, FT_Trace_Enable): Implement.
+	(ft_debug_init): Updated.
+
+2018-08-08  Werner Lemberg  <wl@gnu.org>
+
+	Debugging improvements.
+
+	* src/base/ftobjs.c (pixel_modes): Move this array to top level
+	from ...
+	(FT_Load_Glyph): ... here.
+	(FT_Render_Glyph_Internal): Use `width' x `height' in trace message.
+	Use `pixel_modes'.
+
+2018-08-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[pcf] Massive unsigning (part 2).
+
+	Treat all size related properties as unsigned values.
+
+	* src/pcf/pcf.h (PCF_ParsePropertyRec): Use unsigned `name' and
+	`value'.
+	* src/pcf/pcfread.c (pcf_get_properties, pcf_load_font): Updated
+	parsing code and handling of AVERAGE_WIDTH, POINT_SIZE, PIXEL_SIZE,
+	RESOLUTION_X and RESOLUTION_Y.
+
+2018-08-08  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[pcf] Massive unsigning (part 1).
+
+	Unofficial specifications hesitate to use unsigned 32-bit integers.
+	Negative values caused a lot of trouble in the past and it is safer
+	and easier to treat some properties as unsigned.
+
+	* src/pcf/pcf.h (PCF_AccelRec): Use unsigned values for `fontAscent',
+	`fontDescent', and `maxOverlap'.
+	* src/pcf/pcfread.c (pcf_load_font, pcf_get_accel): Updated.
+	* src/pcf/pcfdrivr.c (PCF_Glyph_Load, PCF_Size_Select,
+	PCF_Size_Request): Updated.
+
+2018-08-07  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/pcf/pcfread.c (pcf_get_bitmaps): Unsign `offsets' and
+	`bitmapSizes'.
+
+2018-08-06  Werner Lemberg  <wl@gnu.org>
+
+	* devel/ftoption.h: Synchronize with main `ftoption.h'.
+
+2018-08-06  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[pcf] Use unsigned types.
+
+	* src/pcf/pcf.h (PCF_Encoding): Use unsigned `enc'.
+	* src/pcf/pcfdrivr.c (pcf_cmap_char_{index,next}): Ditto.
+	* src/pcf/pcfread.c (pcf_get_encodings): Use unsigned types.
+
+2018-08-05  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgload.c (compute_glyph_metrics): Fix overflow.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/chromium/issues/detail?id=777151
+
+2018-08-04  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttinterp.c (opcode_name): Fix typos.
+
+2018-08-04  Werner Lemberg  <wl@gnu.org>
+
+	Fix clang warnings.
+
+	* src/base/ftoutln.c (FT_Outline_EmboldenXY): Fix type of
+	`orientation'.
+
+	* src/gxvalid/gxvcommn.c (gx_lookup_value_read): Fix signature.
+
+	* src/pcf/pcfread.c (pcf_get_encodings): Fix type of some variables.
+	Add cast.
+
+	* src/type1/t1load.c (parse_weight_vector): Fix cast.
+
+2018-07-31  Werner Lemberg  <wl@gnu.org>
+
+	* src/cid/cidtoken.h: Handle `XUID' keyword.
+
+2018-07-31  Werner Lemberg  <wl@gnu.org>
+
+	[cid] Trace PostScript dictionaries.
+
+	* src/cid/cidload.c: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
+	(cid_load_keyword, cid_parse_font_matrix, parse_fd_array,
+	parse_expansion_factor, cid_parse_dict): Add tracing calls.
+	(parse_font_name): New function to trace `/FontName' keywords in
+	/FDArray dict.
+	(cid_field_records): Register `parse_font_name'.
+
+2018-07-30  Werner Lemberg  <wl@gnu.org>
+
+	[cff] Fix typo.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9409
+
+	* src/cff/cffdrivr.c (cff_get_cid_from_glyph_index): Fix boundary
+	check.
+
+2018-07-29  Werner Lemberg  <wl@gnu.org>
+
+	* src/pcf/pcfread.c (pcf_get_encodings): Another thinko.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9608
+
+2018-07-28  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Fix Harmony memory management.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9501
+
+	* src/smooth/ftgrays.c (ft_smooth_render_generic): Restore buffer
+	after each rendering in case of failure.
+
+2018-07-28  Werner Lemberg  <wl@gnu.org>
+
+	[type1] Avoid segfaults with `FT_Get_PS_Font_Value'.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9610
+
+	* src/type1/t1driver.c (t1_ps_get_font_value): Protect against NULL.
+
+2018-07-27  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Make `TT_Set_MM_Blend' idempotent (#54388).
+
+	* src/truetype/ttgxvar.c (tt_set_mm_blend): Correctly set
+	`face->doblend' if the current call to the function yields the same
+	blend coordinates as the previous call.
+
+2018-07-27  Werner Lemberg  <wl@gnu.org>
+
+	[psaux, type1]: More tracing improvements.
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString): Trace skipped
+	outline commands.
+
+	* src/psaux/t1decode.c (t1_decoder_parse_charstring): Fix
+	missing case.
+	(t1_decoder_parse_metrics): Make tracing output more compact.
+
+	* src/type1/t1gload.c (T1_Compute_Max_Advance): Be less verbose.
+	(T1_Get_Advances): Add tracing.
+
+2018-07-25  Werner Lemberg  <wl@gnu.org>
+
+	[psaux, type1] Trace PostScript dictionaries and other things.
+
+	The tracing of /Encoding, /Subrs, and /Charstrings is rudimentary
+	right now.
+
+	* src/psaux/psobjs.c (ps_parser_load_field,
+	ps_parser_load_field_table): Add tracing calls.
+
+	* src/psaux/t1decode.c (t1_decoder_parse_charstrings): Make tracing
+	output more compact.
+
+	* src/type1/t1gload.c (T1_Compute_Max_Advance, T1_Get_Advances): Add
+	tracing messages.
+
+	* src/type1/t1load.c (parse_blend_axis_types,
+	parse_blend_design_positions, parse_blend_design_map,
+	parse_weight_vector, t1_load_keyword, t1_parse_font_matrix,
+	parse_encoding, parse_subrs, parse_charstrings, T1_Open_Face): Add
+	tracing calls.
+
+	* src/type1/t1objs.c (T1_Face_Init): Add tracing call.
+
+	* src/sfnt/sfobjs.c (sfnt_init_face): Make tracing message more
+	verbose.
+
+2018-07-25  Werner Lemberg  <wl@gnu.org>
+
+	Fix minor ASAN run-time warnings.
+
+	* src/base/ftutil.c (ft_mem_alloc, ft_mem_realloc): Only call
+	`FT_MEM_ZERO' if we actually have a buffer.
+	(ft_mem_dup): Only call `ft_memcpy' if we actually have a buffer.
+
+2018-07-24  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[build] Fortify dllexport/dllimport attributes (#53969,#54330).
+
+	We no longer use predefined _DLL, which can be defined for static
+	builds too with /MD. We use DLL_EXPORT and DLL_IMPORT instead,
+	following libtool convention.
+
+	* CMakeLists.txt [WIN32], builds/windows/vc2010/freetype.vcxproj:
+	Define DLL_EXPORT manually.
+
+	* include/freetype/config/ftconfig.h, builds/unix/ftconfig.in,
+	builds/vms/ftconfig.h, builds/windows/vc2010/index.html,
+	src/base/ftver.rc: /_DLL/d, s/FT2_DLLIMPORT/DLL_IMPORT/.
+
+2018-07-24  Werner Lemberg  <wl@gnu.org>
+
+	[type1] Check relationship between number of axes and designs.
+
+	For Multiple Masters fonts we don't support intermediate designs;
+	this implies that
+
+	  number_of_designs == 2 ^^ number_of_axes
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9557
+
+	* src/type1/t1load.c (T1_Open_Face): Ensure above constraint.
+	(T1_Get_MM_Var): Remove now redundant test.
+
+2018-07-24  Hin-Tak Leung  <htl10@users.sourceforge.net>
+
+	[truetype] Match ttdebug's naming of instruction mnemonics.
+
+	* src/truetype/ttinterp.c: The form used in ttdebug,
+	"MDRP[G,B,W,?]", etc., is slightly more readable than
+	"MDRP[00,01,02,03]".
+
+2018-07-24  Werner Lemberg  <wl@gnu.org>
+
+	* src/pcf/pcfread.c (pcf_get_encodings): Thinko.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9561
+
+2018-07-22  Werner Lemberg  <wl@gnu.org>
+
+	* src/pcf/pcfread.c (pcf_get_encodings): Check index of defaultChar.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9527
+
+2018-07-22  Werner Lemberg  <wl@gnu.org>
+
+	* src/pcf/pcfread.c (pcf_load_font): Fix number of glyphs.
+
+	This is an oversight of the module change 2018-07-21.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9524
+
+2018-07-22  Werner Lemberg  <wl@gnu.org>
+
+	[cid] Sanitize `BlueShift' and `BlueFuzz'.
+
+	This code is taken from the type1 module.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9510
+
+	* src/cid/cidload.c (parse_fd_array): Set some private dict default
+	values.
+	(cid_face_open): Do the sanitizing.
+	Fix some tracing messages.
+
+2018-07-21  Werner Lemberg  <wl@gnu.org>
+
+	[pcf] Fix handling of the undefined glyph.
+
+	This change makes the driver use the `defaultChar' property of PCF
+	files.
+
+	* src/pcf/pcf.h (PCF_FaceRec): Change type of `defaultChar' to
+	unsigned.
+
+	* src/pcf/pcfread.c (pcf_get_encodings): Read `defaultChar' as
+	unsigned.
+	Validate `defaultChar'.
+	If `defaultChar' doesn't point to glyph index zero, swap glyphs with
+	index zero and index `defaultChar' and adjust the encodings
+	accordingly.
+
+	* src/pcf/pcfdrivr.c (pcf_cmap_char_index, pcf_cmap_char_next,
+	PCF_Glyph_Load): Undo change from 2002-06-16 which always enforced
+	the first character in the font to be the default character.
+
+2018-07-20  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	Move the legacy fuzz target to the `freetype-testing' repository.
+
+	It can now be found at
+
+	  https://github.com/freetype/freetype2-testing/tree/master/fuzzing/src/legacy
+
+	* src/tools/ftfuzzer: Remove this folder and its contents from the
+	repository.
+
+2018-07-20  Werner Lemberg  <wl@gnu.org>
+
+	[cff] Avoid left-shift of negative numbers (#54322).
+
+	* src/cff/cffgload.c (cff_slot_load): Use multiplication.
+
+2018-07-17  Werner Lemberg  <wl@gnu.org>
+
+	Allow FT_ENCODING_NONE for `FT_Select_Charmap'.
+
+	This is a valid encoding tag for BDF, PCF, and Windows FNT, and
+	there is no reason to disallow it for these formats.
+
+	* src/base/ftobjs.c (FT_Select_Charmap): Implement it.
+
+2018-07-17  Werner Lemberg  <wl@gnu.org>
+
+	* src/pcf/pcfread.c (pcf_get_encodings): Trace `defaultChar'.
+
+2018-07-16  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	* include/freetype/internal/ftcalc.h: Add macros for handling
+	harmless over-/underflowing `FT_Int' values.
+
+	* src/sfnt/sfdriver.c (fixed2float): Fix negation of
+	`(int)(-2147483648)'.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9423
+
+2018-07-16  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgxvar.c (tt_set_mm_blend): Fix off-by-one error.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9412
+
+2018-07-12  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftoutln.c (FT_Outline_Get_Orientation): Init `cbox'.
+
+	Taken from patch #9667, written by Steve Langasek
+	<vorlon@debian.org>.
+
+	This fixes a build failure (most probably a bug in gcc) on ppc64el
+	when building with -O3.
+
+2018-07-05  Werner Lemberg  <wl@gnu.org>
+
+	Fix typo (#54238).
+
+	* src/base/ftcolor.c (FT_Palette_Set_Foreground_Color)
+	[!TT_CONFIG_OPTION_COLOR_LAYERS]: Add return value.
+
+2018-07-05  Werner Lemberg  <wl@gnu.org>
+
+	Adjust table size comparisons (#54242).
+
+	* src/sfnt/ttcpal.c (tt_face_load_cpal): Implement it.
+
+2018-07-05  Werner Lemberg  <wl@gnu.org>
+
+	Fix more 32bit issues (#54208).
+
+	* src/cff/cffload.c (cff_blend_build_vector): Convert assertion into
+	run-time error.
+
+	* src/truetype/ttgxvar.c (ft_var_to_normalized): Protect against
+	numeric overflow.
+
+2018-07-04  Werner Lemberg  <wl@gnu.org>
+
+	Fix 32bit build warnings (#54239).
+
+	* src/base/ftbitmap.c (FT_Bitmap_Blend): Add casts to avoid signed
+	vs. unsigned comparisons.
+
+	* srb/sfnt/ttcolr.c (tt_face_get_colr_layer): Ditto.
+
+2018-07-02  Jeff Carey  <Jeff.Carey@monotype.com>
+
+	* src/psnames/psmodule.c (ps_unicodes_init): Fix alloc debugging.
+
+2018-07-02  Werner Lemberg  <wl@gnu.org>
+
+	s/palette_types/palette_flags/.
+
+	Suggested by Behdad.
+
+2018-07-02  Werner Lemberg  <wl@gnu.org>
+
+	Make `FT_Get_Color_Glyph_Layer' return FT_Bool.
+
+	* include/freetype/freetype.h, src/base/ftobjs.c
+	(FT_Get_Color_Glyph_Layer, FT_Render_Glyph_Internal): Updated.
+
+	* include/freetype/internal/sfnt.h (TT_Get_Colr_Layer_Func),
+	src/sfnt/ttcolr.h, src/sfnt/ttcolr.c (tt_face_get_colr_layer):
+	Updated.
+
+2018-07-01  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftobjs.c (FT_Get_Color_Glyph_Layer): Guard SFNT function.
+
+	Reported by Behdad.
+
+2018-06-28  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/base/fttrigon.c (FT_Tan): Improve accuracy.
+	(FT_Vector_Rotate): Simplify.
+
+2018-06-28  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/base/ftobjs.c (FT_Set_Charmap): Robustify.
+
+2018-06-25  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Fix memory leak.
+
+	* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Add initializers.
+	Fix typo in `goto' destination.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9071
+
+2018-06-25  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgxvar.c (tt_face_vary_cvt): Add initializers.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9070
+
+2018-06-24  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Increase precision while applying VF deltas.
+
+	It turned out that we incorrectly round CVT and glyph point deltas
+	before accumulation, leading to severe positioning errors if there
+	are many delta values to sum up.
+
+	Problem reported by Akiem Helmling <akiem@underware.nl> and analyzed
+	by Behdad.
+
+	* src/truetype/ttgxvar.c (ft_var_readpackeddelta): Return deltas in
+	16.16 format.
+	(tt_face_var_cvt): Collect deltas in `cvt_deltas', which is a 16.16
+	format array, and add the accumulated values to the CVT at the end
+	of the function.
+	(TT_Vary_Apply_Glyph_Deltas): Store data in `points_org' and
+	`points_out' in 16.16 format.
+	Collect deltas in `point_deltas_x' and `point_deltas_y', which are
+	16.16 format arrays, and add the accumulated values to the glyph
+	coordinates at the end of the function.
+
+2018-06-24  Werner Lemberg  <wl@gnu.org>
+
+	New base function `FT_Matrix_Check' (#54019).
+
+	* src/base/ftcalc.c (FT_Matrix_Check): New base function to properly
+	reject degenerate font matrices.
+
+	* include/freetype/internal/ftcalc.h: Updated.
+
+	* src/cff/cffparse.c (cff_parse_font_matrix), src/cid/cidload.c
+	(cid_parse_font_matrix), src/type1/t1load.c (t1_parse_font_matrix),
+	src/type42/t42parse.c (t42_parse_font_matrix): Use
+	`FT_Matrix_Check'.
+
+2018-06-23  Werner Lemberg  <wl@gnu.org>
+
+	Fix typo.
+
+	Reported by Behdad.
+
+	* src/base/ftcolor.c (FT_Palette_Data_Get)
+	[!TT_CONFIG_OPTION_COLOR_LAYERS]: s/apalette/apalette_data/.
+
+2018-06-21  Werner Lemberg  <wl@gnu.org>
+
+	s/FT_PALETTE_USABLE_WITH_/FT_PALETTE_FOR_/.
+
+	* include/freetype/ftcolor.h, include/freetype/internal/sfnt.h,
+	src/sfnt/ttcolr.c: Do it.
+
+2018-06-19  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt] Fix CPAL heap buffer overflow.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8968
+
+	* src/sfnt/ttcpal.c (tt_face_load_cpal): Guard CPAL version 1
+	offsets.
+
+2018-06-19  Werner Lemberg  <wl@gnu.org>
+
+	Doh.  Don't use CPAL or COLR data if tables are missing.
+
+	Reported by Alexei.
+
+	* src/sfnt/ttcolr.c (tt_face_get_colr_layer): Return immediately if
+	`colr' is NULL.
+
+	* src/sfnt/ttcpal.c (tt_face_palette_set): Return immediately, if
+	`cpal' is NULL.
+
+2018-06-17  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[base] Introduce `FT_New_Glyph'.
+
+	This function facilitates access to full capabilities of FreeType
+	rendering engine for custom glyphs. This can be quite useful for
+	consistent rendering of mathematical and chemical formulas, e.g.
+
+	  https://bugs.chromium.org/p/chromium/issues/detail?id=757078
+
+	* include/freetype/ftglyph.h, src/base/ftglyph.c (FT_New_Glyph): New
+	function.
+
+2018-06-17  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	[bdf] Fix underflow of an unsigned value.
+
+	bdflib.c:1562 could be reached with `font->glyphs_used == 0'.  That
+	caused an underflow of the unsigned value which results in undefined
+	behaviour.
+
+	* src/bdf/bdflib.c (_bdf_parse_glyphs): Bail out earlier than before
+	if the `ENCODING' keyword cannot be found.
+
+2018-06-17  Werner Lemberg  <wl@gnu.org>
+
+	[base] Add tracing for `FT_Bitmap_Blend'.
+
+	* include/freetype/internal/fttrace.h (trace_bitmap): New
+	enumeration.
+
+	* src/base/ftbitmap.c (FT_COMPONENT): Define.
+	(FT_Bitmap_Blend): Add `FT_TRACE5' calls.
+
+2018-06-17  Werner Lemberg  <wl@gnu.org>
+
+	s/trace_bitmap/trace_checksum/.
+
+	* include/freetype/internal/fttrace.h: s/bitmap/checksum/.
+
+	* src/base/ftobjs.c (FT_COMPONENT): s/trace_bitmap/trace_checksum/.
+	Adjust code.
+
+2018-06-16  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt] Fix color glyph layer loading.
+
+	* src/sfnt/ttcolr.c (Colr): Add `table_size' field.
+	(tt_face_load_colr): Set it.
+	(tt_face_get_colr_layer): Check pointer limit for layer entries.
+
+2018-06-16  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt] Fix color palette loading.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8933
+
+	* src/sfnt/ttcpal.c (Cpal): Add `table_size' field.
+	(tt_face_load_cpal): Set it.
+	(tt_face_palette_set): Check pointer limit for color entries.
+
+2018-06-16  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftbitmap.c (FT_Bitmap_Blend): Avoid integer overflow.
+
+2018-06-16  Werner Lemberg  <wl@gnu.org>
+
+	Add `FT_Bitmap_Blend' API.
+
+	Still missing: Support for negative bitmap pitch and subpixel offset
+	of source bitmap.
+
+	* include/freetype/ftbitmap.h, src/base/ftbitmap.c
+	(FT_Bitmap_Blend): New function.
+
+2018-06-14  Werner Lemberg  <wl@gnu.org>
+
+	Replace `FT_Get_GlyphLayers' with `FT_Get_Color_Glyph_Layer'.
+
+	This avoids any additional allocation of COLR related structures in
+	a glyph slot.
+
+	* include/freetype/freetype.h (FT_Glyph_Layer, FT_Glyph_LayerRec,
+	FT_Get_GlyphLayers): Removed.
+
+	* include/freetype/internal/ftobjs.h (FT_Colr_InternalRec): Removed.
+	(FT_Slot_InternalRec): Remove `color_layers'.
+
+	* include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func):
+	Removed.
+	(SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Remove
+	`load_colr_layer'.
+
+	* src/base/ftobjs.c (ft_glyph_slot_done): Updated.
+	(FT_Render_Glyph_Internal): Use `FT_Get_Color_Glyph_Layer'.
+	(FT_Get_GlyphLayers): Removed.
+
+	* src/sfnt/sfdriver.c (sfnt_interface): Updated.
+
+	* src/sfnt/ttcolr.c (tt_face_load_colr_layers): Removed.
+	* src/sfnt/ttcolr.h: Updated.
+
+	* src/truetype/ttgload.c (TT_Load_Glyph): Updated.
+
+2018-06-14  Werner Lemberg  <wl@gnu.org>
+
+	Provide iterative API to access `COLR' data.
+
+	This solution doesn't store any data in an `FT_GlyphSlot' object.
+
+	* include/freetype/freetype.h (FT_LayerIterator): New structure.
+	(FT_Get_Color_Glyph_Layer): New function.
+
+	* include/freetype/internal/sfnt.h (TT_Get_Colr_Layer_Func): New
+	function type.
+	(SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Add it.
+
+	* src/base/ftobjs.c (FT_Get_Color_Glyph_Layer): Implement it.
+
+	* src/sfnt/ttcolr.c (tt_face_get_colr_layer): New function.
+	* src/sfnt/ttcolr.h: Updated.
+
+	* src/sfnt/sfdriver.c (sfnt_interface): Updated.
+
+2018-06-14  Werner Lemberg  <wl@gnu.org>
+
+	Add glyph index and glyph load flags to glyph slot.
+
+	* include/freetype/freetype.h (FT_GlyphSlotRec): Rename unused
+	`reserved' field to `glyph_index'.
+
+	* include/freetype/internal/ftobjs.h (FT_Slot_InternalRec): Add
+	`load_flags' field.
+
+	* src/base/ftobjs.c (FT_Load_Glyph): Set new fields.
+
+2018-06-14  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt] Move `CPAL' stuff into separate files.
+
+	* src/sfnt/sfdriver.c: Include `ttcpal.h'.
+	* src/sfnt/sfnt.c: Include `ttcpal.c'.
+
+	* src/sfnt/ttcolr.c, src/sfnt/ttcolr.h: Move CPAL stuff to ...
+	* src/sfnt/ttcpal.c, src/sfnt/ttcpal.c: ... these new files.
+
+	* src/sfnt/Jamfile (_sources), src/sfnt/rules.mk (SFNT_DRV_SRC):
+	Updated.
+
+	* include/freetype/internal/fttrace.h: Add support for `colr' and
+	`cpal'.
+	Sort entries.
+
+2018-06-13  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt] Separate `CPAL' and `COLR' table handling.
+
+	Later on we want to support the `SVG' table also, which needs `CPAL'
+	(but not `COLR').
+
+	* include/freetype/internal/sfnt.h (SFNT_Interface): Add `load_cpal'
+	and `free_cpal' fields.
+	(FT_DEFINE_SFNT_INTERFACE): Updated.
+
+	* include/freetype/internal/tttypes.h (TT_FaceRec): Replace
+	`colr_and_cpal' fields with `cpal' and `colr'.
+
+	* src/sfnt/sfdriver.c (sfnt_interface): Updated.
+
+	* src/sfnt/sfobjs.c (sfnt_load_face, sfnt_done_face): Updated.
+
+	* src/sfnt/ttcolr.c (Colr, Cpal): Add `table' field.
+	(ColrCpal): Removed.
+	(tt_face_load_colr): Split off CPAL handling into...
+	(tt_face_load_cpal): ... this new function.
+	(tt_face_free_colr): Split off CPAL handling into...
+	(tt_face_free_cpal): ... this new function.
+	(tt_face_load_colr_layers, tt_face_palette_set): Updated.
+
+	* src/sfnt/ttcolr.h: Updated.
+
+	* src/truetype/ttgload.c (TT_Load_Glyph): Updated.
+
+2018-06-12  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt] Fix `sizeof' thinko.
+
+	* src/sfnt/ttcolr.c (tt_face_load_colr, tt_face_palette_set): Don't
+	use `sizeof' for computing array limit.
+
+2018-06-12  Werner Lemberg  <wl@gnu.org>
+
+	Finish CPAL/COLR support (4/4).
+
+	* src/sfnt/ttcolr.c (tt_face_find_color): Removed.
+	(tt_face_colr_blend_layer): Use `face->palette' instead of calling
+	`tt_face_find_color'.
+	Use and set text foreground color.
+
+2018-06-12  Werner Lemberg  <wl@gnu.org>
+
+	Finish CPAL/COLR support (3/4).
+
+	* src/base/ftcolor.c: Include FT_INTERNAL_SFNT_H.
+	(FT_Palette_Select, FT_Palette_Set_Foreground_Color): Implement
 	functions.
 
-	* src/psaux/psdecode.c, src/psaux/psdecode.h: New files to hold
-	`PS_Decoder' initialization functions.
+2018-06-12  Werner Lemberg  <wl@gnu.org>
 
-	* src/psaux/psaux.c, src/psaux/Jamfile (_sources),
-	src/psaux/rules.mk (PSAUX_DRV_SRC): Updated.
+	Finish CPAL/COLR support (2/4).
 
-2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+	* src/sfnt/ttcolr.c (tt_face_palette_set): New function.
+	(tt_face_load_colr): Allocate `face->palette' and call
+	`tt_face_palette_set'.
+	Adjust return error code in case of error.
 
-	[psaux] Rename files.
+	* src/sfnt/ttcolr.h: Updated.
 
-	Replace the `cf2' file name prefix with `ps' as the Adobe engine
-	will be used for both PostScript Types 1 and 2 (CFF) instead of just
-	CFF.
+	* include/freetype/internal/sfnt.h (TT_Set_Palette_Func): New
+	function type.
+	(SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Add it.
 
-	s/cf2/ps/ for all following.
+	* src/sfnt/sfdriver.c (sfnt_interface), src/sfnt/sfobjs.c
+	(sfnt_done_face): Updated.
 
-	* src/psaux/cf2*: Rename files.
-	* src/psaux/*: Update includes.
+2018-06-12  Werner Lemberg  <wl@gnu.org>
 
-	* src/psaux/Jamfile (_sources), src/psaux/rules.mk (PSAUX_DRC_SRC,
-	PSAUX_DRV_H): Update file references.
+	Finish CPAL/COLR support (1/4).
 
-2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+	* include/freetype/internal/tttypes.h (TT_FaceRec): New fields
+	`palette_index', `palette', `have_foreground_color' and
+	`foreground_color'.
 
-	[psaux] Minor fix.
+2018-06-12  Werner Lemberg  <wl@gnu.org>
 
-	Use `MultiMasters' service in `psaux' instead of a call to `cff'.
-	The project builds if CFF_CONFIG_OPTION_OLD_ENGINE is not defined.
+	[sfnt] Minor.
 
-	* src/psaux/cf2ft.c: Update includes.
-	(cf2_getNormalizedVector): Use `mm->get_var_blend' instead of
-	`cff_get_var_blend'.
+	* src/sfnt/ttcolr.c (tt_face_load_colr_layers):
+	s/palette_index/palette_entry_index/ for consistency.
+	Adjust return error code in case of error.
 
-2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+2018-06-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	[psaux, cff] Move `cff_random' into `psaux' service.
+	[raster] Clean up.
 
-	NOTE: Does not compile!
+	* src/raster/ftraster.c (black_TWorker, SCALED, Set_High_Precision):
+	Clean up after 5-level gray removal (8dc8635874).
+	(Vertical_Sweep_Span): Be brief.
 
-	Minor fix to allow both `cff' and `psaux' to use `cff_random'.
+2018-06-10  Werner Lemberg  <wl@gnu.org>
 
-	* src/cff/cffload.c (cff_random): Move to...
-	* src/psaux/psobjs.c: Here.
-	* src/cff/cffload.h: Move corresponding declaration to
-	`src/psaux/psobjs.h'.
+	[sfnt] Fix compiler warnings.
 
-	* include/freetype/internal/psaux.h (PSAux_ServiceRec): Register the
-	function here...
-	* src/psaux/psauxmod.c: And here.
+	* src/sfnt/ttcolr.c (tt_face_load_colr, tt_face_load_colr_layers,
+	tt_face_colr_blend_layer): Add `NULL' initializers.
 
-	* src/cff/cffload.c, src/psaux/cf2intrp.c: Update code.
+2018-06-10  Werner Lemberg  <wl@gnu.org>
 
-2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+	s/FT_Palette/FT_Palette_Data/, s/palette/palette_data/.
 
-	[cff] Move struct declarations to `freetype/internal'.
+	* include/freetype/ftcolor.h, include/freetype/internal/tttypes.h,
+	src/base/ftcolor.c, src/sfnt/sfobjs.c, src/sfnt/ttcolr.c: Updated.
 
-	NOTE: Does not compile!
+2018-06-10  Nikolaus Waxweiler  <madigens@gmail.com>
 
-	This is so that the CFF functions moved to `psaux' can access the
-	same structs that they need.
+	CMakeLists: also accept IOS_PLATFORM=SIMULATOR64
 
-	* src/cff/cfftypes.h: Moved to...
-	* include/freetype/internal/cfftypes.h: ...Here.
+	This might be needed to build FreeType for the iOS simulator. See
+	https://savannah.nongnu.org/bugs/index.php?54048. Patch contributed
+	by Steve Robinson.
 
-	* src/cff/cffobjs.h: Moved the struct declarations to...
-	* include/freetype/internal/cffotypes.h: ... this new file.
+	* CMakeLists.txt: Accept IOS_PLATFORM=SIMULATOR64
 
-	* include/freetype/internal/internal.h (FT_INTERNAL_CFF_TYPES_H,
-	FT_INTERNAL_CFF_OBJECT_TYPES_H): New macros.
+2018-06-10  Werner Lemberg  <wl@gnu.org>
 
-	* src/cff/cffcmap.h, src/cff/cffdrivr.c, src/cff/cffgload.c,
-	src/cff/cffgload.h, src/cff/cffload.h, src/cff/cffobjs.c,
-	src/cff/cffobjs.h, src/cff/cffparse.h, src/psaux/psobjs.h,
-	include/freetype/internal/psaux.h,
-	include/freetype/internal/services/svcfftl.h: Update includes.
+	Implement `FT_Palette_Get'.
 
-	* src/cff/rules.mk (CFF_DRV_H): Updated.
+	* src/base/ftcolor.c: New file.
 
-2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+	* src/base/Jamefile (_sources), src/base/rules.mk (BASE_SRC),
+	src/base/ftbase.c: Add `ftcolor.c'.
 
-	[psaux, cff] Add new service for inter-module calls.
+2018-06-10  Werner Lemberg  <wl@gnu.org>
 
-	NOTE: Does not compile!
+	* src/sfnt/ttcolr.c (tt_face_load_colr): Improve overflow checks.
 
-	This is to allow CFF functions moved to `psaux' to call functions
-	declared in `src/cff/cffload.h'.
+2018-06-09  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* include/freetype/internal/services/svcfftl.h: New file, setting up
-	a `CFFLoad' service.
+	[raster] Deal with pitch sign earlier.
 
-	* include/freetype/internal/ftserv.h (FT_DEFINE_SERVICEDESCREC10,
-	FT_DEFINE_SERVICEDESCREC): New macros.
-	(FT_SERVICE_CFF_TABLE_LOAD_H): New macro.
+	* src/raster/ftraster.c (black_TWorker): Remove unused `traceG',
+	s/bTarget/bOrigin/.
+	(Render_Glyph): Set `ras.bOrigin' at the bottom-left corner.
+	(Vertical_Sweep_Init, {Vertical,Horizontal}_Sweep_{Span,Drop}):
+	Updated accordingly.
 
-	* src/cff/cffdrivr.c, src/cff/cffpic.h: Register the new service.
+2018-06-09  Werner Lemberg  <wl@gnu.org>
 
-	* src/cff/cfftypes.h (CFF_FontRec), src/psaux/cf2font.h
-	(CF2_FontRec): Add service interface.
+	[sfnt] Read `CPAL' version 1 tables.
 
-	* src/cff/cffobjs.c, src/psaux/cf2font.c, src/psaux/cf2ft.c,
-	src/psaux/cf2intrp.c, src/psaux/cffdecode.c: Use the new service.
+	* include/freetype/internal.tttypes.h: Include FT_COLOR_H.
+	(TT_FaceRec): Add `palette' field.
 
-2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+	* src/sfnt/ttcolr.c: Include FT_COLOR_H.
+	(Cpal): Remove all data covered by the new `palette' field in
+	`TT_FaceRec'.
+	(tt_face_load_colr): Updated.
+	Read `CPAL' version 1 data.
+	(tt_face_load_colr_layers, tt_face_find_color): Updated.
 
-	[psaux, cff] Add callbacks for inter-module calls.
+	* src/sfnt/sfobjs.c (sfnt_done_face): Free glyph color palette data.
 
-	NOTE: Does not compile!
+2018-06-07  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* include/freetype/internal/psaux.h: Add function pointer
-	declarations.
+	[base] API for Harmony LCD rendering.
 
-	* src/psaux/cffdecode.c (cff_decoder_init): Update to take in
-	callbacks.
-	* src/psaux/cffdecode.h: Ditto.
+	This introduces `FT_Library_SetLcdGeometry' for setting up arbitrary
+	LCD subpixel geometry including non-striped patterns.
 
-	* src/cff/cffgload.c (cff_compute_max_advance, cff_slot_load):
-	Update calls to pass in callbacks.
-	* src/psaux/cf2ft.c, src/psaux/cffdecode.c: Use them.
+	* src/base/ftlcdfil.c (FT_Library_SetLcdGeometry): New function.
+	* include/freetype/ftlcdfil.h: Document it.
+	* include/freetype/freetype.h: Minor.
+	* include/freetype/ftchapters.h: Minor.
 
-2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+2018-06-06  Werner Lemberg  <wl@gnu.org>
 
-	[psaux, cff] Create new `PSAux' service interface entries.
+	ftcolor.h: Redesign API.
 
-	NOTE: Does not compile!
+	While going to implement it I noticed that I need access to most of
+	the `CPAL' elements; I thus plan to add a `cpal' field to
+	`TT_FaceRec', which makes most of the previously suggested API
+	functions obsolete because the fields will be directly accessible.
 
-	* include/freetype/internal/psaux.h: Include
-	FT_INTERNAL_TRUETYPE_TYPES_H.
-	(CFF_Builder_FuncsRec, CFF_Decocer_FuncsRec): New function tables.
-	(CFF_Builder): Updated.
-	Fix for forward declaration.
-	(PSAux_ServiceRec): New field `cff_decoder_funcs'.
+2018-06-06  Parth Wazurkar  <parthwazurkar@gmail.com>
 
-	* src/psaux/psauxmod.c (cff_builder_funcs, cff_decoder_funcs): New
-	function tables.
-	(PSAux_Interface): Updated.
+	[bdf, pcf] Remove deprecated FT_FACE_FLAG_FAST_GLYPHS flag.
 
-	* include/freetype/internal/tttypes.h (TT_FaceRec): Add `psaux'
-	service interface.
+	* src/bdf/bdfdrivr.c (BDF_Face_Init): Remove deprecated
+	FT_FACE_FLAG_FAST_GLYPHS flag.
+
+	* src/pcf/pcfread.c (pcf_load_font): Remove deprecated
+	FT_FACE_FLAG_FAST_GLYPHS flag.
+
+2018-06-06  Werner Lemberg  <wl@gnu.org>
+
+	[smooth, raster] Limit bitmap size (#54019).
+
+	* src/raster/ftraster.c [STANDALONE] (FT_Outline_Get_CBox): Add
+	function.
+	[!STANDALONE]: Include FT_OUTLINE_H.
+	(ft_black_render): Compute CBox and reject glyphs larger than
+	0xFFFF x 0xFFFF.
+
+	* src/smooth/ftgrays.c (gray_raster_render): Reject glyphs larger
+	than 0xFFFF x 0xFFFF.
+
+2018-06-03  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	* src/smooth/ftgrays.c (gray_convert_glyph): Remove unused variables.
+
+2018-06-03  Werner Lemberg  <wl@gnu.org>
+
+	* src/tools/glnames.py (main): Emit header in `light' comment style.
+
+2018-06-02  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Attempt to mitigate bug #54019.
+
+	The robust rendering of estra large glyphs came with unbearable cost.
+	The old way of bisecting should fail but fail faster.
+
+	* src/smooth/ftgrays.c (gray_convert_glyph): Switch back to bisecting
+	in y-direction.
+
+2018-06-02  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttinterp.c (Ins_MIRP): Use SUB_LONG; avoid FT_ABS.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8706
+
+2018-06-02  Werner Lemberg  <wl@gnu.org>
+
+	* src/autofit/afwarp.h: Use AF_CONFIG_OPTION_USE_WARPER (#54033).
+
+2018-05-31  Werner Lemberg  <wl@gnu.org>
+
+	* src/raster/ftraster.c (black_TWorker_): Remove `gTarget' field.
+
+	This is no longer used.
+
+2018-05-31  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt] Get colors from `CPAL' table in right order (#54015).
+
+	* src/sfnt/ttcolr.c (tt_face_find_color): Fix it.
+
+2018-05-30  Werner Lemberg  <wl@gnu.org>
+
+	ftcolor.h: Improve API design, fix typos (#54011, #54014).
+
+	* include/freetype/ftcolor.h (FT_Palette_Get_Names): Replace with...
+	(FT_Palette_Get_Name_IDs): ... this function.
+	(FT_Palette_Get_Entry_Names): Replace with...
+	(FT_Palette_Get_Entry_Name_IDs): ... this function
+	s/FT_Palette_Set_Foreground_COlor/FT_Palette_Set_Foreground_Color/.
+
+2018-05-30  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	Beautify a3cfed5e87232c933bdc64f43e8ebebcfd18b41b.
+
+	* src/autofit/afloader.c (af_loader_load_glyph): Move the
+	initialisationand declaration of variables into the if-block.
+
+2018-05-30  Armin Hasitzka  <prince.cherusker@gmail.com>
+
+	Fix pointer underflow.
+
+	The declaration of `edge2' can be reached with `edge1 == NULL' and
+	`axis->edges == 0' which results in undefined behaviour.
+
+	* src/autofit/afloader.c (af_loader_load_glyph): Initialise `edge2'
+	after checking `axis->num_edges > 1'.  `edge1 != NULL' can be assumed.
+
+2018-05-30  Werner Lemberg  <wl@gnu.org>
+
+	Various minor color fixes.
+
+	* include/freetype/config/ftheader.h (FT_COLOR_H): New macro.
+
+	* include/freetype/internal/ftobjs.h (FT_Colr_Internal): Change
+	type of `load_flags' to `FT_Int32'.
+
+	* include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func): Change
+	type of `idx' to `FT_UInt'.
+	(TT_Blend_Colr_Func): Change type of `color_index' to `FT_UInt'.
+
+	* src/base/ftobjs.c (FT_Render_Glyph_Internal): Change type of
+	`load_flags' to `FT_Int32'.
+
+	* src/sfnt/ttcolr.c (find_base_glyph_record,
+	tt_face_load_colr_layers): Change type of `glyph_id' to `FT_UInt'.
+	(tt_face_find_color, tt_face_colr_blend_layer): Change type of
+	`color_index' to `FT_UInt'.
+	Fix signedness and type issues.
+
+	* src/sfnt/ttcolr.h: Updated.
+
+2018-05-25  Nikhil Ramakrishnan  <ramakrishnan.nikhil@gmail.com>
+
+	[docmaker] Fix missing `Defined in (...)' under Windows/Cygwin.
+
+	This platform uses backslashes for paths, which docmaker didn't
+	understand correctly.
+
+	* src/tools/docmaker/tohtml.py (HtmlFormatter::blockEnter): Use
+	`os.path.normpath' to normalize the path for the platform being
+	used.
+
+2018-05-24  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Formalize Harmony LCD rendering.
+
+	This generalizes magic outline shifts that make Harmony LCD
+	rendering work in terms of precise two-dimensional RGB subpixel
+	positions. These coordinates are now set in time of the `smooth'
+	module initialization and later used to shift a glyph outline for
+	rendering. FT_RENDER_MODE_LCD and FT_RENDER_MODE_LCD_V use the same
+	coordinates. The letter, however, rotates them before using.
+	The LCD bitmap padding is also calculated using these coordinates.
+
+	* include/freetype/internal/ftobjs.h (FT_LibraryRec): New array field
+	`lcd_geometry'.
+	* src/base/ftlcdfil.c (ft_lcd_padding): Reworked.
+	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Updated accordingly.
+
+	* src/smooth/ftsmooth.c [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]
+	(ft_smooth_init): Initialize `lcd_geometry'.
+	(ft_smooth_render_generic): Formalize outline shifts.
+
+2018-05-22  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Reject elements of composites with invalid glyph indices.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8413
+
+	* src/truetype/ttgload.c (TT_Load_Composite_Glyph): Implement it.
+
+2018-05-22  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Trace # of points.
+
+2018-05-20  Werner Lemberg  <wl@gnu.org>
+
+	* include/freetype/ftcolor.h: New file.
+
+	This is an interface to the `CPAL' OpenType table.  No
+	implementation yet.
+
+2018-05-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* include/freetype/internal/ftcalc.h (FT_MSB): Verified `_MSC_VER'.
 
-	* src/cff/cffgload.c, src/cff/cffobjs.c, src/cff/cffparse.c: Update
-	function calls to use psaux service.
+	Actually `_BitScanReverse' is available since VS2005.
 
-2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+2018-05-18  Werner Lemberg  <wl@gnu.org>
 
-	[psaux, cff] Move CFF builder components into `psaux' module.
+	* include/freetype/internal/ftcalc.h (FT_MSB): Use `_MSC_VER' value.
 
-	NOTE: Does not compile!
+	Older VC versions don't provide `_BitScanReverse'.  We test for VC
+	2013.
 
-	* src/cff/cffgload.c
-	(cff_builder_{init,done,add_point,add_point1,add_contour,start_point,close_contour},
-	cff_check_points): Move to...
-	* src/psaux/psobjs.c: Here.
+	Reported by John Emmas <john@creativepost.co.uk>.
 
-	* src/cff/cffgload.h: Move corresponding declarations to
-	`src/psaux/psobjs.h'.
+2018-05-17  Werner Lemberg  <wl@gnu.org>
 
-	* src/cff/cffgload.h (CFF_Builder): Move struct declaration to...
-	* include/freetype/internal/psaux.h: Here.
+	s/inline/__inline/ for MSVC.
 
-2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+	Reported by John Emmas <john@creativepost.co.uk>.
 
-	[psaux, cff] Move CFF decoder components into `psaux' module.
+	* include/freetype/internal/ftcalc.h (FT_MSB) [_MSC_VER]: Do it.
 
-	NOTE: Does not compile!
+2018-05-16  Werner Lemberg  <wl@gnu.org>
 
-	* src/cff/cffgload.c (CFF_Operator,
-	CFF_COUNT_{CHECK_WIDTH,EXACT,CLEAR_STACK}, cff_argument_counts,
-	cff_operator_seac, cff_compute_bias,
-	cff_lookup_glyph_by_stdcharcode,
-	cff_decoder_{parse_charstrings,init,prepare}): Move to...
-	* src/psaux/cffdecode.c: This new file.
+	Add function `FT_Get_GlyphLayers' to access `COLR' table data.
 
-	* src/cff/cffgload.h: Move corresponding declarations to...
-	* src/psaux/cffdecode.h: This new file.
+	* include/freetype/internal/ftobjs.h (FT_Glyph_LayerRec): Move this
+	structure to...
+	* include/freetype/freetype.h (FT_Glyph_LayerRec): ... this
+	header file.
+	(FT_Glyph_Layer): New typedef.
+	Update code to use it where appropriate.
 
-	* src/cff/cffgload.h (CFF_MAX_{OPERANDS,SUBRS_CALLS,TRANS_ELEMENTS},
-	CFF_Decoder_Zone, CFF_Decoder): Move declarations to...
-	* include/freetype/internal/psaux.h: Here.
+	* src/base/ftobjs.c (FT_Get_GlyphLayers): New function.
 
-	* src/psaux/cf2ft.h: Update include.
+2018-05-15  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
-	* src/psaux/psaux.c, src/psaux/rules.mk (PSAUX_DRV_SRC): Update with
-	the new file.
+	[base] Fix mono bitmap presetting (#53896).
 
-2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+	It is rather fundamental to set monochrome bitmap based on rounded
+	CBox because the b/w rasterizer turns on pixels when their centers are
+	inside the glyph outline. The dropout control is unpredictable and can
+	distort narrow glyphs if the bitmap is too wide.
 
-	[psaux, cff] Move Adobe's engine components into `psaux' module.
+	Reported by Chris Liddell.
 
-	This is the first patch of a sequence to move the Type 2 charstring
-	processing capability from the `cff' module to the `psaux' module.
+	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): If BBox boundaries
+	are too close, adjust them before rounding.
 
-	NOTE: Does not compile!
+2018-05-15  Werner Lemberg  <wl@gnu.org>
 
-	* src/cff/cf2*: Move these files to...
-	* src/psaux/cf2*: Here.
+	[psaux] Fix compiler warning (#53915).
 
-	* src/cff/Jamfile (_sources), src/cff/rules.mk (CFF_DRV_SRC,
-	CFF_DRV_H), src/cff/cff.c, src/cff/cffgload.c: Remove file
-	references.
+	* src/psaux/psft.c (cf2_freeT1SeacComponent): Do it.
 
-	* src/psaux/Jamfile (_sources), src/psaux/rules.mk, src/psaux/psaux.c
-	(PSAUX_DRV_SRC, PSAUX_DRV_H): Add file references.
+2018-05-15  Werner Lemberg  <wl@gnu.org>
 
-2017-09-24  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	[sfnt] Fix memory leak in handling `COLR' data.
 
-	Tweak per-face LCD filtering controls.
+	* src/truetype/ttgload.c (TT_Load_Glyph): Free old `layers' array
+	before reassigning allocated memory.
+	Only allocate `color_layers' if we don't have one already.
 
-	Thing are simpler with a NULL-function pointer.
+2018-05-15  Werner Lemberg  <wl@gnu.org>
 
-	* include/freetype/internal/ftobjs.h (FT_Face_InternalRec): New
-	pointer to the filter function.
-	(FT_LibraryRec): Remove unused `lcd_filter'.
-	(FT_Bitmap_LcdFilterFunc, ft_lcd_filter_fir):  Move from here...
-	* include/freetype/ftlcdfil.h (FT_Bitmap_LcdFilterFunc,
-	ft_lcd_filter_fir): ... to here.
+	[sfnt] If `COLR' is present, don't assume that all glyphs use it.
 
-	* src/base/ftobjs.c (ft_open_face_internal): NULL-initialize the
-	per-face filter.
-	(FT_Face_Properties): Set it.
-	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Simplify.
+	* src/sfnt/ttcolr.c (tt_face_load_colr_layers): Return FT_Err_Ok if
+	current glyph is not a `COLR' base glyph.
 
-	* src/base/ftlcdfil.c (ft_lcd_filter_fir, FT_Libary_SetLcdFilter):
-	Minor.
+	* src/truetype/ttgload.c (TT_Load_Glyph): Don't allocate
+	`color_layers' if there are no color layers.
 
-2017-09-24  Jonathan Kew  <jfkthame@gmail.com>
+2018-05-14  Werner Lemberg  <wl@gnu.org>
 
-	[sfnt] Fix `premultiply_data' (#52092).
+	* src/base/ftobjs.c (FT_Load_Glyph): Fix signature of `pixel_modes'.
 
-	* src/sfnt/pngshim.c (premultiply_data): Don't use vector extension
-	if we have less than 16 bytes of data.
+2018-05-14  Werner Lemberg  <wl@gnu.org>
 
-2017-09-24  Werner Lemberg  <wl@gnu.org>
+	Provide dummy functions if `TT_CONFIG_OPTION_SFNT_NAMES' is not set.
 
-	[otvalid] Fix handling of ValueRecords.
+	* src/base/ftsnames.c [!TT_CONFIG_OPTION_SFNT_NAMES]: Implement it.
 
-	For GPOS pair positioning format 1 the description of ValueRecords
-	in the OpenType specification (1.8.2, from today) is wrong – the
-	offset has to be taken from the parent structure; in this case the
-	`PairSet' table.
+2018-05-13  Werner Lemberg  <wl@gnu.org>
 
-	* src/otvalid/otvgpos.c (otv_PairSet_validate): Set `extra3'.
-	(otv_PairPos_validate): Adjust.
+	* src/base/ftobjs.c (FT_Load_Glyph): Improve tracing.
 
-2017-09-23  Werner Lemberg  <wl@gnu.org>
+2018-05-13  Shao Yu Zhang  <shaozhang@fb.com>
+	    Werner Lemberg  <wl@gnu.org>
 
-	[otvalid] Handle `GSUB' and `GPOS' v1.1 tables.
+	[sfnt] Preliminary support of colored layer outlines (#44689).
 
-	* src/otvalid/otvgsub.c (otv_GSUB_validate), src/otvalid/otvgpos.c
-	(otv_GPOS_validate): Implement it.
+	This commit enables OpenType's COLR/CPAL table handling; a typical
+	application are color emojis that can be scaled to any size.
 
-2017-09-23  Werner Lemberg  <wl@gnu.org>
+	If the color palette does not exist or is invalid, the rendering
+	step rasterizes the outline instead.  The current implementation
+	assumes that the foreground is black.
 
-	[otvalid] Update common table handling to OpenType 1.8.2.
+	Enable this by defining option TT_CONFIG_OPTION_COLOR_LAYERS.
 
-	* src/otvalid/otvcommn.c (otv_Device_validate): Handle
-	VariationIndex subtable.
-	(otv_Lookup_validate): Handle MarkFilteringSet.
+	There are still some issues with metrics; additionally, an API to
+	fetch color layers is missing.
 
-2017-09-23  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	* devel/ftoption.h, include/freetype/config/ftoption.h
+	(TT_CONFIG_OPTION_COLOR_LAYERS): New macro.
 
-	[build] Windows-style DLL versioning.
+	* include/freetype/internal/ftobjs.h (FT_Glyph_LayerRec,
+	FT_Colr_InternalRec): New structures.
+	(FT_Slot_InternalRec): Add `color_layers' field.
 
-	* build/windows/ftver.rc: New VERSIONINFO resource.
-	* build/windows/vc2010/freetype.vcxproj: Further improvements.
+	* include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func,
+	TT_Blend_Colr_Func): New function types.
+	(SFNT_Interface): Add `load_colr', `free_colr', `load_colr_layer',
+	and `colr_blend' fields.
 
-2017-09-23  Ben Wagner  <bungeman@google.com>
+	* include/freetype/internal/tttypes.h (TT_FaceRec): Add
+	`colr_and_cpal' field.
 
-	[truetype] Really fix #52082.
+	* include/freetype/internal/tttags. (TTAG_COLR, TTAG_CPAL): New
+	macros.
 
-	* src/truetype/ttinterp.c (Ins_MDRP): Correct conditional.
+	* src/sfnt/ttcolr.c, src/sfnt/ttcolr.h: New files.
 
-2017-09-23  Werner Lemberg  <wl@gnu.org>
+	* src/base/ftobjs.c (ft_glyphslot_done, FT_Render_Glyph_Internal):
+	Handle glyph color layers.
 
-	[otvalid] Handle `GDEF' v1.2 and v1.3 tables.
+	* src/sfnt/Jamfile (_sources), src/sfnt/rules.mk (SFNT_DRV_SRC): Add
+	`ttcolr.c'.
 
-	No validation of variation stuff yet.
+	* src/sfnt/sfdriver.c: Include `ttcolr.h'.
+	(PUT_COLOR_LAYERS): New macro.
+	Update call to `FT_DEFINE_SFNT_INTERFACE'.
 
-	* src/otvalid/otvgdef.c (otv_MarkGlyphSets_validate): New function.
-	(otv_GDEF_validate): Implement it.
+	* src/sfnt/sfnt.c: Include `ttcolr.c'.
 
-2017-09-22  Werner Lemberg  <wl@gnu.org>
+	* src/sfnt/sfobjs.c (sfnt_load_face): Load `COLR' and `CPAL' tables.
+	(sfnt_done_face): Updated.
 
-	[otvalid] Handle `BASE' v1.1 table.
+	* src/truetype/ttgload.c (TT_Load_Glyph): Handle color layers.
 
-	No validation of variation stuff yet.
+2018-05-12  Arkady Shapkin  <arkady.shapkin@gmail.com>
 
-	* src/otvalid/otvbase.c (otv_BASE_validate): Implement it.
+	Use MS VC++'s _BitScanReverse to calculate MSB (patch #9636).
 
-2017-09-22  Werner Lemberg  <wl@gnu.org>
+	* include/freetype/internal/ftcalc.h (FT_MSB) [_MSC_VER]: Implement
+	it.
 
-	[otvalid] Macros for 32bit offset support.
+2018-05-10  Alan Coopersmith  <alan.coopersmith@oracle.com>
 
-	* src/otvalid/otvcommn.h (OTV_OPTIONAL_TABLE32,
-	OTV_OPTIONAL_OFFSET32, OTV_SIZE_CHECK32): New macros.
+	Fix DLL compilation on Solaris.
 
-2017-09-21  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	AC_COMPILE_IFELSE only tries to compile a `*.c' to a `*.o'.  The
+	Solaris Studio 12.1 through 12.5 compilers see the
+	`-fvisibility=hidden' flag, but ignore it with a warning of:
 
-	[build] Simplify Visual C++ 2010 project.
+	  cc: Warning: Option -fvisibility=hidden passed to ld,
+	               if ld is invoked, ignored otherwise
 
-	* build/windows/vc2010/freetype.vcxproj: Remove fake singlethreaded
-	configurations and tweak.
+	AC_LINK_IFELSE does the compile and then tries to link the result,
+	at which point the Solaris linker will issue an error:
 
-2017-09-21  Werner Lemberg  <wl@gnu.org>
+	  ld: fatal: option '-fvisibility=hidden' is incompatible with
+	      building a dynamic executable
 
-	[truetype] Integer overflow (#52082).
+	If we don't use AC_LINK_IFELSE to catch the error, then configure
+	will fail further tests which attempt to link, such as those testing
+	dependencies like `libbz2'.
 
-	* src/truetype/ttinterp.c (Ins_MDRP): Avoid FT_ABS.
+	Also, don't try adding `-fvisibility' if we have already added
+	`-xldscope', just use one of them, since Sun Studio 12 and earlier
+	compilers only issue a warning, and don't try passing through to the
+	linker to generate an error, so AC_LINK_IFELSE doesn't catch them.
 
-2017-09-21  Werner Lemberg  <wl@gnu.org>
+	Tested on Solaris 11.4 beta with compiler versions:
 
-	[sfnt] Fix postscript name for default instance of variation fonts.
+	  Sun Studio 8 (Sun C 5.5)
+	  Sun Studio 10 (Sun C 5.7)
+	  Sun Studio 11 (Sun C 5.8)
+	  Sun Studio 12 (Sun C 5.9)
+	  Sun Studio 12.1 (Sun C 5.10)
+	  Oracle Solaris Studio 12.2 (Sun C 5.11)
+	  Oracle Solaris Studio 12.3 (Sun C 5.12)
+	  Oracle Solaris Studio 12.4 (Sun C 5.13)
+	  Oracle Developer Studio 12.5 (Sun C 5.14)
+	  Oracle Developer Studio 12.6 (Sun C 5.15)
+	  gcc 5.5.0
+	  gcc 7.3.0
 
-	Problem reported by Behdad.
+	and verified the libfreetype.so.6 generated by each of those
+	compilers exported the same set of symbols.
 
-	* src/sfnt/sfdriver.c (sfnt_get_ps_name): Test
-	`is_default_instance'.
+	* builds/unix/configure.raw: Implement it.
 
-2017-09-21  Werner Lemberg  <wl@gnu.org>
+2018-05-08  Werner Lemberg  <wl@gnu.org>
 
-	[truetype] Fix `mmvar' array pointers, part 2.
+	[autofit] Avoid potential SEGV if running out of memory.
 
-	The previous commit was incomplete.
+	Problem reported by Shailesh Mistry <shailesh.mistry@hotmail.co.uk>.
 
-	* src/truetype/ttgxvar.c: Properly initialize sub-array offsets for
-	`master' also.
+	* src/autofit/afshaper.c (af_shaper_buf_create,
+	af_shaper_buf_destroy) [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Don't
+	allocate and free a four-byte buffer.  Instead, make those functions
+	no-ops; the calling functions will provide a pointer to a buffer
+	instead.
 
-2017-09-21  Werner Lemberg  <wl@gnu.org>
+	* src/autofit/afcjk.c (af_cjk_metrics_init_widths,
+	af_cjk_metrics_init_blues, af_cjk_metrics_check_digits),
+	src/autofit/aflatin.c (af_latin_metrics_init_widths,
+	af_latin_metrics_init_blues, af_latin_metrics_check_digits)
+	[!FT_CONFIG_OPTION_USE_HARFBUZZ]: Use pointer to local variable for
+	`shaper_buf'.
 
-	[truetype] Fix `mmvar' array pointers.
+2018-05-07  Nikolaus Waxweiler  <madigens@gmail.com>
 
-	Without this change, clang's AddressSanitizer reports many runtime
-	errors due to misaligned addresses.
+	[cmake] Allow using project as subfolder in other project.
 
-	* src/truetype/ttgxvar.c (TT_Get_MM_Var): Use multiples of pointer
-	size for sub-array offsets into `mmvar'.
+	* CMakeLists.txt: Test for CMake build directory being different
+	from source directory.  Provide other parts of the build system
+	access the full include directory.
 
-2017-09-20  Werner Lemberg  <wl@gnu.org>
+2018-05-07  Werner Lemberg  <wl@gnu.org>
 
-	[truetype] Integer overflows.
+	[build] Suppress configure's `nothing to be done' message.
 
-	Changes triggered by
+	This is due to calling the configure script via `make' (within the
+	top-level `configure' wrapper script).  The same can happen for all
+	other secondary make targets that are used to only modify the
+	primary one, e.g., `make setup devel'.
 
-	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3429
+	* builds/dos/detect.mk (emx, turboc, watcom, borlandc, borlandc16),
+	builds/os2/detect (visualage, watcom, borlandc, devel),
+	builds/unix/detect.mk (devel, lcc, unix), builds/windows/detect.mk
+	(visualc, watcom, visualage, lcc, mingw32, bcc32, devel-bcc,
+	devel-gcc): Use no-op recipe.
 
-	* src/truetype/ttinterp.c (Ins_SHPIX, Ins_DELTAP): Use NEG_LONG.
-	(Ins_MIAP): Use SUB_LONG.
+2018-05-04  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
-2017-09-19  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	Support symbol visibility features of Sun / Oracle C compilers.
 
-	[build] Fix DLL builds in Visual C++ project.
+	Reported by Kiyoshi Kanazawa:
+	https://lists.gnu.org/archive/html/freetype-devel/2018-05/msg00008.html
+	Thanks to the suggestions by Alexei and Alan Coopersmith.
 
-	* build/windows/vc2010/freetype.vcxproj: Use DynamicLibrary in Debug
-	and Release configurations.
-	* include/freetype/config/ftconfig.h (FT_EXPORT, FT_EXPORT_DEF)
-	[_DLL]: Use Visual C++ extensions.
+	* builds/unix/configure.raw: Check if "-xldscope=hidden" is
+	accepted, and if so, it is added to CFLAGS.  This is the option
+	making Sun / Oracle C compilers hide the symbols from global
+	scope.
+	* include/freetype/config/ftconfig.h: Use "__global" prefix
+	for FT_EXPORT() macro, if SunPro C is newer than Sun ONE
+	Studio 8 (2003).
+	* builds/unix/ftconfig.in: Ditto.
+	* builds/vms/ftconfig.h: Ditto.
 
-2017-09-19  John Tytgat  <John.Tytgat@esko.com>
+2018-05-02  Nikolaus Waxweiler  <madigens@gmail.com>
 
-	[cff] Fix family name logic of pure CFF fontdata (#52056).
+	Unbreak CMake Windows installation
 
-	1. If `FamilyName' is present in the CFF font, use this for
-	   FT_Face's `family_name'.
-	2. Otherwise, use the face name and chop off any subset prefix.
-	3. If at this point FT_Face's `family_name' is set, use this
-	   together with the full name to determine the style.
-	4. Otherwise, use `CIDFontName' as FT_Face's `family_name'.
-	5. If we don't have a valid style, use "Regular".
+	* CMakeLists.txt: Generate ftconfig.h on non-UNIX.
 
-	Previously, FT_Face's `family_name' entry for pure CFF fontdata
-	nearly always was the fontname itself, instead of the `FamilyName'
-	entry in the CFF font (assuming there is one).
+2018-05-02  Werner Lemberg  <wl@gnu.org>
 
-	* src/cff/cffobjs.c (cff_face_init) [pure_cff]: Implement it.
+	Remove FT_CONFIG_OPTION_PIC and related code.
 
-2017-09-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
+	*/* [FT_CONFIG_OPTION_PIC]: Remove all code guarded by this
+	preprocessor symbol.
 
-	[build] Declutter Visual C++ 2010-2017 project.
+	*/*: Replace `XXX_GET' macros (which could be either a function in
+	PIC mode or an array in non-PIC mode) with `xxx' arrays.
 
-	* build/windows/vc2010/freetype.vcxproj: Use MaxSpeed (/02)
-	optimization for Release configuration throughout the project.
+	* include/freetype/internal/ftpic.h, src/autofit/afpic.c,
+	src/autofit/afpic.h, src/base/basepic.c, src/base/basepic.h,
+	src/base/ftpic.c, src/cff/cffpic.c, src/cff/cffpic.h,
+	src/pshinter/pshpic.c, src/pshinter/pshpic.h, src/psnames/pspic.c,
+	src/psnames/pspic.h, src/raster/rastpic.c, src/raster/rastpic.h,
+	src/sfnt/sfntpic.c, src/sfnt/sfntpic.h, src/smooth/ftspic.c,
+	src/smooth/ftspic.h, src/truetype/ttpic.c, src/truetype/ttpic.h:
+	Removed.
 
 
 ----------------------------------------------------------------------------
 
-Copyright 2017-2018 by
+Copyright (C) 2018-2020 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This file is part of the FreeType project, and may only be used, modified,
diff --git a/ChangeLog.20 b/ChangeLog.20
index 63e3116..9f81914 100644
--- a/ChangeLog.20
+++ b/ChangeLog.20
@@ -1688,7 +1688,7 @@
 
 2001-04-03  Werner Lemberg  <wl@gnu.org>
 
-	* src/*/Jamfile: Slight changes	to make files more cryptic.
+	* src/*/Jamfile: Slight changes to make files more cryptic.
 
 2001-04-03  Werner Lemberg  <wl@gnu.org>
 
@@ -1928,7 +1928,7 @@
 
 	* src/autohint/ahtypes.h (AH_Hinter): Add elements
 	`disable_horz_edges', `disable_vert_edges'.
-	* src/autohint/ahhint.c	(ah_hint_edges_3, ah_hinter_hint_edges): Use
+	* src/autohint/ahhint.c (ah_hint_edges_3, ah_hinter_hint_edges): Use
 	them (and remove static variables with the same names).
 	* src/pcf/pcfutil.c (BitOrderInvert): Add `const'.
 	* docs/glnames.py: Updated to latest pstables.h changes.
@@ -2109,7 +2109,7 @@
 	* include/freetype/internal/t2types.h: This file was merged with
 	cfftypes.h and is no longer necessary.
 
-	* include/freetype/internal/t2errors.h:	Renamed to cfferrs.h.
+	* include/freetype/internal/t2errors.h: Renamed to cfferrs.h.
 
 	* src/cff/cffobjs.c, src/cff/cffobjs.h, src/cff/cffparse.c,
 	src/cff/cffdrivr.c, src/cff/cff.c, src/cff/cffload.c,
@@ -2184,11 +2184,11 @@
 
 2000-12-24  Tom Kacvinsky  <tkacvins@freetype.org>
 
-	* src/cff/t2gload.c (T2_Load_Glyph): Added code	so that the font
+	* src/cff/t2gload.c (T2_Load_Glyph): Added code so that the font
 	transform is applied.
 
 	* src/cff/cffparse.c (cff_parse_font_matrix): Added code so that
-	the font matrix numbers	are scaled by 1/(matrix->yy).  Also, the
+	the font matrix numbers are scaled by 1/(matrix->yy).  Also, the
 	offset vector now contains integer values instead of 16.16 fixed
 	numbers.
 
@@ -2597,7 +2597,7 @@
 
 ----------------------------------------------------------------------------
 
-Copyright 2000-2018 by
+Copyright (C) 2000-2020 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This file is part of the FreeType project, and may only be used, modified,
diff --git a/ChangeLog.21 b/ChangeLog.21
index 1adc817..f36f5b7 100644
--- a/ChangeLog.21
+++ b/ChangeLog.21
@@ -553,7 +553,7 @@
 	(T1_New_Parser): Use it to check font header before allocating
 	anything on the heap.
 
-	* src/type42/t42parse.c	(t42_parser_init): Modify functions to check
+	* src/type42/t42parse.c (t42_parser_init): Modify functions to check
 	the font header before allocating anything on the heap.
 
 	* include/freetype/internal/ftmemory.h (FT_ARRAY_MAX,
@@ -4799,11 +4799,11 @@
 	(chapter_inter, chapter_footer): Add <li> and use special <ul>
 	class.
 	Use double quotes around table widths given in percent.
-	(keyword_prefix, keyword_suffix): Don't change font colour directly
+	(keyword_prefix, keyword_suffix): Don't change font color directly
 	but use a new <span> class.
 	(section_synopsis_header, section_synopsis_footer): Don't change
-	colour.
-	(code_header, code_footer): Don't change font colour directly but
+	color.
+	(code_header, code_footer): Don't change font color directly but
 	use a special <pre> class.
 	(print_html_field): <tr> gets the `valign' attribute, not <table>.
 	(print_html_field_list): Ditto.
@@ -9422,7 +9422,7 @@
 
 ----------------------------------------------------------------------------
 
-Copyright 2002-2018 by
+Copyright (C) 2002-2020 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This file is part of the FreeType project, and may only be used, modified,
diff --git a/ChangeLog.22 b/ChangeLog.22
index 4517c32..86662f6 100644
--- a/ChangeLog.22
+++ b/ChangeLog.22
@@ -2821,7 +2821,7 @@
 
 ----------------------------------------------------------------------------
 
-Copyright 2005-2018 by
+Copyright (C) 2005-2020 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This file is part of the FreeType project, and may only be used, modified,
diff --git a/ChangeLog.23 b/ChangeLog.23
index 85253f1..4c80504 100644
--- a/ChangeLog.23
+++ b/ChangeLog.23
@@ -750,7 +750,7 @@
 2009-07-31  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
 	sfnt: Cast a charcode to 32-bit in cmap format 14 parser.
-	
+
 	* src/sfnt/ttcmap.c (tt_cmap14_char_var_index,
 	tt_cmap14_char_var_isdefault, tt_cmap14_char_variants,
 	tt_cmap14_variant_chars): Correct mismatches from
@@ -1344,24 +1344,24 @@
 	* include/freetype/config/ftstdlib.h: Introduce
 	FT_INT_MIN, to use in signed integer overflow in
 	16-bit and 64-bit platforms.
-	
+
 	* include/freetype/internal/fttrace.h: Add a tracer
 	to ftsynth.c.
-	
+
 	* src/base/ftbitmap.c (FT_Bitmap_Embolden): Check
 	invalid strength causing integer overflow on 16-bit
 	platform.
-	
+
 	* src/base/ftcalc.c (ft_corner_orientation): Change
 	the internal calculation from FT_Int to FT_Long, to
 	avoid an overflow on 16-bit platforms.  The caller of
 	this function should use only the sign of result,
 	so the cast to FT_Int is acceptable.
-	
+
 	* src/base/ftsynth.c: Introduce a tracer for synth module.
 	(FT_GlyphSlot_Embolden): Check invalid strength causing
 	integer overflow on 16-bit platform.
-	
+
 	* src/bdf/bdfdrivr.c (BDF_Face_Init): The glyph index
 	in FT2 API is typed as FT_UInt, although BDF driver
 	can handle unsigned long glyph index internally.  To
@@ -1372,25 +1372,25 @@
 	glyph pitch internally.  To avoid integer overflow on
 	16-bit platform, too large glyph pitch should not be
 	returned.
-	
+
 	* src/pfr/pfrsbit.c (pfr_slot_load_bitmap): The glyph
 	pitch in FT2 is typed as FT_UInt, although PFR font
 	format can include huge bitmap glyph with 24-bit pitch
 	(however, a glyph spends 16.7 pixel, it's not realistic).
 	To avoid integer overflow on 16-bit platform, huge
 	bitmap glyph should be excluded.
-	
+
 	* src/smooth/ftgrays.c (gray_hline): As FT_Span.x is
 	truncated to fit its type (16-bit short), FT_Span.y
 	should be truncated to fit its type (FT_Int).
-	
+
 	* src/cff/cffdrivr.c (cff_get_ros): CFF specification
 	defines the supplement in ROS as a real number.
 	Truncate it to fit public FT2 API.
-	
+
 	* src/cff/cffparse.c (cff_parse_cid_ros): Warn the
 	supplement if it is truncated or rounded in cff_get_ros().
-	
+
 	* src/cff/cfftypes.h: Change the type of internal variable
 	`supplement' from FT_Long to FT_ULong to fit the signedness
 	to the type in public API.
@@ -1653,7 +1653,7 @@
 
 	cff: Fix some data types mismatching with their sources.
 
-	* src/cff/cffgload.c (cff_slot_load): The types of	
+	* src/cff/cffgload.c (cff_slot_load): The types of
 	`top_upm' and `sub_upm' are matched with
 	CFF_FontRecDict->units_per_em.
 
@@ -1811,56 +1811,56 @@
 	gxv_XClassTable_lookupval_validate,
 	gxv_XClassTable_lookupfmt4_transit):
 	Update from GXV_LookupValueDesc to GXV_LookupValueCPtr.
-	
+
 	* src/gxvalid/gxvbsln.c (gxv_bsln_LookupValue_validate,
 	gxv_bsln_LookupFmt4_transit): Ditto.
-	
+
 	* src/gxvalid/gxvjust.c
 	(gxv_just_pcTable_LookupValue_entry_validate,
 	gxv_just_classTable_entry_validate,
 	gxv_just_wdcTable_LookupValue_validate): Ditto.
-	
+
 	* src/gxvalid/gxvkern.c
 	(gxv_kern_subtable_fmt1_entry_validate): Ditto.
-	
+
 	* src/gxvalid/gxvlcar.c (gxv_lcar_LookupValue_validate,
 	gxv_lcar_LookupFmt4_transit): Ditto.
-	
+
 	* src/gxvalid/gxvopbd.c (gxv_opbd_LookupValue_validate,
 	gxv_opbd_LookupFmt4_transit): Ditto.
-	
+
 	* src/gxvalid/gxvprop.c (gxv_prop_LookupValue_validate,
 	gxv_prop_LookupFmt4_transit): Ditto.
-	
+
 	* src/gxvalid/gxvmort4.c
 	(gxv_mort_subtable_type4_lookupval_validate): Ditto.
-	
+
 	* src/gxvalid/gxvmort0.c
 	(gxv_mort_subtable_type0_entry_validate): Update
 	from GXV_StateTable_GlyphOffsetDesc
 	to GXV_StateTable_GlyphOffsetCPtr.
-	
+
 	* src/gxvalid/gxvmort1.c
 	(gxv_mort_subtable_type1_entry_validate): Ditto.
-	
+
 	* src/gxvalid/gxvmort2.c
 	(gxv_mort_subtable_type2_entry_validate): Ditto.
-	
+
 	* src/gxvalid/gxvmort5.c
 	(gxv_mort_subtable_type5_entry_validate): Ditto.
-	
+
 	* src/gxvalid/gxvmorx2.c
 	(gxv_morx_subtable_type2_entry_validate): Ditto.
-	
+
 	* src/gxvalid/gxvmorx5.c
 	(gxv_morx_subtable_type5_entry_validate): Ditto.
-	
+
 	* src/gxvalid/gxvmorx1.c
 	(gxv_morx_subtable_type1_entry_validate): Ditto.
 	(gxv_morx_subtable_type1_LookupValue_validate,
 	gxv_morx_subtable_type1_LookupFmt4_transit):
 	Update from GXV_LookupValueDesc to GXV_LookupValueCPtr.
-	
+
 	* src/gxvalid/gxvmorx0.c
 	(gxv_morx_subtable_type0_entry_validate): Update
 	from GXV_XStateTable_GlyphOffsetDesc
@@ -1976,7 +1976,7 @@
 	Prevent the overflows by a glyph with too many points or contours.
 	The bug is reported by Boris Letocha <b.letocha@gmc.net>.  See
 	https://lists.gnu.org/archive/html/freetype-devel/2009-06/msg00031.html
-	https://lists.gnu.org/archive/html/freetype-devel/2009-07/msg00002.html	
+	https://lists.gnu.org/archive/html/freetype-devel/2009-07/msg00002.html
 
 	* include/freetype/ftimage.h (FT_OUTLINE_CONTOURS_MAX,
 	FT_OUTLINE_POINTS_MAX): New macros to declare the maximum
@@ -6948,7 +6948,7 @@
 
 2006-11-25  David Turner  <david@freetype.org>
 
-	* src/autofit/afhints.c	(af_glyph_hints_dump_points,
+	* src/autofit/afhints.c (af_glyph_hints_dump_points,
 	af_glyph_hints_dump_segments, af_glyph_hints_dumpedges) [!AF_DEBUG]:
 	Add stubs to link the `ftgrid' test program when debugging is
 	disabled in the auto-hinter.
@@ -7932,7 +7932,7 @@
 
 ----------------------------------------------------------------------------
 
-Copyright 2006-2018 by
+Copyright (C) 2006-2020 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This file is part of the FreeType project, and may only be used, modified,
diff --git a/ChangeLog.24 b/ChangeLog.24
index 44abc40..17e98c4 100644
--- a/ChangeLog.24
+++ b/ChangeLog.24
@@ -231,7 +231,7 @@
 
 	* src/base/md5.c, src/base/md5.h: New files, taken from
 
-	  http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
+	  https://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
 
 	* include/freetype/internal/fttrace.h: Add `bitmap'.
 
@@ -774,7 +774,7 @@
 
 	(Font_Class): Rename to...
 	(SPH_Font_Class): This.  Decorate with `const' where appropriate.
-	
+
 	* src/truetype/ttsubpix.h (scale_test_tweak, sph_test_tweak):
 	Decorate arguments with `const' where appropriate.
 
@@ -1271,7 +1271,7 @@
 	* src/autofit/afcjk.c (af_cjk_metrics_init_widths): Use it.
 	(af_cjk_metrics_init, af_cjk_script_class): Updated.
 
-	* src/autofit/afindic.c	(af_indic_metrics_init,
+	* src/autofit/afindic.c (af_indic_metrics_init,
 	af_indic_script_class): Updated.
 
 	* src/autofit/afcjk.h, src/autofit/aflatin.h: Updated.
@@ -6344,7 +6344,7 @@
 
 ----------------------------------------------------------------------------
 
-Copyright 2010-2018 by
+Copyright (C) 2010-2020 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This file is part of the FreeType project, and may only be used, modified,
diff --git a/ChangeLog.25 b/ChangeLog.25
index 59cf2bf..6e04427 100644
--- a/ChangeLog.25
+++ b/ChangeLog.25
@@ -3405,7 +3405,7 @@
 
 	The canonical URL to get updates for this file is
 
-	  http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/popa3d/popa3d/md5/
+	  https://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/popa3d/popa3d/md5/
 
 	as the author told me in private communication.
 
@@ -4837,7 +4837,7 @@
 
 	Apply fixes for cppcheck nitpicks.
 
-	  http://cppcheck.sourceforge.net/
+	  https://cppcheck.sourceforge.net/
 
 	The call was (from the top-level of the FreeType tree):
 
@@ -5145,7 +5145,7 @@
 
 ----------------------------------------------------------------------------
 
-Copyright 2013-2018 by
+Copyright (C) 2013-2020 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This file is part of the FreeType project, and may only be used, modified,
diff --git a/ChangeLog.26 b/ChangeLog.26
index ea89e91..a4fc060 100644
--- a/ChangeLog.26
+++ b/ChangeLog.26
@@ -2393,7 +2393,7 @@
 
 	* src/autofit/afcjk.c (af_cjk_get_standard_width): New function.
 	(af_cjk_writing_system_class): Updated.
-	* src/autofit/afdummy.c	(af_dummy_writing_system_class): Updated.
+	* src/autofit/afdummy.c (af_dummy_writing_system_class): Updated.
 	* src/autofit/afindic.c (af_cjk_get_standard_width): New function.
 	(af_indic_writing_system_class): Updated.
 	* src/autofit/aflatin.c (af_latin_get_standard_width): New function.
@@ -5695,7 +5695,7 @@
 
 ----------------------------------------------------------------------------
 
-Copyright 2015-2018 by
+Copyright (C) 2015-2020 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This file is part of the FreeType project, and may only be used, modified,
diff --git a/ChangeLog.27 b/ChangeLog.27
index 0e82b2f..c59ed7b 100644
--- a/ChangeLog.27
+++ b/ChangeLog.27
@@ -2090,7 +2090,7 @@
 
 ----------------------------------------------------------------------------
 
-Copyright 2016-2018 by
+Copyright (C) 2016-2020 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This file is part of the FreeType project, and may only be used, modified,
diff --git a/ChangeLog.28 b/ChangeLog.28
index ca1ff38..b17a751 100644
--- a/ChangeLog.28
+++ b/ChangeLog.28
@@ -2489,8 +2489,8 @@
 
 	Based on ideas taken from
 
-	  http://pkgs.fedoraproject.org/cgit/rpms/freetype.git/tree/freetype-multilib.patch
-	  http://pkgs.fedoraproject.org/cgit/rpms/freetype.git/tree/freetype-2.5.3-freetype-config-prefix.patch
+	  https://pkgs.fedoraproject.org/cgit/rpms/freetype.git/tree/freetype-multilib.patch
+	  https://pkgs.fedoraproject.org/cgit/rpms/freetype.git/tree/freetype-2.5.3-freetype-config-prefix.patch
 
 	* builds/unix/freetype-config.in: Rewritten.  Use `pkg-config' to
 	set output variables if program is available.
@@ -3120,7 +3120,7 @@
 
 ----------------------------------------------------------------------------
 
-Copyright 2016-2018 by
+Copyright (C) 2016-2020 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This file is part of the FreeType project, and may only be used, modified,
diff --git a/ChangeLog.29 b/ChangeLog.29
new file mode 100644
index 0000000..251c056
--- /dev/null
+++ b/ChangeLog.29
@@ -0,0 +1,2352 @@
+2018-05-01  Werner Lemberg  <wl@gnu.org>
+
+	* Version 2.9.1 released.
+	=========================
+
+
+	Tag sources with `VER-2-9-1'.
+
+	* docs/VERSION.TXT: Add entry for version 2.9.1.
+	* docs/CHANGES: Updated.
+
+	* README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+	src/base/ftver.rc, 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.9/2.9.1/, s/29/291/.
+
+	* include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+
+	* builds/unix/configure.raw (version_info): Set to 22:1:16.
+	* CMakeLists.txt (VERSION_PATCH): Set to 1.
+
+	* include/freetype/ftgasp.h: Use FT_BEGIN_HEADER and FT_END_HEADER.
+
+2018-04-26  Werner Lemberg  <wl@gnu.org>
+
+	Another fix for handling invalid format 2 cmaps.
+
+	Sigh.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8003
+
+	* src/sfnt/ttcmap.c (tt_cmap2_char_next): Adjust condition to avoid
+	an endless loop.
+
+2018-04-24  Ben Wagner  <bungeman@google.com>
+
+	[base] Avoid undefined behaviour in lcd filtering code (#53727).
+
+	* src/base/ftlcdfil.c (ft_lcd_filter_fir, _ft_lcd_filter_legacy):
+	Ensure `height > 0'.
+
+2018-04-22  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftoutln.c (FT_Outline_Decompose): Improve error tracing.
+
+2018-04-22  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[base] Fix bitmap emboldening.
+
+	Bug introduced after release 2.8.
+
+	* src/base/ftbitmap.c (ft_bitmap_assure_buffer): We use
+	`FT_QALLOC_MULT', which doesn't zero out the buffer.  Adjust the
+	bitmap copying code to take care of this fact.
+
+2018-04-22  Werner Lemberg  <wl@gnu.org>
+
+	Another fix for handling invalid format 2 cmaps.
+
+	The previous commit was incomplete.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7928
+
+	* src/sfnt/ttcmap.c (tt_cmap2_char_next): Adjust condition to avoid
+	an endless loop.
+
+2018-04-19  Werner Lemberg  <wl@gnu.org
+
+	[autofit] Add support for Georgian Mtavruli characters.
+
+	This will be part of the forthcoming Unicode 11.0.
+
+	* src/autofit/afblue.dat: Add blue zone data for Mtavruli.
+	* src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+	* src/autofit/afscript.h: Add Mtavruli standard character.
+
+2018-04-18  Werner Lemberg  <wl@gnu.org>
+
+	Fix handling of invalid format 2 cmaps.
+
+	The problem was introduced after the last release.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7828
+
+	* src/sfnt/ttcmap.c (tt_cmap2_char_next): Avoid endless loop.
+
+2018-04-17  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Integer overflow issues.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7739
+
+	* src/truetype/ttinterp.c (Ins_CEILING): Use FT_PIX_CEIL_LONG.
+
+2018-04-16  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Integer overflow issues.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7718
+
+	* src/truetype/ttinterp.c (Ins_MIRP): Use ADD_LONG.
+
+2018-04-15  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[build] Use `info' function of make 3.81.
+
+	* configure, docs/INSTALL, docs/INSTALL.CROSS, docs/INSTALL.GNU,
+	docs/INSTALL.UNIX, docs/MAKEPP: Bump make version requirements.
+
+	* builds/detect.mk (std_setup): Replace `echo' with `info'.
+	(dos_setup): Removed.
+	* builds/unix/install.mk, builds/modules.mk, builds/dos/detect.mk,
+	builds/windows/detect.mk, builds/os2/detect.mk: Updated.
+	* builds/newline: No longer needed.
+
+2018-04-15  Werner Lemberg  <wl@gnu.org>
+
+	[truetype]: Limit `SLOOP' bytecode argument to 16 bits.
+
+	This fixes
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7707
+
+	* src/truetype/ttinterp.c (Ins_SLOOP): Do it.
+
+2018-04-14  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Integer overflow issues.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7652
+
+	* src/truetype/ttinterp.c (Ins_MDAP): Use SUB_LONG.
+
+2018-04-14  Werner Lemberg  <wl@gnu.org>
+
+	[autofit] Update to Unicode 11.0.0.
+
+	But no support new scripts (volunteers welcomed).
+
+	* src/autofit/afranges.c (af_arab_nonbase_uniranges,
+	af_beng_nonbase_uniranges, af_cakm_nonbase_uniranges,
+	af_deva_nonbase_uniranges, af_geor_uniranges,
+	af_gujr_nonbase_uniranges, af_mlym_nonbase_uniranges,
+	af_nkoo_nonbase_uniranges, af_telu_nonbase_uniranges,
+	af_hani_uniranges): Add new data.
+
+2018-04-10  Nikolaus Waxweiler  <madigens@gmail.com>
+
+	* CMakeLists.txt, builds/cmake/FindHarfBuzz.cmake: Extensive
+	modernization measures.
+
+	This brings up the minimum required CMake version to 2.8.12.
+
+	The installation paths follow the GNU defaults now, e.g. installing on a
+	64 bit host will place binaries into the lib64/ folder on e.g. Fedora.
+
+	Symbols are hidden by default (e.g. `-fvisibility=hidden' on GCC).
+
+	CMake will no longer look for a C++ compiler.
+
+	Library and .so version now match the Autotools build.
+
+	Comments in the build file and informational messages now use platform
+	agnostic example commands.
+
+	ftoption.h and ftconfig.h are written directly without a redundant `-new'
+	copy.
+
+	External dependencies are expressed as option()s and will turn up as such
+	in cmake-gui.
+
+	Internal: Properties such as dependencies and include directories are now
+	privately set on the freetype library instead of globally.
+
+	The CPack definitions have been cleaned up, the `make dist' has been
+	removed. Source packages generated with CPack don't contain Autotools
+	files and aren't used by the maintainers anyway.
+
+	On Windows, src/base/ftver.rc is compiled to decorate the library with
+	version and copyright information.
+
+	A pkg-config file is now generated and installed.
+
+2018-04-09  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Integer overflow issues.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7453
+
+	* src/truetype/ttinterp.c (Round_Super, Round_Super_45): Use
+	ADD_LONG and SUB_LONG.
+
+2018-04-06  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[windows, wince] Clean up legacy project files.
+
+	* builds/wince/vc2005-ce/freetype.vcproj,
+	builds/wince/vc2008-ce/freetype.vcproj,
+	builds/windows/vc2005/freetype.vcproj,
+	builds/windows/vc2008/freetype.vcproj,
+	builds/windows/visualce/freetype.vcproj,
+	builds/windows/visualce/freetype.dsp,
+	builds/windows/visualc/freetype.vcproj,
+	builds/windows/visualc/freetype.dsp: Remove per-file compile flags.
+
+2018-04-04  Werner Lemberg  <wl@gnu.org>
+
+	[cff, type1] Sanitize `BlueFuzz' and `BlueShift'.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7371
+
+	* src/cff/cffload.c (cff_load_private_dict): Sanitize
+	`priv->blue_shift' and `priv->blue_fuzz' to avoid overflows later
+	on.
+
+	* src/type1/t1load.c (T1_Open_Face): Ditto.
+
+2018-04-04  Ben Wagner  <bungeman@google.com>
+
+	* src/truetype/ttobjs.c (trick_names): Add 3 tricky fonts (#53554),
+	`DFHei-Md-HK-BF', `DFKaiShu-Md-HK-BF' and `DFMing-Bd-HK-BF'.
+	(tt_check_trickyness_sfnt_ids): Add checksums for 3 tricky fonts
+	in above.
+
+2018-04-01  Werner Lemberg  <wl@gnu.org>
+
+	* builds/toplevel.mk (work): Use $(SEP).
+
+	This fixes the `make refdoc' using Cygwin: $(CAT) is `type' on this
+	platform, and this program only understands backslashes in paths.
+
+	Reported by Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>.
+
+2018-03-30  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Fix memory leak (only if tracing is on).
+
+	* src/truetype/ttgxvar.c (TT_Get_MM_Var) [FT_DEBUG_LEVEL_TRACE}: Fix
+	it.
+
+2018-03-23  Ben Wagner  <bungeman@google.com>
+
+	[sfnt] Correctly handle missing bitmaps in sbix format (#53404).
+
+	* src/sfnt/ttfsbit.c (tt_face_load_sbix_image): Fix return value.
+
+2018-03-23  Ben Wagner  <bungeman@google.com>
+
+	[truetype] Fix advance of empty glyphs in bitmap fonts (#53393).
+
+	* src/truetype/ttgload.c (TT_Load_Glyph): Apply scaling to metrics
+	for empty bitmaps.
+
+2018-03-22  Werner Lemberg  <wl@gnu.org>
+
+	Remove `ftlcdfil.c' and `ftfntfmt.c' from build files (#53415).
+
+	builds/amiga/makefile, builds/amiga/makefile.os4,
+	builds/amiga/smakefile, builds/mac/FreeType.m68k_cfm.make.txt,
+	builds/mac/FreeType.m68k_far.make.txt,
+	builds/mac/FreeType.ppc_carbon.make.txt,
+	builds/mac/FreeType.ppc_classic.make.txt,
+	builds/symbian/freetype.mmp, builds/wince/vc2005-ce/freetype.vcproj,
+	builds/wince/vc2008-ce/freetype.vcproj,
+	builds/windows/vc2005/freetype.vcproj,
+	builds/windows/vc2008/freetype.vcproj,
+	builds/windows/vc2010/freetype.vcxproj,
+	builds/windows/vc2010/freetype.vcxproj.filters,
+	builds/windows/visualc/freetype.dsp,
+	builds/windows/visualc/freetype.vcproj,
+	builds/windows/visualce/freetype.dsp,
+	builds/windows/visualce/freetype.vcproj, vms_make.com: Do it.
+
+2018-03-13  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/ttcmap.c (tt_cmap2_validate): Fix potential numeric
+	overflow.
+
+2018-03-13  Werner Lemberg  <wl@gnu.org>
+
+	Fix cmap format 2 handling (#53320).
+
+	The patch introduced for #52646 was not correct.
+
+	* src/sfnt/ttcmap.c (tt_cmap2_char_next): Adjust condition.
+
+2018-03-10  Nikolaus Waxweiler  <madigens@gmail.com>
+
+	* CMakeLists.txt (BASE_SRCS): Update to changes from 2018-03-05.
+
+2018-03-09  Chun-wei Fan  <fanc999@yahoo.com.tw>
+
+	* CMakeLists.txt [win32]: Allow MSVC DLL builds (#53287).
+
+	Do not limit DLL builds to MinGW, since we already have
+	`__declspec(dllexport)' directives in `ftconfig.h'.
+	Also suppress more warnings for POSIX functions.
+
+2018-03-08  Hugh McMaster  <hugh.mcmaster@outlook.com>
+
+	Make installation of `freetype-config' optional (#53093).
+
+	* builds/unix/configure.raw: Add option `--enable-freetype-config'
+	and set `INSTALL_FT2_CONFIG'.
+	* builds/unix/unix-def.in (INSTALL_FT2_CONFIG): Define.
+	* builds/unix/install.mk (install): Handle it.
+
+2018-03-05  Werner Lemberg  <wl@gnu.org>
+
+	Make `ftlcdfil.c' part of the `base' module.
+
+	`ftobjs.c' needs `ft_lcd_padding'.
+
+	Problem reported by duhuanpeng <548708880@qq.com>.
+
+	* modules.cfg (BASE_EXTENSIONS): Don't include `ftlcdfil.c'.
+
+	* src/base/ftbase.c: Include `ftlcdfil.c'.
+	* src/base/rules.mk (BASE_SRC): Add `ftlcdfil.c'.
+	* src/base/Jamfile (_sources): Adjusted.
+
+	* docs/INSTALL.ANY: Updated.
+
+2018-03-05  Werner Lemberg  <wl@gnu.org>
+
+	Make `ftfntfmt.c' part of the `base' module.
+
+	`ftobjs.c' needs `FT_Get_Font_Format'.
+
+	Problem reported by duhuanpeng <548708880@qq.com>.
+
+	* modules.cfg (BASE_EXTENSIONS): Don't include `ftfntfmt.c'.
+
+	* src/base/ftbase.c: Include `ftfntfmt.c'.
+	* src/base/rules.mk (BASE_SRC): Add `ftfntfmt.c'.
+	* src/base/Jamfile (_sources): Adjusted.
+
+	* docs/INSTALL.ANY: Updated.
+
+2018-03-01  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttinterp.c (TT_RunIns): Fix tracing arguments.
+
+2018-02-23  Werner Lemberg  <wl@gnu.org>
+
+	* builds/unix/configure.raw: Need HarfBuzz 1.3.0 or newer.
+
+	Problem reported by Alan Coopersmith <alan.coopersmith@oracle.com>.
+
+2018-02-17  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt] Prefer `CBDT'/`CBLC' over `glyf' table (#53154).
+
+2018-02-06  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Integer overflow issues.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6027
+
+	* src/truetype/ttinterp.c (Ins_MSIRP, Ins_MIAP, Ins_MIRP): Use
+	SUB_LONG; avoid FT_ABS.
+
+2018-02-04  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[unix] Use -fvisibility=hidden.
+
+	It is now widely recommended that ELF shared libraries hide symbols
+	except those with explicit __attribute__((visibility("default"))).
+	This is supported by all major compilers and should rather be an
+	option in libtool.
+
+	* builds/unix/configure.raw: Add -fvisibility=hidden to CFLAGS.
+	* builds/unix/ftconfig.in, builds/vms/ftconfig.h,
+	include/freetype/config/ftconfig.h (FT_EXPORT): Use visibility
+	attribute.
+
+2018-01-27  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Better protection against invalid VF data.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5739
+
+	Bug introduced in commit 08cd62deedefe217f2ea50e392923ce8b5bc7ac7.
+
+	* src/truetype/ttgxvar.c (TT_Set_Var_Design): Always initialize
+	`normalizedcoords'.
+
+2018-01-27  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttinterp.c (Ins_GETVARIATION): Avoid NULL reference.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5736
+
+2018-01-27  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgxvar.c (tt_set_mm_blend): Minor.
+
+2018-01-27  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Better trace VF instances.
+
+	* src/truetype/ttgxvar.c (ft_var_to_normalized): Don't emit number
+	of coordinates.
+	(TT_Get_MM_Var): Trace instance indices names.
+	(TT_Set_Var_Design): Updated.
+
+2018-01-27  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Beautify tracing of VF axis records.
+
+	* src/truetype/ttgxvar.c (TT_Get_MM_Var): Show axis records in a
+	table-like manner.
+
+2018-01-26  Ben Wagner  <bungeman@google.com>
+
+	[truetype] Fix multiple calls of `FT_Get_MM_Var' (#52955).
+
+	* src/truetype/ttgxvar.c (TT_Get_MM_Var): Set
+	`face->blend->num_axis' in case we have to initialize the
+	`face->blend'.
+
+2018-01-23  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[apinames] Anonymous version map for GNU linker.
+
+	* src/tools/apinames.c (PROGRAM_VERSION): Set to 0.3.
+	(OutputFormat): Add `OUTPUT_GNU_VERMAP'.
+	(names_dump): Handle it.
+	(usage): Updated.
+	(main): Handle new command line flag `-wL'.
+
+2018-01-21  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[unix] Call libtool to clean up.
+
+	* builds/unix/install.mk (clean_project_unix, distclean_project_unix):
+	Use libtool.
+	* builds/freetype.mk: Minor.
+
+2018-01-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/base/ftver.rc: Fix mingw-w64 compilation.
+
+2018-01-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[build] Enable VERSIONINFO resource for Cygwin/MinGW.
+
+	* builds/unix/configure.raw: Check for resource compiler.
+	* builds/unix/unix-cc.in: Conditionally set up resource compiler.
+	* builds/freetype.mk: Add conditional rule for `ftver.rc'.
+	* src/base/ftver.rc: Copyright notice and year update.
+
+2018-01-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[build] Move VERSIONINFO resource.
+
+	* builds/windows/vc2010/freetype.vcxproj: Updated.
+	* builds/windows/ftver.rc: Move file from here...
+	* src/base/ftver.rc: ... to here.
+
+2018-01-12  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[build] Expand dllexport/dllimport to Cygwin/MinGW.
+
+	* include/freetype/config/ftconfig.h: Respect DLL_EXPORT,
+	s/_MSC_VER/_WIN32/.
+	* builds/unix/ftconfig.in: Replicate here.
+	* builds/vms/ftconfig.h: Replicate here.
+
+2018-01-12  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[build] Improve and document MSVC build.
+
+	* include/freetype/config/ftconfig.h: Guard dllexport/dllimport
+	attributes with _DLL and FT2_DLLIMPORT.
+	* builds/windows/vc2010/index.html: Update documentation.
+
+2018-01-10  Steve Robinson  <ssrobins@gmail.com>
+
+	* CMakeLists.txt [win32]: Suppress warnings for POSIX functions.
+
+2018-01-10  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Correctly handle Flex features (#52846).
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdVMOVETO,
+	cf2_cmdHMOVETO>: Do not move if doing Flex.
+
+2018-01-09  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* builds/windows/vc2010/freetype.sln: Synchronize with the project.
+
+2018-01-08  Werner Lemberg  <wl@gnu.org>
+
+	* Version 2.9 released.
+	=======================
+
+
+	Tag sources with `VER-2-9'.
+
+	* docs/VERSION.TXT: Add entry for version 2.9.
+
+	* 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/windows/ftver.rc,
+	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.8.1/2.9/, s/281/29/.
+
+	* include/freetype/freetype.h (FREETYPE_MINOR): Set to 9.
+	(FREETYPE_PATCH): Set to 0.
+
+	* builds/unix/configure.raw (version_info): Set to 22:0:16.
+	* CMakeLists.txt (VERSION_PATCH): Set to 0.
+
+2018-01-07  Werner Lemberg  <wl@gnu.org>
+
+	Add check for librt, needed for `ftbench' (#52824).
+
+	* builds/unix/configure.raw (LIB_CLOCK_GETTIME): Define; this will
+	hold `-lrt' if necessary.
+
+	* builds/unix/unix-cc.in (LIB_CLOCK_GETTIME): New variable.
+
+2018-01-07  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Fix Type 1 glyphs with too many stem hints.
+
+	According to the CFF specification, charstrings can have up to 96 stem
+	hints. Due to hint replacement routines in Type 1 charstrings, some
+	glyphs are rejected by the Adobe engine, which implements the above
+	limit. This fix turns off hinting for such glyphs.
+
+	* src/psaux/pshints.c (cf2_hintmap_build): Reset the error from calling
+	`cf2_hintmask_setAll' on a problematic Type 1 charstring and turn off
+	hinting.
+
+2018-01-06  Werner Lemberg  <wl@gnu.org>
+
+	Add `FT_Done_MM_Var'.
+
+	This is necessary in case the application's memory routines differ
+	from FreeType.  A typical example is a Python application on Windows
+	that calls FreeType compiled as a DLL via the `ctypes' interface.
+
+	* include/freetype/ftmm.h, src/base/ftmm.c (FT_Done_MM_Var): Declare
+	and define.
+
+	* docs/CHANGES: Updated.
+
+2018-01-03  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Round offsets of glyph components only if hinting is on.
+
+	* src/truetype/ttgload.c (TT_Process_Composite_Component): Implement
+	it.
+
+2018-01-03  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgxvar.c (ft_var_to_design): Remove dead code.
+
+	This is a better fix than the previous commit, which is now
+	reverted.
+
+2018-01-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	Move internal LCD-related declarations.
+
+	* include/freetype/ftlcdfil.h (ft_lcd_padding, ft_lcd_filter_fir):
+	Move from here...
+	* include/freetype/internal/ftobjs.h: ... to here.
+
+2018-01-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* include/freetype/config/ftconfig.h (FT_EXPORT, FT_EXPORT_DEF)
+	[_MSC_VER]: Limit Visual C++ attributes.
+
+2018-01-03  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Make blend/design coordinate round-tripping work.
+
+	Behdad reported that setting blend coordinates, then getting design
+	coordinates did incorrectly return the default instance's
+	coordinates.
+
+	* src/truetype/ttgxvar.c (tt_set_mm_blend): Fix it.
+
+2017-12-31  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/ttcmap.c (tt_cmap2_char_next): Fix endless loop.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4838
+
+2017-12-31  Werner Lemberg  <wl@gnu.org>
+
+	Synchronize other Windows project files.
+
+	* builds/windows/*: Add missing files.
+
+2017-12-31  Werner Lemberg  <wl@gnu.org>
+
+	Update Visual C 2010 project files.
+
+	Problem reported by Hin-Tak.
+
+	* builds/windows/vc2010/freetype.vcxproj: Add files `ftbdf.c' and
+	`ftcid.c'.
+	Sort entries.
+	* builds/windows/vc2010/freetype.vcxproj.filter: Ditto.
+	Fix members of `FT_MODULE' group.
+
+2017-12-30  Werner Lemberg  <wl@gnu.org>
+
+	* builds/vms/ftconfig.h: Synchronize with unix `ftconfig.in' file.
+
+2017-12-28  Werner Lemberg  <wl@gnu.org>
+
+	* builds/unix/ftconfig.in: Synchronize with main `ftconfig.h' file.
+
+	Reported by Nikolaus.
+
+2017-12-27  Werner Lemberg  <wl@gnu.org>
+
+	Fix compiler warnings.
+
+	* src/base/ftbitmap.c (ft_bitmap_assure_buffer): Make `pitch' and
+	`new_pitch' unsigned.
+
+	* src/base/ftpsprop.c: Include FT_INTERNAL_POSTSCRIPT_PROPS_H.
+
+2017-12-27  Werner Lemberg  <wl@gnu.org>
+
+	Fixes for `make multi'.
+
+	* include/freetype/internal/ftpsprop.h: Use `FT_BASE_CALLBACK'.
+	(ps_property_get): Harmonize declaration with corresponding
+	function typedef.
+
+	* include/freety[e/internal/fttrace.h: Add `trace_psprops'.
+
+	* src/base/ftpsprop.c: Include necessary header files.
+	(FT_COMPONENT): Define.
+	(ps_property_set): Tag with `FT_BASE_CALLBACK_DEF'.
+	(ps_property_get): Tag with `FT_BASE_CALLBACK_DEF'.
+	Harmonize declaration with corresponding function typedef.
+
+2017-12-27  Werner Lemberg  <wl@gnu.org>
+
+	Provide support for intra-module callback functions.
+
+	This is needed especially for `make multi' with C++.
+
+	* include/freetype/config/ftconfig.h (FT_BASE_CALLBACK,
+	FT_BASE_CALLBACK_DEF): New macros.
+
+2017-12-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	Move PostScript drivers' property handlers to `base'.
+
+	This reduces the amount of duplicated code across PostScript
+	drivers.
+
+	* src/cff/cffdrivr.c, src/cid/cidriver.c, src/type1/t1driver.c
+	({cff,cid,t1}_property_{get,set}): Moved to...
+	* include/freetype/internal/ftpsprop.h: ...this new file.
+	(ps_property_{get,set}): New functions to replace moved ones.
+
+	* src/base/ftpsprop.c: New file that implements above functions.
+
+	* include/freetype/internal/internal.h
+	(FT_INTERNAL_POSTSCRIPT_PROPS_H): New macro.
+
+	* src/cff/cffdrivr.c, src/cid/cidriver.c, src/type1/t1driver.c:
+	Updated.
+
+	* src/base/Jamfile, src/base/rules.mk (BASE_SRC), src/base/ftbase.c:
+	Updated.
+
+2017-12-20  Werner Lemberg  <wl@gnu.org>
+
+	Speed up FT_Set_Var_{Design,Blend}_Coordinates if curr == new.
+
+	We exit early if the current design or blend coordinates are
+	identical to the new ones.
+
+	* src/truetype/ttgxvar.c (tt_set_mm_blend, TT_Set_Var_Design):
+	Implement it, returning internal error code -1 if there will be no
+	variation change.
+
+	* src/type1/t1load.c (t1_set_mm_blend): Ditto.
+
+	* src/base/ftmm.c (FT_Set_Var_Design_Coordinates,
+	FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates): Updated.
+
+2017-12-18  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt] Fix charmap type 2 iterator (#52646).
+
+	The subsetted demo font of the report that exhibits the bug has a
+	very unusual type 2 cmap for Unicode(!): It contains only two
+	sub-headers, one for one-byte characters (covering the range 0x20 to
+	0xFA), and a second one for higher byte 0x01 (just for character
+	code U+0131).
+
+	Before this commit, the iterator wasn't able to correctly handle a
+	sub-header for higher byte 0x01.
+
+	* src/sfnt/ttcmap.c (tt_cmap2_char_next): Fix character increment
+	for outer loop.
+
+2017-12-18  Matthias Clasen  <matthias.clasen@gmail.com>
+
+	[truetype] Fix clamping, minor tracing code beautification.
+
+	* src/truetype/ttgxvar.c (ft_var_to_normalized): Trace number of
+	design coordinates.
+	Use clamped value.
+
+2017-12-18  Werner Lemberg  <wl@gnu.org>
+
+	* src/*/*: Only use `ft_' and `FT_' variants of stdc library stuff.
+
+2017-12-18  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgxvar.c (tt_face_vary_cvt): Add size guard (#52688).
+
+2017-12-18  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Fix previous commit.
+
+	* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Correctly handle
+	unhinted phantom points, which must be properly scaled.
+
+2017-12-18  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Don't apply HVAR and VVAR deltas twice (#52683).
+
+	* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Always adjust
+	`pp1' to `pp4', except if we have an HVAR and/or VVAR table.
+
+	* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Handle
+	alternative code branch identically w.r.t. presence of an HVAR
+	and/or VVAR table.
+
+2017-12-17  Jonathan Kew  <jfkthame@gmail.com>
+
+	[truetype] Correctly handle variation font phantom points (#52683).
+
+	* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix phantom
+	point indices.
+
+2017-12-17  Jonathan Kew  <jfkthame@gmail.com>
+
+	Fix incorrect advance width scaling (#52683).
+
+	* src/base/ftadvance.c (FT_Get_Advances): Always respect the
+	FT_LOAD_NO_SCALE flag if present.
+
+2017-12-16  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* builds/windows/vc2010/freetype.vcxproj: AfterBuild copy.
+	* objs/.gitignore: Ignore almost everything.
+
+2017-12-11  Werner Lemberg  <wl@gnu.org>
+
+	Fix compiler warning (#52640).
+
+	* src/base/ftbitmap.c (ft_bitmap_assure_buffer): Remove unused
+	variable.
+
+2017-12-08  Azzuro  <azzuro@team-mediaportal.com>
+
+	* builds/windows/vc2010/freetype.vcxproj: Adjust output directory.
+
+	This allows builds with different configurations in parallel.
+
+2017-12-08  Werner Lemberg  <wl@gnu.org>
+
+	Fix `make setup dos', second try (#52622).
+
+	* builds/detect.mk (dos_setup): Don't use literal `>' character at
+	all.  Mixing the different escaping rules from make, dos, and
+	windows is too fragile.
+
+2017-12-08  Werner Lemberg  <wl@gnu.org>
+
+	[docmaker] Fix code section parsing.
+
+	Stuff like
+
+	  {
+	    <bla>
+	  }
+
+	confused the parser, which incorrectly treated `<bla>' as a markup
+	tag.
+
+	* src/tools/docmaker/content.py (ContentProcessor::process_content):
+	Apply `re_markup_tags' only outside of code sections.
+
+2017-12-08  Werner Lemberg  <wl@gnu.org>
+
+	New `ftdriver.h' file, covering all driver modules.
+
+	This reduces redundancy and increases synergy; it also reduces the
+	number of header files.
+
+	* include/freetype/config/ftheader.h (FT_DRIVER_H): New macro.
+	(FT_AUTOHINTER_H, FT_CFF_DRIVER_H, FT_TRUETYPE_DRIVER_H,
+	FT_PCF_DRIVER_H, FT_TYPE1_DRIVER_H): Make them aliases to
+	FT_DRIVER_H.
+
+	* include/freetype/ftautoh.h, include/freetype/ftcffdrv.h,
+	include/freetype/ftpcfdrv.h, include/freetype/ftt1drv.h,
+	include/freetype/ftttdrv.h: Replaced with...
+	* include/freetype/ftdriver.h: ...this new file.
+	(FT_CFF_HINTING_ADOBE, FT_T1_HINTING_ADOBE): Renamed to...
+	(FT_HINTING_ADOBE): ... this new macro.
+	(FT_CFF_HINTING_FREETYPE, FT_T1_HINTING_FREETYPE): Renamed to...
+	(FT_HINTING_FREETYPE): ... this new macro.
+
+	* src/*/*: Updated accordingly.
+
+2017-12-08  Werner Lemberg  <wl@gnu.org>
+
+	Move `ftdriver.h' to `ftdrv.h'.
+
+	* include/freetype/internal/ftdriver.h: Renamed to...
+	* include/freetype/internal/ftdrv.h: ... this name.
+
+	* include/freetype/internal/internal.h (FT_INTERNAL_DRIVER_H):
+	Updated.
+
+2017-12-08  Werner Lemberg  <wl@gnu.org>
+
+	Fix access to uninitalized memory (#52613).
+
+	Also reported as
+
+	  https://bugs.chromium.org/p/chromium/issues/detail?id=791317
+
+	* src/base/ftbitmap.c (ft_bitmap_assure_buffer): If increasing the
+	bitmap size needs a larger bitmap buffer, assure that the new memory
+	areas are initialized also.
+
+2017-12-08  Werner Lemberg  <wl@gnu.org>
+
+	Fix `make setup dos' (#52622).
+
+	* builds/detect.mk (dos_setup): Properly escape literal `>'
+	character.
+
+2017-12-07  Werner Lemberg  <wl@gnu.org>
+
+	Fix C++ compilation.
+
+	* src/psaux/psauxmod.h: Use FT_CALLBACK_TABLE macro where necessary.
+
+	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Fix warning.
+
+2017-12-07  Werner Lemberg  <wl@gnu.org>
+
+	Fix `make multi'.
+
+	* include/freetype/internal/fttrace.h: Remove unused tracing macros.
+	s/pshalgo2/pshalgo/.
+	Add `trace_cffdecode'.
+	* src/pshinter/pshalgo.c (FT_COMPONENT): Updated.
+
+	* src/cff/cffload.c: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
+	* src/cff/cffobjs.c: Include FT_SERVICE_METRICS_VARIATIONS_H and
+	FT_SERVICE_CFF_TABLE_LOAD_H.
+
+	* src/cid/cidriver.c: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
+
+	* src/psaux/cffdecode.c: Include FT_FREETYPE_H and
+	FT_INTERNAL_DEBUG_H.
+	(FT_COMPONENT): Define.
+	* src/psaux/cffdecode.h: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
+	* src/psaux/psauxmod.h: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
+	Declare `cff_builder_funcs' and `ps_builder_funcs'.
+	* src/psaux/psft.c: Include `psobjs.h' and `cffdecode.h'.
+	* src/psaux/psobjs.c : Include `psauxmod.h'.
+
+2017-12-07  Werner Lemberg  <wl@gnu.org>
+
+	* include/freetype/config/ftheader.h: Some clean-up.
+
+	This commit removes documentation of deprecated macros and does some
+	minor streamlining.
+
+2017-12-06  Werner Lemberg  <wl@gnu.org>
+
+	* builds/symbian/bld.inf: Updated.
+
+2017-12-06  Werner Lemberg  <wl@gnu.org>
+
+	New header file `ftparams.h' that collects all parameter tags.
+
+	* include/freetype/config/ftheader.h (FT_PARAMETER_TAGS_H): New
+	macro.
+	(FT_TRUETYPE_UNPATENTED_H, FT_UNPATENTED_HINTING_H): Define it to
+	`ftparams.h'.
+
+	* include/freetype/ftautoh.h, include/freetype/ftcffdrv.h,
+	include/freetype/ftincrem.h, include/freetype/ftlcdfil.h,
+	include/freetype/ftsnames.h, include/freetype/ftt1drv.h: Include
+	FT_PARAMETER_TAGS_H.
+	Move FT_PARAM_TAG_XXX definitions to...
+	* include/freetype/ftparams.h: ...this new file.
+
+	* include/freetype/ttunpat.h: Remove.  No longer needed.
+
+2017-12-05  Werner Lemberg  <wl@gnu.org>
+
+	Improve tracing messages by using singular and plural forms.
+
+	* src/*/*.c: Implement it.
+
+2017-12-04  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Allow shared points in `cvar' table (#52532).
+
+	* src/truetype/ttgxvar.c (tt_face_vary_cvt): Implement it by copying
+	and adjusting the corresponding code from
+	`TT_Vary_Apply_Glyph_Deltas'.
+
+2017-11-28  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Improving tracing of composite glyphs.
+
+	* src/truetype/ttgload.c (TT_Load_Composite_Glyph)
+	[FT_DEBUG_LEVEL_TRACE]: Show composite glyph information.
+
+2017-11-27  Werner Lemberg  <wl@gnu.org>
+
+	[type1] Allow (again) `/Encoding' with >256 elements (#52464).
+
+	In version 2.6.1, this has been disallowed to better reject
+	malformed fonts; however, this restriction was too strong.  This
+	time, we only take the first 256 elements into account, since
+	encoding arrays are always accessed with a 8bit integer, according
+	to the PostScript Language Reference.
+
+	* src/type1/t1load.c (parse_encoding): Implement it.
+
+2017-11-27  Jan Alexander Steffens (heftig)  <jan.steffens@gmail.com>
+
+	Fix last commit (#52522).
+
+	* builds/freetype.mk: Set `FT_OPTION_H' and `FTOPTION_FLAG'
+	properly if we have `ftoption.h' in `BUILD_DIR'.
+
+2017-11-24  Werner Lemberg  <wl@gnu.org>
+
+	[unix] Install a massaged `ftoption.h' file (#51780).
+
+	* builds/unix/configure.raw (ftoption_set, ftoption_unset): New
+	auxiliary functions to construct...
+	(FTOPTION_H_SED): ... this new variable.
+	Apply it as a sed argument while copying `ftoption.h' to the
+	`builds/unix' directory (using `AC_CONFIG_FILES').
+	Simplify code of test that checks cpp's computation of bit length
+	(the test previously created an empty `ftoption.h' file and deleted
+	it immediately afterwards); without this change, it can happen on my
+	GNU/Linux box that `configure's execution of `config.status' doesn't
+	create `ftoption.h' (no idea why this happens).
+
+	* builds/unix/install.mk (install): Install
+	`builds/unix/ftoption.h'.
+
+	* builds/unix/unix-def.in (DISTCLEAN): Updated.
+
+	* builds/unix/.gitignore: Updated.
+
+2017-11-23  Tor Andersson  <tor.andersson@artifex.com>
+
+	Silence unused function warnings (#52465).
+
+	Some static function declarations cause unused function warnings if
+	certain config options are turned off via `ftoption.h'.
+
+	* src/base/ftbase.h, src/base/ftrfork.c, src/sfnt/ttbdf.h,
+	src/truetype/ttgxvar.h: Add #ifdef guards around these sections.
+
+2017-11-22  Ewald Hew  <ewaldhew@gmail.com>
+
+	* src/psaux/psft.c (cf2_setGlyphWidth): Check format before setting.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4377
+
+2017-11-22  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Fix CFF advance widths. (#52466)
+
+	Glyph advance widths were being written to the new `PS_Decoder' but not
+	saved to the underlying format specific decoder. This caused pure CFF
+	fonts to have bad advance width.
+
+	* include/freetype/internal/psaux.h (PS_Decoder): Change `glyph_width'
+	field to pointer.
+	Remove unused fields.
+	* src/psaux/psobjs.c (ps_decoder_init): Change `glyph_width' from copy
+	to reference.
+	Remove unused.
+	* src/psaux/psft.c (cf2_setGlyphWidth): Update code.
+
+2017-11-15  Vlad Tsyrklevich  <vtsyrklevich@google.com>
+
+	* include/freetype/ftrender.h: Fix `FT_Renderer_RenderFunc' type.
+
+2017-11-14  Nikolaus Waxweiler  <madigens@gmail.com>
+
+	Use Adobe hinting engine for `light' hinting of both CFF and Type 1.
+
+	Since Ewald Hew factored the Adobe hinting engine out of the CFF
+	driver code, we can now use it on Type 1 (and CID) font formats, as
+	both have the same hinting philosophy.
+
+	This change activates the Adobe hinter when in LIGHT mode, and
+	therefore always unless explicitly asking for the auto-hinter.  This
+	makes LIGHT behavior consistent with CFF fonts.  As of this commit,
+	the hinting engine table looks as follows.
+
+	             LIGHT  NORMAL
+	  -------------------------
+	   TrueType  Auto   v40
+	   CFF       Adobe  Adobe
+	   Type 1    Adobe  Adobe
+
+2017-11-10  Yuri Levchenko  <yuri_levchenko@boolat.com>
+
+	* CMakeLists.txt: Add `DISABLE_FORCE_DEBUG_PREFIX' option.
+
+2017-11-06  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/base/ftobjs.c (FT_Load_Glyph): Relocate condition.
+
+2017-11-06  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/smooth/ftgrays.c (gray_set_cell): Fix uninitialized variables.
+
+2017-11-03  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Fix PostScript interpreter rewinding in Type 1 mode. (#52251)
+
+	The interpreter in Type 1 mode rewinds the charstring after collecting
+	all hints for building the initial hintmap (commit d52dd7f). However,
+	some charstrings use `endchar' in a final subroutine call, rewinding to
+	the start of that subroutine, and only a small section of the actual
+	glyph is drawn.
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdENDCHAR>:
+	Ensure we are on the top level charstring before rewinding.
+
+2017-11-03  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
+	[truetype] Add more tricky fonts.
+
+	See the report by Yang Yinsen.
+	https://lists.gnu.org/archive/html/freetype-devel/2017-11/msg00000.html
+
+	* src/truetype/ttobjs.c (trick_names): Add `DFGothic-EB',
+	`DFGyoSho-Lt', `DFHSGothic-W5', `DFHSMincho-W3' and `DFHSMincho-W7'.
+	(tt_check_trickyness_sfnt_ids): Add checksums for DFGothic-EB,
+	DFGyoSho-Lt, DFHSGothic-W5, DFHSMincho-W3 and DFHSMincho-W7.  Also
+	add checksums for DLCLiShu and DLCHayBold which their family names
+	were already listed but their checksums were previously unknown.
+
+2017-11-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Fix complex rendering at high ppem.
+
+	We used to split large glyphs into horizontal bands and continue
+	bisecting them still horizontally if that was not enough.  This is
+	guaranteed to fail when a single scanline cannot fit into the
+	rendering memory pool.  Now we bisect the bands vertically so that
+	the smallest unit is a column of the band height, which is guranteed
+	to fit into memory.
+
+	* src/smooth/ftgrays.c (gray_convert_glyph): Implement it.
+
+2017-10-20  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth] Improve complex rendering at high ppem.
+
+	At large sizes almost but not exactly horizontal segments can quickly
+	drain the rendering pool. This patch at least avoids filling the pool
+	with trivial cells. Beyond this, we can only increase the pool size.
+
+	Reported, analyzed, and tested by Colin Fahey.
+
+	* src/smooth/ftgrays.c (gray_set_cell): Do not record trivial cells.
+
+2017-10-20  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[base] Improve tracing in FT_Load_Glyph, FT_*_Size.
+
+	* src/base/ftobjs.c (FT_Load_Glyph): Tag tracing messages with
+	function name, glyph index, and load flags.
+	(FT_Select_Metrics, FT_Request_Metrics): Remove all tracing.
+	(FT_Select_Size, FT_Request_Size): Improve tracing.
+
+2017-10-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[base] Improve tracing in FT_Render_Glyph.
+
+	* src/base/ftobjs.c (FT_Render_Glyph_Internal): Add total coverage
+	calculations and downgrade Netpbm dump to bitmap:7.
+
+2017-10-15  Ewald Hew  <ewaldhew@gmail.com>
+
+	[cff] Fix segfault on missing `psaux' (#52218)
+
+	* src/cff/cffload.c (cff_done_blend): Add a check for possible nullptr.
+
+	* modules.cfg: Update dependency list.
+
+2017-10-15  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[base, cff] Fix MSVC warnings.
+
+	* src/base/ftobjs.c (FT_New_Library): C4702: unreachable code.
+	(ft_glyphslot_preset_bitmap): C4244: possible loss of data.
+	* src/cff/cffload.c (cff_blend_doBlend): C4244: possible loss of data.
+	Turn `sum' into unsigned.
+
+2017-10-14  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[base] Netpbm image tracing.
+
+	* src/base/ftobjs.c (FT_Load_Glyph): Trace bitmap size.
+	(FT_Render_Glyph_Internal): Trace bitmap in Netpbm format.
+
+	* src/smooth/ftgrays.c (gray_sweep): Sweep remnants of span tracing.
+
+2017-10-14  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* builds/windows/ftdebug.c (FT_Message): Print to stderr.
+	* builds/wince/ftdebug.c (FT_Message): Ditto.
+
+2017-10-14  Behdad Esfahbod  <behdad@behdad.org>
+
+	[afshaper] Delay creating `hb_set' objects until needed.
+
+	In runs on Noto Naskh Arabic, this results in 89 sets created
+	instead of 340 before.  Makes auto-hinter setup with HarfBuzz
+	enabled 20% to 30% faster.
+
+	* src/autofit/afshaper.c (af_shaper_get_coverage): Implement it.
+
+2017-10-12  Ewald Hew  <ewaldhew@gmail.com>
+
+	[type1, cid] Add hinting engine switch.
+
+	Implement property service in `type1' and `cid' drivers to allow
+	switching between FreeType or Adobe hinting engine when both are
+	available.
+
+	* src/cid/cidriver.c (cid_property_{set,get}, cid_services),
+	src/type1/t1driver.c (t1_property_{set,get}, t1_services): Add
+	Properties service.
+
+	* src/cid/cidobjs.c (cid_driver_init), src/type1/t1objs.c
+	(T1_Driver_Init): Add default property values.
+
+2017-10-12  Ewald Hew  <ewaldhew@gmail.com>
+
+	Add T1_CONFIG_OPTION_OLD_ENGINE configuration option.
+
+	This controls whether the old Type 1 engine gets compiled into FreeType.
+	It is disabled by default.
+
+	* devel/ftoption.h, include/freetype/config/ftoption.h
+	(T1_CONFIG_OPTION_OLD_ENGINE): New macro.
+
+	* include/freetype/internal/psaux.h (PS_Decoder): Remove unused field.
+	* include/freetype/internal/psaux.h, src/cid/cidgload.c
+	(cid_load_glyph), src/psaux/psauxmod.c, src/psaux/psobjs.c
+	(ps_builder_add_point), src/psaux/t1decode.c
+	(t1_lookup_glyph_by_stdcharcode, t1_decoder_parse_glyph,
+	t1operator_seac, t1_decoder_parse_charstrings), src/psaux/t1decode.h,
+	src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Surround
+	relevant code with macro.
+	Minor code changes.
+
+2017-10-12  Ewald Hew  <ewaldhew@gmail.com>
+
+	Extract width parsing from Type 1 parser.
+
+	Duplicate the fast advance width calculations from the old parser.
+	This is to facilitate adding options for compiling out the old parser.
+
+	* src/psaux/t1decode.{c,h} (t1_decoder_parse_metrics): New function.
+	* include/freetype/internal/psaux.h (T1_Decoder_Funcs): New entry
+	`parse_metrics'.
+	* src/psaux/psauxmod.c: Set the new entry.
+
+	* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String),
+	src/cid/cidgload.c (cid_load_glyph): Separate
+	conditional for selecting engine.
+
+2017-10-09  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftoutln.c (FT_Outline_Translate): Fix integer overflow.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/chromium/issues/detail?id=772775
+
+2017-10-08  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Integer overflows.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3579
+
+2017-10-07  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt] Adjust behaviour of PS font names for variation fonts.
+
+	* src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Use a named instance's
+	PS name only if no variation is applied.
+
+2017-10-07  Werner Lemberg  <wl@gnu.org>
+
+	[cff, truetype] Adjust behaviour of named instances.
+
+	This commit completely separates the interaction between named
+	instances and variation functions.  In particular, resetting the
+	variation returns to the current named instance (if set) and not to
+	the base font.
+
+	As a side effect, variation functions no longer change the named
+	instance index.
+
+	* src/cff/cffobjs.c (cff_face_init): Use MM service's `set_instance'
+	function.
+	Also apply `MVAR' table to named instances.
+
+	* src/truetype/ttgxvar.c (TT_Get_MM_Var): Add cast.
+	(tt_set_mm_blend): No longer check whether requested variation
+	coincides with a named instance.
+	(TT_Set_Var_Design): Use current named instance for default
+	coordinates.
+	* src/truetype/ttobjs.c (tt_face_init): Use `TT_Set_Named_Instance'.
+
+2017-10-07  Werner Lemberg  <wl@gnu.org>
+
+	Make `FT_Set_Named_Instance' work.
+
+	* src/cff/cffdrivr.c (cff_set_instance): New function.
+	(cff_service_multi_masters): Register it.
+
+	* src/truetype/ttgxvar.c (TT_Set_Named_Instance): New function.
+	* src/truetype/ttgxvar.h: Updated.
+	* src/truetype/ttdriver.c (tt_service_gx_multi_masters): Register
+	it.
+
+	* src/type1/t1load.c (T1_Reset_MM_Blend): New function.
+	* src/type1/t1load.h: Updated.
+	* src/type1/t1driver.c (t1_service_multi_masters): Register it.
+
+2017-10-07  Werner Lemberg  <wl@gnu.org>
+
+	Make `FT_FACE_FLAG_VARIATION' work.
+
+	* include/freetype/internal/tttypes.h (TT_Face): Remove
+	`is_default_instance'; this can be replaced with a combination of
+	`FT_IS_VARIATION' and `FT_IS_INSTANCE'.
+
+	* src/cff/cffdrivr.c (cff_get_advances): Updated.
+
+	* src/sfnt/sfdriver.c (sfnt_get_ps_name), src/sfnt/sfobjs.c
+	(sfnt_init_face): Updated.
+
+	* src/truetype/ttdriver.c (tt_get_advances), src/truetype/ttgload.c
+	(TT_Process_Simple_Glyph, load_truetype_glyph, IS_DEFAULT_INSTANCE),
+	src/truetype/ttgxvar.c (tt_set_mm_blend): Updated.
+	* src/truetype/ttgxvar.c (TT_Set_MM_Blend, TT_Set_Var_Design):
+	Handle `FT_FACE_FLAG_VARIATION'.
+
+	* src/type1/t1load.c (T1_Set_MM_Blend, T1_Set_MM_Design): Handle
+	`FT_FACE_FLAG_VARIATION'.
+
+2017-10-07  Werner Lemberg  <wl@gnu.org>
+
+	New function `FT_Set_Named_Instance'.
+
+	No effect yet.
+
+	* src/base/ftmm.c (FT_Set_Named_Instance): New function.
+
+	* include/freetype/ftmm.h: Updated.
+
+2017-10-07  Werner Lemberg  <wl@gnu.org>
+
+	Add macros for checking whether a font variation is active.
+
+	* include/freetype/freetype.h (FT_FACE_FLAG_VARIATION,
+	FT_IS_VARIATION): New macros.
+	No effect yet.
+
+2017-10-07  Werner Lemberg  <wl@gnu.org>
+
+	Add framework for setting named instance in MM service.
+
+	* include/freetype/internal/services/svmm.h (FT_Set_Instance_Func):
+	New function typedef.
+	(MultiMasters): Add `set_instance' member.
+	(FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated.
+
+	* src/cff/cffdrivr.c (cff_service_multi_masters),
+	src/truetype/ttdriver (tt_service_gx_multi_masters),
+	src/type1/t1driver.c (t1_service_multi_masters): Updated.
+
+2017-10-07  Werner Lemberg  <wl@gnu.org>
+
+	[type1] Minor code shuffling.
+
+	* src/type1/t1load.c (T1_Set_MM_Blend): Make it a wrapper of...
+	(t1_set_mm_blend): ...this new function.
+	(T1_Set_MM_Design): Use `t1_set_mm_blend'.
+
+2017-10-05  Werner Lemberg  <wl@gnu.org>
+
+	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Fix integer
+	overflow.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3539
+
+2017-10-05  Werner Lemberg  <wl@gnu.org>
+
+	Fix compiler warnings.
+
+	* src/cff/cffdrivr.c (cff_ps_get_font_extra): Avoid code that relies
+	on numeric overflow.
+	Add cast.
+
+	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Fix variable
+	types, add cast.
+
+2017-10-04  John Tytgat  <John.Tytgat@esko.com>
+
+	[cff] Add support for `FSType'.
+
+	* include/freetype/internal/cfftypes.h (CFF_FontRec): Add
+	`font_extra' entry.
+
+	* src/cff/cffdrivr.c (cff_ps_get_font_extra): New function to
+	retrieve FSType info from the embedded PostScript data.
+	(cff_service_ps_info): Register function.
+
+	* src/cff/cffload.c (cff_font_done): Free `font_extra'.
+
+2017-09-30  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	Signedness fixes in bitmap presetting.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3514.
+
+	* src/raster/ftrend1.c (ft_raster1_render): Explicitly signed height.
+	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
+	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Explicitly unsigned
+	subtraction.
+
+2017-09-29  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	Bitmap metrics presetting [2/2].
+
+	* src/base/ftobjs.c (FT_Load_Glyph): Preset the bitmap metrics when
+	appropriate but `FT_Render_Glyph' is not called.
+	* include/freetype/freetype.h (FT_GlyphSlotRec): Document the change.
+
+2017-09-28  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[smooth, raster] Miscellaneous cleanups.
+
+	* src/raster/ftrend1.c (ft_raster1_render): Clean up the exit.
+	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Reduce
+	translations and clean up the exit.
+	(ft_smooth_render_lcd, ft_smooth_render_lcd): Remove unused `error'.
+
+2017-09-28  Ben Wagner  <bungeman@google.com>
+
+	[truetype] Really, really fix #52082.
+
+	* src/truetype/ttinterp.c (Ins_MDRP): Correct conditional.
+
+2017-09-28  Werner Lemberg  <wl@gnu.org>
+
+	* src/psaux/psintrp.c (cf2_doStems): Fix integer overflow.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3510
+
+2017-09-28  Ewald Hew  <ewaldhew@gmail.com>
+
+	* src/cid/cidgload.c (cid_slot_load_glyph): Fix memory leak.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3489
+
+2017-09-28  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	Bitmap metrics presetting [1/2].
+
+	This mainly just extracts the code for presetting the bitmap metrics
+	from the monochrome, grayscale, and LCD renderers into a separate
+	function.
+
+	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): New function that
+	calculates prospective bitmap metrics for the given rendering mode.
+	* include/freetype/internal/ftobjs.h (ft_glyphslot_preset_bitmap):
+	Declare it.
+
+	* src/base/ftlcdfil.c (ft_lcd_padding): New helper function that adds
+	padding to CBox taking into account pecularities of LCD rendering.
+	* include/freetype/ftlcdfil.h (ft_lcd_padding): Declare it.
+
+	* src/raster/ftrend1.c (ft_raster1_render): Reworked to use
+	`ft_glyphslot_preset_bitmap'.
+	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
+	(ft_smooth_render_lcd, ft_smooth_render_lcd): The pixel_mode setting
+	is moved to `ft_glyphslot_preset_bitmap'.
+
+2017-09-28  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Fix compiler warning.
+
+	* src/psaux/pshints.c (cf2_hintmap_dump): Add switch for tracing
+	code.
+
+2017-09-27  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/ttload.c (tt_face_load_font_dir): Fix compiler warning.
+
+2017-09-25  Werner Lemberg  <wl@gnu.org>
+
+	[psaux] Fix compiler warnings.
+
+	* src/psaux/psft.c (cf2_initLocalRegionBuffer): Remove redundant
+	test.
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString)
+	<cf2_escCALLOTHERSUBR>: Add casts.
+
+	* src/psaux/psobjs.c (ps_decoder_init): Add cast.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Minor fixes.
+
+	* include/freetype/internal/psaux.h, src/psaux/psobjs.{c,h}:
+	Rearrange `ps_builder_init' arguments to conventional order.
+
+	* src/psaux/psft.c (cf2_decoder_parse_charstrings): Add a check and
+	notice for `SubFont' in Type 1 mode.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Move `psdecode' into `psobjs'.
+
+	As the former only contains a single procedure, move it into
+	`psobjs' for simplicity.  Also change the parameter order to the
+	conventional one.
+
+	* src/psaux/psdecode.c (ps_decoder_init): Moved to...
+	* src/psaux/psobjs.c: ...Here.
+	* src/psaux/psdecode.h, src/psaux/psobjs.h: Ditto.
+
+	* include/freetype/internal/psaux.h (PSAux_ServiceRec): Update
+	`ps_decoder_init' function signature.
+
+	* src/cff/cffgload.c, src/cid/cidgload.c, src/type1/t1gload.c:
+	Update calls.
+
+	* src/psaux/psaux.c, src/psaux/psauxmod.c: Update includes.
+
+	* src/psaux/Jamfile (_sources), src/psaux/rules.mk (PSAUX_DRV_SRC):
+	Update file references.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Fix Type 1 hinting.
+
+	Type 1 hinting breaks sometimes when mid-charstring hints should
+	have been in the initial hintmap.  This fix adds a preprocessing
+	pass that reads all hints and builds the correct initial hintmap
+	first, before proceeding to build the glyph outline.
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString): New
+	`initial_map_ready' boolean flag.
+	Ignore outline commands and hint changes on first pass.
+	<cf2_cmdENDCHAR>: Add section to build hintmap and rewind.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Add tracing for hints.
+
+	* src/psaux/pshints.c (cf2_hintmap_dump): New function.
+	(cf2_hintmap_insertHint): Trace incoming and inserted hints.
+	(cf2_hintmap_build): Dump hintmap before and after hint adjustment.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Minor fixes.
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString): Fix check for pop
+	results.
+	s/font->decoder/decoder/ where necessary.
+	<cf2_cmdHSTEM, cf2_cmdVSTEM, cf2_escHSTEM3, cf2_escVSTEM3>: Use
+	offset parameter in `cf2_doStems' instead of doing correction for
+	left-sidebearing.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[cid] Use the new engine.
+
+	* src/cid/cidgload.c: Update includes.
+	(cid_load_glyph, cid_slot_load_glyph): Implement changes to glyph
+	loading code as with `type1' module.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[cid] Add Adobe engine configuration.
+
+	This is similar to what was done in the `type1' module.
+
+	* src/cid/cidriver.c (t1cid_driver_class): Update declaration.
+	* src/cid/cidobjs.c: Include FT_TYPE1_DRIVER_H.
+	(cid_driver_init): Update code.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Change subfont synthesis for CID fonts.
+
+	Change `t1_make_subfont' to take in the Private dict record as an
+	argument.  This is because Type 1 and CID font records in FreeType
+	have this in different places.
+
+	* src/psaux/psobjs.c (t1_make_subfont): Change `T1_Face' to
+	`FT_Face' so that CID is also accepted.
+	Take `PS_Private' as an argument and let caller figure out where the
+	Private dict actually is.
+	Update references.
+
+	* include/freetype/internal/psaux.h, src/psaux/psobjs.h: Update
+	declaration.
+
+	* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Update
+	call.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[type1] Switch to Adobe engine.
+
+	* src/type1/t1objs.c (T1_Driver_Init): Set default to Adobe engine.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Extend Adobe interpreter (seac).
+
+	This concludes the changes needed to add Type 1 support.
+
+	* src/psaux/psintrp.c: Update includes.
+	(cf2_interpT2CharString) <cf2_escSEAC>: Implement this similarly to
+	implied seac for CFF.
+
+	* src/psaux/t1decode.c (t1_lookup_glyph_by_stdcharcode_ps): New
+	function to look up the glyph index.
+
+	* src/psaux/psft.c (cf2_getT1SeacComponent,
+	cf2_freeT1SeacComponent): New functions to get the charstrings for
+	seac components.
+
+	* src/psaux/t1decode.h, src/psaux/psft.h: Update declarations.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Extend Adobe interpreter (flex in callothersubr).
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString)
+	<cf2_escCALLOTHERSUBR>: Fix Flex feature handling (OtherSubrs 0, 1,
+	2).
+	<cf2_cmdRMOVETO>: Do not actually move the `glyphPath' while doing
+	flex.  This is to avoid closing the current contour.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Extend Adobe interpreter (callothersubr).
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString)
+	<cf2_escCALLOTHERSUBR>: Copy code from
+	`t1_decoder_parse_charstrings' (in `t1decode.c').
+	OtherSubr 3 (change hints) should reset the hintmask, so that the
+	new hints are applied.
+	Fix function calls and stack access.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Extend Adobe interpreter (pop).
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString): Change how unhandled
+	OtherSubr results are stored.  Implement the PostScript stack using
+	an array.
+	<cf2_escPOP>: Ensure that the stack is not cleared after getting
+	`OtherSubr' results.
+	Fix stack access.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Extend Adobe interpreter (callsubr).
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdCALLSUBR>:
+	Type 1 mode.
+
+	* src/psaux/psft.c (cf2_initLocalRegionBuffer): Add Type 1 mode.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Extend Adobe interpreter (div, four-byte numbers).
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_escDIV>: Add
+	Type 1 mode.  Type 1 requires large integers to be followed by
+	`div'; cf. `Adobe Type 1 Font Format', section 6.2.
+	<op == 255>: Push Type 1 four-byte numbers as `Int' always.  This is
+	to ensure `div' and `callsubr' get values they can use.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Extend Adobe interpreter (hints).
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdHSTEM,
+	cf2_cmdVSTEM>: Add correction for left sidebearing in Type 1 mode.
+	Allow adding hints mid-charstring.
+	<cf2_escVSTEM3, cf2_escHSTEM3>: Translate into equivalent commands
+	for three normal stem hints.  This requires some recalculation of
+	stem positions.
+	Correction for left sidebearing.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Extend Adobe interpreter (hsbw, sbw).
+
+	* src/psaux/psintrp.c (cf2_doStems): `hsbw' or `sbw' must be the
+	first operation in a Type 1 charstring.
+	(cf2_interpT2CharString): Remove unused variables.
+	<cf2_cmdHMOVETO, cf2_cmdVMOVETO, cf2_cmdRMOVETO>: `hsbw' or `sbw'
+	must be the first operation in a Type 1 charstring.
+	<cf2_cmdHSBW, cf2_escSBW>: Fix data access and add correction for
+	left sidebearing.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Extend Adobe interpreter (setcurrentpoint).
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString)
+	<cf2_escSETCURRENTPT>: Fix stack access.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Extend Adobe interpreter (closepath).
+
+	* src/psaux/psintrp.c (cf2_interpT2CharString) <c2f_cmdCLOSEPATH>:
+	Use the right builder function.  We can use the `haveWidth' boolean
+	already present, instead of implementing `parse_state'.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Add Type 1 operations to Adobe CFF interpreter.
+
+	The following Type 1 specific ops have been added (copied from
+	`t1decode'):
+
+	  closepath
+	  vstem3
+	  hstem3
+	  seac
+	  sbw
+	  callothersubr
+	  pop
+	  setcurrentpoint
+	  hsbw
+
+	The following require a Type 1 mode, because of differences in
+	specification:
+
+	  hstem
+	  vstem
+	  vmoveto
+	  callsubr
+	  div
+	  rmoveto
+	  hmoveto
+	  Numbers
+
+	The subsequent commits will implement these changes and adapt
+	accesses of data and objects to the new interpreter.
+
+	NOTE: Will not compile in the meantime!
+
+	* src/psaux/psintrp.c: Add opcodes to enum.
+	(cf2_interpT2CharString): Copy relevant code over from
+	`t1_decoder_parse_charstrings' (in `t1decode.c').
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[type1] Fixes for rendering.
+
+	The Type 1 advance width calculation passes null for glyph slot,
+	etc, which can cause null pointer access in the new interpreter.
+	Fall back to the old one for now.
+
+	Fix the large glyph retry code and ensure hinting and scaling flags
+	are set properly.
+
+	* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Add a
+	check for metrics_only.
+	Set the `force_scaling' flag.
+	(T1_Parse_Glyph): Updated.
+	(T1_Load_Glyph): Add `hinting' and `scaled' flags.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Add missing objects (2/2).
+
+	Synthesize a `SubFont' object for Type 1 fonts.  This is used in the
+	interpreter to access Private dict data, which are stored in
+	different places for Type 1 and CFF.  This allows the same data to
+	be used in either mode.
+
+	* src/psaux/psobjs.c (t1_make_subfont): New procedure to copy
+	required values to a dummy `CFF_SubFont' object.  This is similar to
+	`cff_make_private_dict'.
+	* src/psaux/psobjs.h: Add the new declaration.
+
+	* include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Ditto.
+	Add this to the PSAux Service for future use with CID fonts.
+
+	* src/type1/t1gload.c: Include FT_INTERNAL_CFF_TYPES_H.
+	(T1_Parse_Glyph_And_Get_Char_String): Add the call.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Add missing objects for Type 1 (1/2).
+
+	Move `CF2_Font' instance to `PS_Decoder'.  This is the context for
+	the interpreter and since it is currently stored in `CFF_Font', is
+	unavailable in Type 1 mode.
+
+	* include/freetype/internal/psaux.h (T1_Decoder, PS_Decoder): New
+	`cf2_instance' field.
+
+	* src/psaux/psdecode.c (ps_decoder_init): Copy `cf2_instance' to
+	`PS_Decoder'.
+
+	* src/psaux/t1decode.c (t1_decoder_done): Add finalization code.
+
+	* src/psaux/psft.c (cf2_decoder_parse_charstrings): Update accesses.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	Allow `type1' module to use the Adobe engine.
+
+	Add the callback and some conditionals to switch between the two
+	engines.
+
+	* include/freetype/internal/psaux.h (T1_Decoder_FuncsRec): Change
+	function declarations.
+	* src/psaux/psauxmod.c (T1_Decoder_FuncsRec): Register the
+	callbacks.
+
+	* src/psaux/psobjs.c (ps_builder_add_point): Add conditionals for
+	number conversion.
+
+	* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Add code
+	to choose which renderer to use.
+
+	* src/cid/cidgload.c (cid_load_glyph): Update call.
+	* src/base/ftobjs.c, src/psaux/psobjs.c, src/type1/t1gload.c: Update
+	includes.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[type1] Add Adobe engine configuration.
+
+	Use the previously changed PS_Driver in type1 module to store
+	hinting engine configuration.
+
+	* include/freetype/ftt1drv.h: New file.
+	Duplicate and rename config options from CFF.
+	* include/freetype/config/ftheader.h (FT_TYPE1_DRIVER_H): New macro.
+
+	* src/type1/t1driver.c (t1_driver_class): Update declaration.
+	* src/type1/t1objs.c: Include FT_TYPE1_DRIVER_H.
+	(T1_Driver_Init): Update code.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[cff] Move and rename `CFF_Driver'.
+
+	This is so that we can use the same hinting engine parameters for
+	Type 1.
+
+	* include/freetype/internal/cffotypes.h (CFF_Driver): Rename and
+	move to...
+	* include/freetype/internal/psaux.h (PS_Driver): ...here.
+
+	* src/cff/cffdrivr.c, src/cff/cffgload.c, src/cff/cffload.c,
+	src/cff/cffobjs.c, src/cff/cffobjs.h, src/psaux/psft.c,
+	src/psaux/psobjs.c: Update references.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux, type1] Reorganize object fields.
+
+	Make some fields more generic, so that we can access them the same
+	way regardless of Type 1 or CFF.
+
+	* include/freetype/internal/psaux.h (PS_Builder): Change `TT_Face'
+	to `FT_Face'.
+	Remove unused fields.
+
+	* src/psaux/psft.c: Update all accesses of `PS_Builder.face'.
+	Add some asserts to guard against casting `T1_Face' as `TT_Face'.
+
+	* src/type1/t1objs.h (T1_GlyphSlot): Reorder fields to follow
+	`CFF_GlyphSlot', so that we can pretend they are the same in the
+	interpreter.
+
+	* src/psaux/psobjs.c (ps_builder_init, ps_builder_add_point):
+	Updated with above changes.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Prepare for Type 1 mode.
+
+	Add some checks for Type 1 data passing through.
+
+	* src/psaux/psfont.h (CF2_Font): Add `isT1' flag.
+	* src/psaux/psfont.c (cf2_font_setup): Skip the variations and blend
+	code which is not applicable for Type 1.
+
+	* src/psaux/psft.c (cf2_decoder_parse_charstrings): Avoid accessing
+	`decoder->cff' in Type 1 mode.
+	Copy `is_t1' flag to `CF2_Font'.
+
+2017-09-25  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux, cff] Use the new objects.
+
+	* include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Fix
+	switching between new and old engines.
+
+	* src/cff/cffgload.c, src/cff/cffparse.c: Update calls.
+
+	* src/psaux/psblues.c, src/psaux/psfont.c, src/psaux/psfont.h,
+	src/psaux/psft.c, src/psaux/psft.h, src/psaux/psintrp.c: Update all
+	to use new objects.
+
+2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Objects for new interpreter (part 2).
+
+	Make the new objects copy over values.  They are essentially wrapper
+	types for the different decoders/builders.
+
+	* include/freetype/internal/psaux.h: Update declarations.
+	(PS_Builder): Add `is_t1' flag.
+	(PS_Decoder_{Get,Free}_Glyph_Callback): Renamed to...
+	(CFF_Decoder_{Get,Free}_Glyph_Callback: ... this.
+	(PS_Decoder): Updated.
+	Add `t1_parse_callback' member.
+	(PSAux_ServiceRec): Add `ps_decoder_init' member.
+
+	* src/psaux/psdecode.h, src/psaux/psobjs.h: Update declarations.
+
+	* src/psaux/psdecode.c, src/psaux/psobjs.c: Implement copy with two
+	modes.
+
+	* src/psaux/psauxmod.c: Add builder and decoder functions to `PSAux'
+	service.
+
+2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Add objects for new interpreter.
+
+	Introduce `PS_Decoder' and `PS_Builder' which include all fields
+	from either Type 1 or CFF decoders/builders.
+
+	* include/freetype/internal/psaux.h (PS_Builder, PS_Decoder): New
+	structs.
+
+	* src/psaux/psobjs.c, src/psaux/psobjs.h: Add `PS_Builder'
+	functions.
+
+	* src/psaux/psdecode.c, src/psaux/psdecode.h: New files to hold
+	`PS_Decoder' initialization functions.
+
+	* src/psaux/psaux.c, src/psaux/Jamfile (_sources),
+	src/psaux/rules.mk (PSAUX_DRV_SRC): Updated.
+
+2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Rename files.
+
+	Replace the `cf2' file name prefix with `ps' as the Adobe engine
+	will be used for both PostScript Types 1 and 2 (CFF) instead of just
+	CFF.
+
+	s/cf2/ps/ for all following.
+
+	* src/psaux/cf2*: Rename files.
+	* src/psaux/*: Update includes.
+
+	* src/psaux/Jamfile (_sources), src/psaux/rules.mk (PSAUX_DRC_SRC,
+	PSAUX_DRV_H): Update file references.
+
+2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux] Minor fix.
+
+	Use `MultiMasters' service in `psaux' instead of a call to `cff'.
+	The project builds if CFF_CONFIG_OPTION_OLD_ENGINE is not defined.
+
+	* src/psaux/cf2ft.c: Update includes.
+	(cf2_getNormalizedVector): Use `mm->get_var_blend' instead of
+	`cff_get_var_blend'.
+
+2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux, cff] Move `cff_random' into `psaux' service.
+
+	NOTE: Does not compile!
+
+	Minor fix to allow both `cff' and `psaux' to use `cff_random'.
+
+	* src/cff/cffload.c (cff_random): Move to...
+	* src/psaux/psobjs.c: Here.
+	* src/cff/cffload.h: Move corresponding declaration to
+	`src/psaux/psobjs.h'.
+
+	* include/freetype/internal/psaux.h (PSAux_ServiceRec): Register the
+	function here...
+	* src/psaux/psauxmod.c: And here.
+
+	* src/cff/cffload.c, src/psaux/cf2intrp.c: Update code.
+
+2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+
+	[cff] Move struct declarations to `freetype/internal'.
+
+	NOTE: Does not compile!
+
+	This is so that the CFF functions moved to `psaux' can access the
+	same structs that they need.
+
+	* src/cff/cfftypes.h: Moved to...
+	* include/freetype/internal/cfftypes.h: ...Here.
+
+	* src/cff/cffobjs.h: Moved the struct declarations to...
+	* include/freetype/internal/cffotypes.h: ... this new file.
+
+	* include/freetype/internal/internal.h (FT_INTERNAL_CFF_TYPES_H,
+	FT_INTERNAL_CFF_OBJECT_TYPES_H): New macros.
+
+	* src/cff/cffcmap.h, src/cff/cffdrivr.c, src/cff/cffgload.c,
+	src/cff/cffgload.h, src/cff/cffload.h, src/cff/cffobjs.c,
+	src/cff/cffobjs.h, src/cff/cffparse.h, src/psaux/psobjs.h,
+	include/freetype/internal/psaux.h,
+	include/freetype/internal/services/svcfftl.h: Update includes.
+
+	* src/cff/rules.mk (CFF_DRV_H): Updated.
+
+2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux, cff] Add new service for inter-module calls.
+
+	NOTE: Does not compile!
+
+	This is to allow CFF functions moved to `psaux' to call functions
+	declared in `src/cff/cffload.h'.
+
+	* include/freetype/internal/services/svcfftl.h: New file, setting up
+	a `CFFLoad' service.
+
+	* include/freetype/internal/ftserv.h (FT_DEFINE_SERVICEDESCREC10,
+	FT_DEFINE_SERVICEDESCREC): New macros.
+	(FT_SERVICE_CFF_TABLE_LOAD_H): New macro.
+
+	* src/cff/cffdrivr.c, src/cff/cffpic.h: Register the new service.
+
+	* src/cff/cfftypes.h (CFF_FontRec), src/psaux/cf2font.h
+	(CF2_FontRec): Add service interface.
+
+	* src/cff/cffobjs.c, src/psaux/cf2font.c, src/psaux/cf2ft.c,
+	src/psaux/cf2intrp.c, src/psaux/cffdecode.c: Use the new service.
+
+2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux, cff] Add callbacks for inter-module calls.
+
+	NOTE: Does not compile!
+
+	* include/freetype/internal/psaux.h: Add function pointer
+	declarations.
+
+	* src/psaux/cffdecode.c (cff_decoder_init): Update to take in
+	callbacks.
+	* src/psaux/cffdecode.h: Ditto.
+
+	* src/cff/cffgload.c (cff_compute_max_advance, cff_slot_load):
+	Update calls to pass in callbacks.
+	* src/psaux/cf2ft.c, src/psaux/cffdecode.c: Use them.
+
+2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux, cff] Create new `PSAux' service interface entries.
+
+	NOTE: Does not compile!
+
+	* include/freetype/internal/psaux.h: Include
+	FT_INTERNAL_TRUETYPE_TYPES_H.
+	(CFF_Builder_FuncsRec, CFF_Decocer_FuncsRec): New function tables.
+	(CFF_Builder): Updated.
+	Fix for forward declaration.
+	(PSAux_ServiceRec): New field `cff_decoder_funcs'.
+
+	* src/psaux/psauxmod.c (cff_builder_funcs, cff_decoder_funcs): New
+	function tables.
+	(PSAux_Interface): Updated.
+
+	* include/freetype/internal/tttypes.h (TT_FaceRec): Add `psaux'
+	service interface.
+
+	* src/cff/cffgload.c, src/cff/cffobjs.c, src/cff/cffparse.c: Update
+	function calls to use psaux service.
+
+2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux, cff] Move CFF builder components into `psaux' module.
+
+	NOTE: Does not compile!
+
+	* src/cff/cffgload.c
+	(cff_builder_{init,done,add_point,add_point1,add_contour,start_point,close_contour},
+	cff_check_points): Move to...
+	* src/psaux/psobjs.c: Here.
+
+	* src/cff/cffgload.h: Move corresponding declarations to
+	`src/psaux/psobjs.h'.
+
+	* src/cff/cffgload.h (CFF_Builder): Move struct declaration to...
+	* include/freetype/internal/psaux.h: Here.
+
+2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux, cff] Move CFF decoder components into `psaux' module.
+
+	NOTE: Does not compile!
+
+	* src/cff/cffgload.c (CFF_Operator,
+	CFF_COUNT_{CHECK_WIDTH,EXACT,CLEAR_STACK}, cff_argument_counts,
+	cff_operator_seac, cff_compute_bias,
+	cff_lookup_glyph_by_stdcharcode,
+	cff_decoder_{parse_charstrings,init,prepare}): Move to...
+	* src/psaux/cffdecode.c: This new file.
+
+	* src/cff/cffgload.h: Move corresponding declarations to...
+	* src/psaux/cffdecode.h: This new file.
+
+	* src/cff/cffgload.h (CFF_MAX_{OPERANDS,SUBRS_CALLS,TRANS_ELEMENTS},
+	CFF_Decoder_Zone, CFF_Decoder): Move declarations to...
+	* include/freetype/internal/psaux.h: Here.
+
+	* src/psaux/cf2ft.h: Update include.
+
+	* src/psaux/psaux.c, src/psaux/rules.mk (PSAUX_DRV_SRC): Update with
+	the new file.
+
+2017-09-24  Ewald Hew  <ewaldhew@gmail.com>
+
+	[psaux, cff] Move Adobe's engine components into `psaux' module.
+
+	This is the first patch of a sequence to move the Type 2 charstring
+	processing capability from the `cff' module to the `psaux' module.
+
+	NOTE: Does not compile!
+
+	* src/cff/cf2*: Move these files to...
+	* src/psaux/cf2*: Here.
+
+	* src/cff/Jamfile (_sources), src/cff/rules.mk (CFF_DRV_SRC,
+	CFF_DRV_H), src/cff/cff.c, src/cff/cffgload.c: Remove file
+	references.
+
+	* src/psaux/Jamfile (_sources), src/psaux/rules.mk, src/psaux/psaux.c
+	(PSAUX_DRV_SRC, PSAUX_DRV_H): Add file references.
+
+2017-09-24  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	Tweak per-face LCD filtering controls.
+
+	Thing are simpler with a NULL-function pointer.
+
+	* include/freetype/internal/ftobjs.h (FT_Face_InternalRec): New
+	pointer to the filter function.
+	(FT_LibraryRec): Remove unused `lcd_filter'.
+	(FT_Bitmap_LcdFilterFunc, ft_lcd_filter_fir):  Move from here...
+	* include/freetype/ftlcdfil.h (FT_Bitmap_LcdFilterFunc,
+	ft_lcd_filter_fir): ... to here.
+
+	* src/base/ftobjs.c (ft_open_face_internal): NULL-initialize the
+	per-face filter.
+	(FT_Face_Properties): Set it.
+	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Simplify.
+
+	* src/base/ftlcdfil.c (ft_lcd_filter_fir, FT_Libary_SetLcdFilter):
+	Minor.
+
+2017-09-24  Jonathan Kew  <jfkthame@gmail.com>
+
+	[sfnt] Fix `premultiply_data' (#52092).
+
+	* src/sfnt/pngshim.c (premultiply_data): Don't use vector extension
+	if we have less than 16 bytes of data.
+
+2017-09-24  Werner Lemberg  <wl@gnu.org>
+
+	[otvalid] Fix handling of ValueRecords.
+
+	For GPOS pair positioning format 1 the description of ValueRecords
+	in the OpenType specification (1.8.2, from today) is wrong – the
+	offset has to be taken from the parent structure; in this case the
+	`PairSet' table.
+
+	* src/otvalid/otvgpos.c (otv_PairSet_validate): Set `extra3'.
+	(otv_PairPos_validate): Adjust.
+
+2017-09-23  Werner Lemberg  <wl@gnu.org>
+
+	[otvalid] Handle `GSUB' and `GPOS' v1.1 tables.
+
+	* src/otvalid/otvgsub.c (otv_GSUB_validate), src/otvalid/otvgpos.c
+	(otv_GPOS_validate): Implement it.
+
+2017-09-23  Werner Lemberg  <wl@gnu.org>
+
+	[otvalid] Update common table handling to OpenType 1.8.2.
+
+	* src/otvalid/otvcommn.c (otv_Device_validate): Handle
+	VariationIndex subtable.
+	(otv_Lookup_validate): Handle MarkFilteringSet.
+
+2017-09-23  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[build] Windows-style DLL versioning.
+
+	* build/windows/ftver.rc: New VERSIONINFO resource.
+	* build/windows/vc2010/freetype.vcxproj: Further improvements.
+
+2017-09-23  Ben Wagner  <bungeman@google.com>
+
+	[truetype] Really fix #52082.
+
+	* src/truetype/ttinterp.c (Ins_MDRP): Correct conditional.
+
+2017-09-23  Werner Lemberg  <wl@gnu.org>
+
+	[otvalid] Handle `GDEF' v1.2 and v1.3 tables.
+
+	No validation of variation stuff yet.
+
+	* src/otvalid/otvgdef.c (otv_MarkGlyphSets_validate): New function.
+	(otv_GDEF_validate): Implement it.
+
+2017-09-22  Werner Lemberg  <wl@gnu.org>
+
+	[otvalid] Handle `BASE' v1.1 table.
+
+	No validation of variation stuff yet.
+
+	* src/otvalid/otvbase.c (otv_BASE_validate): Implement it.
+
+2017-09-22  Werner Lemberg  <wl@gnu.org>
+
+	[otvalid] Macros for 32bit offset support.
+
+	* src/otvalid/otvcommn.h (OTV_OPTIONAL_TABLE32,
+	OTV_OPTIONAL_OFFSET32, OTV_SIZE_CHECK32): New macros.
+
+2017-09-21  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[build] Simplify Visual C++ 2010 project.
+
+	* build/windows/vc2010/freetype.vcxproj: Remove fake singlethreaded
+	configurations and tweak.
+
+2017-09-21  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Integer overflow (#52082).
+
+	* src/truetype/ttinterp.c (Ins_MDRP): Avoid FT_ABS.
+
+2017-09-21  Werner Lemberg  <wl@gnu.org>
+
+	[sfnt] Fix postscript name for default instance of variation fonts.
+
+	Problem reported by Behdad.
+
+	* src/sfnt/sfdriver.c (sfnt_get_ps_name): Test
+	`is_default_instance'.
+
+2017-09-21  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Fix `mmvar' array pointers, part 2.
+
+	The previous commit was incomplete.
+
+	* src/truetype/ttgxvar.c: Properly initialize sub-array offsets for
+	`master' also.
+
+2017-09-21  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Fix `mmvar' array pointers.
+
+	Without this change, clang's AddressSanitizer reports many runtime
+	errors due to misaligned addresses.
+
+	* src/truetype/ttgxvar.c (TT_Get_MM_Var): Use multiples of pointer
+	size for sub-array offsets into `mmvar'.
+
+2017-09-20  Werner Lemberg  <wl@gnu.org>
+
+	[truetype] Integer overflows.
+
+	Changes triggered by
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3429
+
+	* src/truetype/ttinterp.c (Ins_SHPIX, Ins_DELTAP): Use NEG_LONG.
+	(Ins_MIAP): Use SUB_LONG.
+
+2017-09-19  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[build] Fix DLL builds in Visual C++ project.
+
+	* build/windows/vc2010/freetype.vcxproj: Use DynamicLibrary in Debug
+	and Release configurations.
+	* include/freetype/config/ftconfig.h (FT_EXPORT, FT_EXPORT_DEF)
+	[_DLL]: Use Visual C++ extensions.
+
+2017-09-19  John Tytgat  <John.Tytgat@esko.com>
+
+	[cff] Fix family name logic of pure CFF fontdata (#52056).
+
+	1. If `FamilyName' is present in the CFF font, use this for
+	   FT_Face's `family_name'.
+	2. Otherwise, use the face name and chop off any subset prefix.
+	3. If at this point FT_Face's `family_name' is set, use this
+	   together with the full name to determine the style.
+	4. Otherwise, use `CIDFontName' as FT_Face's `family_name'.
+	5. If we don't have a valid style, use "Regular".
+
+	Previously, FT_Face's `family_name' entry for pure CFF fontdata
+	nearly always was the fontname itself, instead of the `FamilyName'
+	entry in the CFF font (assuming there is one).
+
+	* src/cff/cffobjs.c (cff_face_init) [pure_cff]: Implement it.
+
+2017-09-18  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[build] Declutter Visual C++ 2010-2017 project.
+
+	* build/windows/vc2010/freetype.vcxproj: Use MaxSpeed (/02)
+	optimization for Release configuration throughout the project.
+
+
+----------------------------------------------------------------------------
+
+Copyright (C) 2017-2020 by
+David Turner, Robert Wilhelm, and Werner Lemberg.
+
+This file is part of the FreeType project, and may only be used, modified,
+and distributed under the terms of the FreeType project license,
+LICENSE.TXT.  By continuing to use, modify, or distribute this file you
+indicate that you have read the license and understand and accept it
+fully.
+
+
+Local Variables:
+version-control: never
+coding: utf-8
+End:
diff --git a/Jamfile b/Jamfile
deleted file mode 100644
index 9078a5f..0000000
--- a/Jamfile
+++ /dev/null
@@ -1,222 +0,0 @@
-# FreeType 2 top Jamfile.
-#
-# Copyright 2001-2018 by
-# David Turner, Robert Wilhelm, and Werner Lemberg.
-#
-# This file is part of the FreeType project, and may only be used, modified,
-# and distributed under the terms of the FreeType project license,
-# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
-# indicate that you have read the license and understand and accept it
-# fully.
-
-
-# The HDRMACRO is already defined in FTJam and is used to add
-# the content of certain macros to the list of included header
-# files.
-#
-# We can compile FreeType 2 with classic Jam however thanks to
-# the following code
-#
-if ! $(JAM_TOOLSET)
-{
-  rule HDRMACRO
-  {
-    # nothing
-  }
-}
-
-
-# We need to invoke a SubDir rule if the FT2 source directory top is not the
-# current directory.  This allows us to build FreeType 2 as part of a larger
-# project easily.
-#
-if $(FT2_TOP) != $(DOT)
-{
-  SubDir  FT2_TOP ;
-}
-
-
-# The following macros define the include directory, the source directory,
-# and the final library name (without library extensions).  They can be
-# replaced by other definitions when the library is compiled as part of
-# a larger project.
-#
-
-# Name of FreeType include directory during compilation.
-# This is relative to FT2_TOP.
-#
-FT2_INCLUDE_DIR ?= include ;
-
-# Name of FreeType source directory during compilation.
-# This is relative to FT2_TOP.
-#
-FT2_SRC_DIR ?= src ;
-
-# Name of final library, without extension.
-#
-FT2_LIB ?= $(LIBPREFIX)freetype ;
-
-
-# Define FT2_BUILD_INCLUDE to point to your build-specific directory.
-# This is prepended to FT2_INCLUDE_DIR.  It can be used to specify
-# the location of a custom <ft2build.h> which will point to custom
-# versions of `ftmodule.h' and `ftoption.h', for example.
-#
-FT2_BUILD_INCLUDE ?= ;
-
-# The list of modules to compile on any given build of the library.
-# By default, this will contain _all_ modules defined in FT2_SRC_DIR.
-#
-# IMPORTANT: You'll need to change the content of `ftmodule.h' as well
-#            if you modify this list or provide your own.
-#
-FT2_COMPONENTS ?= autofit    # auto-fitter
-                  base       # base component (public APIs)
-                  bdf        # BDF font driver
-                  bzip2      # support for bzip2-compressed PCF font
-                  cache      # cache sub-system
-                  cff        # CFF/CEF font driver
-                  cid        # PostScript CID-keyed font driver
-                  gzip       # support for gzip-compressed PCF font
-                  lzw        # support for LZW-compressed PCF font
-                  pcf        # PCF font driver
-                  pfr        # PFR/TrueDoc font driver
-                  psaux      # common PostScript routines module
-                  pshinter   # PostScript hinter module
-                  psnames    # PostScript names handling
-                  raster     # monochrome rasterizer
-                  sfnt       # SFNT-based format support routines
-                  smooth     # anti-aliased rasterizer
-                  truetype   # TrueType font driver
-                  type1      # PostScript Type 1 font driver
-                  type42     # PostScript Type 42 (embedded TrueType) driver
-                  winfonts   # Windows FON/FNT font driver
-                  ;
-
-
-# Don't touch.
-#
-FT2_INCLUDE  = $(FT2_BUILD_INCLUDE)
-               [ FT2_SubDir $(FT2_INCLUDE_DIR) ] ;
-
-FT2_SRC      = [ FT2_SubDir $(FT2_SRC_DIR) ] ;
-
-# Location of API Reference Documentation
-#
-if $(DOC_DIR)
-{
-  DOC_DIR = $(DOCDIR:T) ;
-}
-else
-{
-  DOC_DIR = docs/reference ;
-}
-
-
-# Only used by FreeType developers.
-#
-if $(DEBUG_HINTER)
-{
-  CCFLAGS += -DDEBUG_HINTER ;
-}
-
-
-# We need `include' in the current include path in order to
-# compile any part of FreeType 2.
-#
-HDRS += $(FT2_INCLUDE) ;
-
-
-# We need to #define FT2_BUILD_LIBRARY so that our sources find the
-# internal headers
-#
-CCFLAGS += -DFT2_BUILD_LIBRARY ;
-
-# Uncomment the following line if you want to build individual source files
-# for each FreeType 2 module.  This is only useful during development, and
-# is better defined as an environment variable anyway!
-#
-# FT2_MULTI = true ;
-
-
-# The files `ftheader.h', `internal.h', and `ftserv.h' are used to define
-# macros that are later used in #include statements.  They need to be parsed
-# in order to record these definitions.
-#
-HDRMACRO  [ FT2_SubDir  $(FT2_INCLUDE_DIR) freetype config ftheader.h ] ;
-HDRMACRO  [ FT2_SubDir  $(FT2_INCLUDE_DIR) freetype internal internal.h ] ;
-HDRMACRO  [ FT2_SubDir  $(FT2_INCLUDE_DIR) freetype internal ftserv.h ] ;
-
-
-# Now include the Jamfile in `freetype2/src', used to drive the compilation
-# of each FreeType 2 component and/or module.
-#
-SubInclude  FT2_TOP $(FT2_SRC_DIR) ;
-
-# Handle the generation of the `ftexport.sym' file, which contains the list
-# of exported symbols.  This can be used on Unix by libtool.
-#
-SubInclude FT2_TOP $(FT2_SRC_DIR) tools ;
-
-rule GenExportSymbols
-{
-  local  apinames = apinames$(SUFEXE) ;
-  local  aheader ;
-  local  headers ;
-
-  for aheader in [ Glob $(2) : *.h ]
-  {
-    switch $(aheader)
-    {
-      case */ftmac.h :
-        if ( $(MAC) || $(OS) = MACOSX ) {
-          headers += $(aheader) ;
-        }
-      case *.h : headers += $(aheader) ;
-    }
-  }
-
-  LOCATE on $(1) = $(ALL_LOCATE_TARGET) ;
-
-  APINAMES on $(1) = apinames$(SUFEXE) ;
-
-  Depends            $(1) : $(apinames) $(headers) ;
-  GenExportSymbols1  $(1) : $(headers) ;
-  Clean              clean : $(1) ;
-}
-
-actions GenExportSymbols1 bind APINAMES
-{
-  $(APINAMES) $(2) > $(1)
-}
-
-GenExportSymbols  ftexport.sym : include/freetype ;
-
-# Test files (hinter debugging).  Only used by FreeType developers.
-#
-if $(DEBUG_HINTER)
-{
-  SubInclude FT2_TOP tests ;
-}
-
-rule RefDoc
-{
-  Depends  $1 : all ;
-  NotFile  $1 ;
-  Always   $1 ;
-}
-
-actions RefDoc
-{
-  python $(FT2_SRC)/tools/docmaker/docmaker.py
-         --prefix=ft2
-         --title=FreeType-2.9.1
-         --output=$(DOC_DIR)
-         $(FT2_INCLUDE)/freetype/*.h
-         $(FT2_INCLUDE)/freetype/config/*.h
-}
-
-RefDoc  refdoc ;
-
-
-# end of top Jamfile
diff --git a/Jamrules b/Jamrules
deleted file mode 100644
index bdd04bc..0000000
--- a/Jamrules
+++ /dev/null
@@ -1,71 +0,0 @@
-# FreeType 2 JamRules.
-#
-# Copyright 2001-2018 by
-# David Turner, Robert Wilhelm, and Werner Lemberg.
-#
-# This file is part of the FreeType project, and may only be used, modified,
-# and distributed under the terms of the FreeType project license,
-# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
-# indicate that you have read the license and understand and accept it
-# fully.
-
-
-# This file contains the Jam rules needed to build the FreeType 2 library.
-# It is shared by all Jamfiles and is included only once in the build
-# process.
-#
-
-
-# Call SubDirHdrs on a list of directories.
-#
-rule AddSubDirHdrs
-{
-  local x ;
-
-  for x in $(<)
-  {
-    SubDirHdrs $(x) ;
-  }
-}
-
-
-# Determine prefix of library file.  We must use "libxxxxx" on Unix systems,
-# while all other simply use the real name.
-#
-if $(UNIX)
-{
-  LIBPREFIX ?= lib ;
-}
-else
-{
-  LIBPREFIX ?= "" ;
-}
-
-# FT2_TOP contains the location of the FreeType source directory.  You can
-# set it to a specific value if you want to compile the library as part of a
-# larger project.
-#
-FT2_TOP ?= $(DOT) ;
-
-# Define a new rule used to declare a sub directory of the Nirvana source
-# tree.
-#
-rule FT2_SubDir
-{
-  if $(FT2_TOP) = $(DOT)
-  {
-    return [ FDirName  $(<) ] ;
-  }
-  else
-  {
-    return [ FDirName  $(FT2_TOP) $(<) ] ;
-  }
-}
-
-# We also set ALL_LOCATE_TARGET in order to place all object and library
-# files in "objs".
-#
-ALL_LOCATE_TARGET ?= [ FT2_SubDir  objs ] ;
-
-
-# end of Jamrules
diff --git a/Makefile b/Makefile
index 0c7ee0e..e1d1469 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/README b/README
index c23b99e..e4c8cf1 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
-  FreeType 2.9.1
-  ==============
+  FreeType 2.10.4
+  ===============
 
   Homepage: https://www.freetype.org
 
@@ -15,22 +15,25 @@
   Read the  files `docs/INSTALL*'  for installation  instructions; see
   the file `docs/LICENSE.TXT' for the available licenses.
 
-  The FreeType 2 API reference is located in `docs/reference'; use the
-  file   `ft2-toc.html'   as   the   top  entry   point.    Additional
-  documentation is available as a separate package from our sites.  Go
-  to
+  The FreeType  2 API  reference is located  in `docs/reference/site';
+  use the file `index.html' as the top entry point.  [Please note that
+  currently the  search function  for locally  installed documentation
+  doesn't work due to cross-site scripting issues.]
+
+  Additional documentation is available as a separate package from our
+  sites.  Go to
 
     https://download.savannah.gnu.org/releases/freetype/
 
   and download one of the following files.
 
-    freetype-doc-2.9.1.tar.bz2
-    freetype-doc-2.9.1.tar.gz
-    ftdoc291.zip
+    freetype-doc-2.10.4.tar.xz
+    freetype-doc-2.10.4.tar.gz
+    ftdoc2104.zip
 
   To view the documentation online, go to
 
-    https://www.freetype.org/freetype2/documentation.html
+    https://www.freetype.org/freetype2/docs/
 
 
   Mailing Lists
@@ -64,6 +67,18 @@
   a terse message that only says `it doesn't work'.
 
 
+  Patches
+  =======
+
+  Please  submit patches  to  the `freetype-devel@nongnu.org'  mailing
+  list  --  and thank  you  in  advance  for  your work  on  improving
+  FreeType!
+
+  Details on the process can be found here:
+
+    https://www.freetype.org/developer.html#patches
+
+
   Enjoy!
 
 
@@ -71,7 +86,7 @@
 
 ----------------------------------------------------------------------
 
-Copyright 2006-2018 by
+Copyright (C) 2006-2020 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This  file is  part of  the FreeType  project, and  may only  be used,
diff --git a/README.git b/README.git
index a3d7fc0..c4f0033 100644
--- a/README.git
+++ b/README.git
@@ -37,7 +37,7 @@
 
 ----------------------------------------------------------------------
 
-Copyright 2005-2018 by
+Copyright (C) 2005-2020 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This  file is  part of  the FreeType  project, and  may only  be used,
diff --git a/autogen.sh b/autogen.sh
index ab90e64..79c4e4e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Copyright 2005-2018 by
+# Copyright (C) 2005-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/amiga/README b/builds/amiga/README
index 29e97d6..c552527 100644
--- a/builds/amiga/README
+++ b/builds/amiga/README
@@ -1,7 +1,7 @@
 
 README for the builds/amiga subdirectory.
 
-Copyright 2005-2018 by
+Copyright (C) 2005-2020 by
 Werner Lemberg and Detlef Würkner.
 
 This file is part of the FreeType project, and may only be used, modified,
@@ -26,7 +26,7 @@
 http://ragriffi.home.sprynet.com).
 
 You will also need the latest include files and amiga.lib from the
-Amiga web site (http://www.amiga.com/3.9/download/NDK3.9.lha) for
+Amiga web site (https://os.amigaworld.de/download.php?id=3) for
 AmigaOS 3.9; the generated code should work under AmigaOS 2.04 and up.
 
 To use it, call "smake assign" and then "smake" from the builds/amiga
diff --git a/builds/amiga/include/config/ftconfig.h b/builds/amiga/include/config/ftconfig.h
index 0217e0e..4976c75 100644
--- a/builds/amiga/include/config/ftconfig.h
+++ b/builds/amiga/include/config/ftconfig.h
@@ -4,7 +4,7 @@
 /*                                                                         */
 /*    Amiga-specific configuration file (specification only).              */
 /*                                                                         */
-/*  Copyright 2005-2018 by                                                 */
+/*  Copyright (C) 2005-2020 by                                             */
 /*  Werner Lemberg and Detlef Würkner.                                     */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
diff --git a/builds/amiga/include/config/ftmodule.h b/builds/amiga/include/config/ftmodule.h
index f8baab5..6035bf0 100644
--- a/builds/amiga/include/config/ftmodule.h
+++ b/builds/amiga/include/config/ftmodule.h
@@ -4,7 +4,7 @@
 /*                                                                         */
 /*    Amiga-specific FreeType module selection.                            */
 /*                                                                         */
-/*  Copyright 2005-2018 by                                                 */
+/*  Copyright (C) 2005-2020 by                                             */
 /*  Werner Lemberg and Detlef Würkner.                                     */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
@@ -137,8 +137,6 @@
 
 #ifdef FT_USE_SMOOTH
 FT_USE_MODULE( FT_Renderer_Class, ft_smooth_renderer_class )
-FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcd_renderer_class )
-FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcdv_renderer_class )
 #endif
 
 #ifdef FT_USE_OTV
diff --git a/builds/amiga/makefile b/builds/amiga/makefile
index 6a7700a..50315f3 100644
--- a/builds/amiga/makefile
+++ b/builds/amiga/makefile
@@ -5,7 +5,7 @@
 #
 
 
-# Copyright 2005-2018 by
+# Copyright (C) 2005-2020 by
 # Werner Lemberg and Detlef Würkner.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/amiga/makefile.os4 b/builds/amiga/makefile.os4
index 0d340cf..cd5151c 100644
--- a/builds/amiga/makefile.os4
+++ b/builds/amiga/makefile.os4
@@ -4,7 +4,7 @@
 #
 
 
-# Copyright 2005-2018 by
+# Copyright (C) 2005-2020 by
 # Werner Lemberg and Detlef Würkner.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/amiga/smakefile b/builds/amiga/smakefile
index f5de308..fa41676 100644
--- a/builds/amiga/smakefile
+++ b/builds/amiga/smakefile
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 2005-2018 by
+# Copyright (C) 2005-2020 by
 # Werner Lemberg and Detlef Würkner.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/amiga/src/base/ftdebug.c b/builds/amiga/src/base/ftdebug.c
index f3ba48c..6510d20 100644
--- a/builds/amiga/src/base/ftdebug.c
+++ b/builds/amiga/src/base/ftdebug.c
@@ -1,76 +1,78 @@
-/***************************************************************************/
-/*                                                                         */
-/*  ftdebug.c                                                              */
-/*                                                                         */
-/*    Debugging and logging component for amiga (body).                    */
-/*                                                                         */
-/*  Copyright 1996-2018 by                                                 */
-/*  David Turner, Robert Wilhelm, Werner Lemberg and Detlef Würkner.       */
-/*                                                                         */
-/*  This file is part of the FreeType project, and may only be used,       */
-/*  modified, and distributed under the terms of the FreeType project      */
-/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
-/*  this file you indicate that you have read the license and              */
-/*  understand and accept it fully.                                        */
-/*                                                                         */
-/***************************************************************************/
+/****************************************************************************
+ *
+ * ftdebug.c
+ *
+ *   Debugging and logging component for amiga (body).
+ *
+ * Copyright (C) 1996-2020 by
+ * David Turner, Robert Wilhelm, Werner Lemberg, and Detlef Wuerkner.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT.  By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
 
 
-  /*************************************************************************/
-  /*                                                                       */
-  /* This component contains various macros and functions used to ease the */
-  /* debugging of the FreeType engine.  Its main purpose is in assertion   */
-  /* checking, tracing, and error detection.                               */
-  /*                                                                       */
-  /* There are now three debugging modes:                                  */
-  /*                                                                       */
-  /* - trace mode                                                          */
-  /*                                                                       */
-  /*   Error and trace messages are sent to the log file (which can be the */
-  /*   standard error output).                                             */
-  /*                                                                       */
-  /* - error mode                                                          */
-  /*                                                                       */
-  /*   Only error messages are generated.                                  */
-  /*                                                                       */
-  /* - release mode:                                                       */
-  /*                                                                       */
-  /*   No error message is sent or generated.  The code is free from any   */
-  /*   debugging parts.                                                    */
-  /*                                                                       */
-  /*************************************************************************/
+  /**************************************************************************
+   *
+   * This component contains various macros and functions used to ease the
+   * debugging of the FreeType engine.  Its main purpose is in assertion
+   * checking, tracing, and error detection.
+   *
+   * There are now three debugging modes:
+   *
+   * - trace mode
+   *
+   *   Error and trace messages are sent to the log file (which can be the
+   *   standard error output).
+   *
+   * - error mode
+   *
+   *   Only error messages are generated.
+   *
+   * - release mode:
+   *
+   *   No error message is sent or generated.  The code is free from any
+   *   debugging parts.
+   *
+   */
 
 
   /*
-   * Based on the default ftdebug.c,
-   * replaced vprintf() with KVPrintF(),
-   * commented out exit(),
-   * replaced getenv() with GetVar().
+   * Based on the default `ftdebug.c' file,
+   * replaced `vprintf' with `KVPrintF',
+   * commented out `exit',
+   * replaced `getenv' with `GetVar'.
    */
 
 #include <exec/types.h>
 #include <utility/tagitem.h>
 #include <dos/exall.h>
 #include <dos/var.h>
+
 #define __NOLIBBASE__
 #define __NOLOBALIFACE__
 #define __USE_INLINE__
+
 #include <proto/dos.h>
 #include <clib/debug_protos.h>
 
 #ifndef __amigaos4__
-  extern struct Library *DOSBase;
+  extern struct Library*  DOSBase;
 #else
-  extern struct DOSIFace *IDOS;
+  extern struct DOSIFace*  IDOS;
 #endif
 
 
 #include <ft2build.h>
-#include FT_FREETYPE_H
-#include FT_INTERNAL_DEBUG_H
+#include <freetype/freetype.h>
+#include <freetype/internal/ftdebug.h>
 
 
-#if defined( FT_DEBUG_LEVEL_ERROR )
+#ifdef FT_DEBUG_LEVEL_ERROR
 
   /* documentation is in ftdebug.h */
 
@@ -100,7 +102,7 @@
     KVPrintF( fmt, ap );
     va_end( ap );
 
-/*  exit( EXIT_FAILURE ); */
+    /* exit( EXIT_FAILURE ); */
   }
 
 
@@ -111,9 +113,19 @@
             int          line,
             const char*  file )
   {
+#if 0
+    /* activating the code in this block makes FreeType very chatty */
+    fprintf( stderr,
+             "%s:%d: error 0x%02x: %s\n",
+             file,
+             line,
+             error,
+             FT_Error_String( error ) );
+#else
     FT_UNUSED( error );
     FT_UNUSED( line );
     FT_UNUSED( file );
+#endif
 
     return 0;
   }
@@ -124,16 +136,23 @@
 
 #ifdef FT_DEBUG_LEVEL_TRACE
 
-  /* array of trace levels, initialized to 0 */
-  int  ft_trace_levels[trace_count];
+  /* array of trace levels, initialized to 0; */
+  /* this gets adjusted at run-time           */
+  static int  ft_trace_levels_enabled[trace_count];
 
+  /* array of trace levels, always initialized to 0 */
+  static int  ft_trace_levels_disabled[trace_count];
+
+  /* a pointer to either `ft_trace_levels_enabled' */
+  /* or `ft_trace_levels_disabled'                 */
+  int*  ft_trace_levels;
 
   /* define array of trace toggle names */
 #define FT_TRACE_DEF( x )  #x ,
 
   static const char*  ft_trace_toggles[trace_count + 1] =
   {
-#include FT_INTERNAL_TRACE_H
+#include <freetype/internal/fttrace.h>
     NULL
   };
 
@@ -164,33 +183,51 @@
   }
 
 
-  /*************************************************************************/
-  /*                                                                       */
-  /* Initialize the tracing sub-system.  This is done by retrieving the    */
-  /* value of the `FT2_DEBUG' environment variable.  It must be a list of  */
-  /* toggles, separated by spaces, `;', or `,'.  Example:                  */
-  /*                                                                       */
-  /*    export FT2_DEBUG="any:3 memory:7 stream:5"                         */
-  /*                                                                       */
-  /* This requests that all levels be set to 3, except the trace level for */
-  /* the memory and stream components which are set to 7 and 5,            */
-  /* respectively.                                                         */
-  /*                                                                       */
-  /* See the file `include/freetype/internal/fttrace.h' for details of the */
-  /* available toggle names.                                               */
-  /*                                                                       */
-  /* The level must be between 0 and 7; 0 means quiet (except for serious  */
-  /* runtime errors), and 7 means _very_ verbose.                          */
-  /*                                                                       */
+  /* documentation is in ftdebug.h */
+
+  FT_BASE_DEF( void )
+  FT_Trace_Disable( void )
+  {
+    ft_trace_levels = ft_trace_levels_disabled;
+  }
+
+
+  /* documentation is in ftdebug.h */
+
+  FT_BASE_DEF( void )
+  FT_Trace_Enable( void )
+  {
+    ft_trace_levels = ft_trace_levels_enabled;
+  }
+
+
+  /**************************************************************************
+   *
+   * Initialize the tracing sub-system.  This is done by retrieving the
+   * value of the `FT2_DEBUG' environment variable.  It must be a list of
+   * toggles, separated by spaces, `;', or `,'.  Example:
+   *
+   *   export FT2_DEBUG="any:3 memory:7 stream:5"
+   *
+   * This requests that all levels be set to 3, except the trace level for
+   * the memory and stream components which are set to 7 and 5,
+   * respectively.
+   *
+   * See the file `include/freetype/internal/fttrace.h' for details of
+   * the available toggle names.
+   *
+   * The level must be between 0 and 7; 0 means quiet (except for serious
+   * runtime errors), and 7 means _very_ verbose.
+   */
   FT_BASE_DEF( void )
   ft_debug_init( void )
   {
-/*  const char*  ft2_debug = getenv( "FT2_DEBUG" ); */
+    /* const char*  ft2_debug = ft_getenv( "FT2_DEBUG" ); */
     char         buf[256];
     const char*  ft2_debug = &buf[0];
 
 
-/*  if ( ft2_debug ) */
+    /* if ( ft2_debug ) */
     if ( GetVar( "FT2_DEBUG", (STRPTR)ft2_debug, 256, LV_VAR ) > 0 )
     {
       const char*  p = ft2_debug;
@@ -250,14 +287,16 @@
             {
               /* special case for `any' */
               for ( n = 0; n < trace_count; n++ )
-                ft_trace_levels[n] = level;
+                ft_trace_levels_enabled[n] = level;
             }
             else
-              ft_trace_levels[found] = level;
+              ft_trace_levels_enabled[found] = level;
           }
         }
       }
     }
+
+    ft_trace_levels = ft_trace_levels_enabled;
   }
 
 
@@ -287,11 +326,23 @@
   }
 
 
+  FT_BASE_DEF( void )
+  FT_Trace_Disable( void )
+  {
+    /* nothing */
+  }
+
+
+  /* documentation is in ftdebug.h */
+
+  FT_BASE_DEF( void )
+  FT_Trace_Enable( void )
+  {
+    /* nothing */
+  }
+
+
 #endif /* !FT_DEBUG_LEVEL_TRACE */
 
-/*
-Local Variables:
-coding: latin-1
-End:
-*/
+
 /* END */
diff --git a/builds/amiga/src/base/ftsystem.c b/builds/amiga/src/base/ftsystem.c
index babaeeb..1dfbd66 100644
--- a/builds/amiga/src/base/ftsystem.c
+++ b/builds/amiga/src/base/ftsystem.c
@@ -4,7 +4,7 @@
 /*                                                                         */
 /*    Amiga-specific FreeType low-level system interface (body).           */
 /*                                                                         */
-/*  Copyright 1996-2018 by                                                 */
+/*  Copyright (C) 1996-2020 by                                             */
 /*  David Turner, Robert Wilhelm, Werner Lemberg and Detlef Würkner.       */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
@@ -96,10 +96,10 @@
 
 #include <ft2build.h>
 #include FT_CONFIG_CONFIG_H
-#include FT_INTERNAL_DEBUG_H
-#include FT_SYSTEM_H
-#include FT_ERRORS_H
-#include FT_TYPES_H
+#include <freetype/internal/ftdebug.h>
+#include <freetype/ftsystem.h>
+#include <freetype/fterrors.h>
+#include <freetype/fttypes.h>
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -235,7 +235,7 @@
   /* messages during execution.                                            */
   /*                                                                       */
 #undef  FT_COMPONENT
-#define FT_COMPONENT  trace_io
+#define FT_COMPONENT  io
 
   /* We use the macro STREAM_FILE for convenience to extract the       */
   /* system-specific stream handle from a given FreeType stream object */
diff --git a/builds/ansi/ansi-def.mk b/builds/ansi/ansi-def.mk
index 1484f96..9642098 100644
--- a/builds/ansi/ansi-def.mk
+++ b/builds/ansi/ansi-def.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
@@ -19,6 +19,9 @@
 BUILD_DIR := $(TOP_DIR)/builds/ansi
 PLATFORM  := ansi
 
+# This is used for `make refdoc' and `make refdoc-venv'
+#
+BIN := bin
 
 # The directory where all library files are placed.
 #
diff --git a/builds/ansi/ansi.mk b/builds/ansi/ansi.mk
index c06732c..c244803 100644
--- a/builds/ansi/ansi.mk
+++ b/builds/ansi/ansi.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/beos/beos-def.mk b/builds/beos/beos-def.mk
index 89c54dd..5ae7ed8 100644
--- a/builds/beos/beos-def.mk
+++ b/builds/beos/beos-def.mk
@@ -5,7 +5,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
@@ -21,6 +21,9 @@
 BUILD_DIR := $(TOP_DIR)/builds/beos
 PLATFORM  := beos
 
+# This is used for `make refdoc' and `make refdoc-venv'
+#
+BIN := bin
 
 # The directory where all library files are placed.
 #
diff --git a/builds/beos/beos.mk b/builds/beos/beos.mk
index 619ceaf..1a082c1 100644
--- a/builds/beos/beos.mk
+++ b/builds/beos/beos.mk
@@ -2,7 +2,7 @@
 # FreeType 2 configuration rules for a BeOS system
 #
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/beos/detect.mk b/builds/beos/detect.mk
index 82f6205..5b92512 100644
--- a/builds/beos/detect.mk
+++ b/builds/beos/detect.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/cmake/FindBrotliDec.cmake b/builds/cmake/FindBrotliDec.cmake
new file mode 100644
index 0000000..7c484c7
--- /dev/null
+++ b/builds/cmake/FindBrotliDec.cmake
@@ -0,0 +1,51 @@
+# FindBrotliDec.cmake
+#
+# Copyright (C) 2019-2020 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# Written by Werner Lemberg <wl@gnu.org>
+#
+# This file is part of the FreeType project, and may only be used, modified,
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+#
+#
+# Try to find libbrotlidec include and library directories.
+#
+# If found, the following variables are set.
+#
+#   BROTLIDEC_INCLUDE_DIRS
+#   BROTLIDEC_LIBRARIES
+
+include(FindPkgConfig)
+pkg_check_modules(PC_BROTLIDEC QUIET libbrotlidec)
+
+if (PC_BROTLIDEC_VERSION)
+  set(BROTLIDEC_VERSION "${PC_BROTLIDEC_VERSION}")
+endif ()
+
+
+find_path(BROTLIDEC_INCLUDE_DIRS
+  NAMES brotli/decode.h
+  HINTS ${PC_BROTLIDEC_INCLUDEDIR}
+        ${PC_BROTLIDEC_INCLUDE_DIRS}
+  PATH_SUFFIXES brotli)
+
+find_library(BROTLIDEC_LIBRARIES
+  NAMES brotlidec
+  HINTS ${PC_BROTLIDEC_LIBDIR}
+        ${PC_BROTLIDEC_LIBRARY_DIRS})
+
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(
+  brotlidec
+  REQUIRED_VARS BROTLIDEC_INCLUDE_DIRS BROTLIDEC_LIBRARIES
+  FOUND_VAR BROTLIDEC_FOUND
+  VERSION_VAR BROTLIDEC_VERSION)
+
+mark_as_advanced(
+  BROTLIDEC_INCLUDE_DIRS
+  BROTLIDEC_LIBRARIES)
diff --git a/builds/cmake/FindHarfBuzz.cmake b/builds/cmake/FindHarfBuzz.cmake
index ee0d52e..d489613 100644
--- a/builds/cmake/FindHarfBuzz.cmake
+++ b/builds/cmake/FindHarfBuzz.cmake
@@ -23,59 +23,65 @@
 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
-#
-# Try to find Harfbuzz include and library directories.
+
+
+# Try to find HarfBuzz include and library directories.
 #
 # After successful discovery, this will set for inclusion where needed:
-# HARFBUZZ_INCLUDE_DIRS - containg the HarfBuzz headers
-# HARFBUZZ_LIBRARIES - containg the HarfBuzz library
+#
+#   HARFBUZZ_INCLUDE_DIRS - containg the HarfBuzz headers
+#   HARFBUZZ_LIBRARIES    - containg the HarfBuzz library
 
 include(FindPkgConfig)
 pkg_check_modules(PC_HARFBUZZ QUIET harfbuzz)
 
 find_path(HARFBUZZ_INCLUDE_DIRS
-    NAMES hb.h
-    HINTS ${PC_HARFBUZZ_INCLUDEDIR}
-          ${PC_HARFBUZZ_INCLUDE_DIRS}
-    PATH_SUFFIXES harfbuzz
-)
+  NAMES hb.h
+  HINTS ${PC_HARFBUZZ_INCLUDEDIR}
+        ${PC_HARFBUZZ_INCLUDE_DIRS}
+  PATH_SUFFIXES harfbuzz)
 
-find_library(HARFBUZZ_LIBRARIES NAMES harfbuzz
-    HINTS ${PC_HARFBUZZ_LIBDIR}
-          ${PC_HARFBUZZ_LIBRARY_DIRS}
-)
+find_library(HARFBUZZ_LIBRARIES
+  NAMES harfbuzz
+  HINTS ${PC_HARFBUZZ_LIBDIR}
+        ${PC_HARFBUZZ_LIBRARY_DIRS})
 
 if (HARFBUZZ_INCLUDE_DIRS)
-    if (EXISTS "${HARFBUZZ_INCLUDE_DIRS}/hb-version.h")
-        file(READ "${HARFBUZZ_INCLUDE_DIRS}/hb-version.h" _harfbuzz_version_content)
+  if (EXISTS "${HARFBUZZ_INCLUDE_DIRS}/hb-version.h")
+    file(READ "${HARFBUZZ_INCLUDE_DIRS}/hb-version.h" _harfbuzz_version_content)
 
-        string(REGEX MATCH "#define +HB_VERSION_STRING +\"([0-9]+\\.[0-9]+\\.[0-9]+)\"" _dummy "${_harfbuzz_version_content}")
-        set(HARFBUZZ_VERSION "${CMAKE_MATCH_1}")
-    endif ()
+    string(REGEX MATCH
+           "#define +HB_VERSION_STRING +\"([0-9]+\\.[0-9]+\\.[0-9]+)\""
+           _dummy "${_harfbuzz_version_content}")
+    set(HARFBUZZ_VERSION "${CMAKE_MATCH_1}")
+  endif ()
 endif ()
 
 if ("${harfbuzz_FIND_VERSION}" VERSION_GREATER "${HARFBUZZ_VERSION}")
-    message(FATAL_ERROR "Required version (" ${harfbuzz_FIND_VERSION} ") is higher than found version (" ${HARFBUZZ_VERSION} ")")
+  message(FATAL_ERROR
+    "Required version (" ${harfbuzz_FIND_VERSION} ")"
+    " is higher than found version (" ${HARFBUZZ_VERSION} ")")
 endif ()
 
 include(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(
-    harfbuzz 
-        REQUIRED_VARS HARFBUZZ_INCLUDE_DIRS HARFBUZZ_LIBRARIES
-        VERSION_VAR HARFBUZZ_VERSION)
+find_package_handle_standard_args(
+  harfbuzz
+  REQUIRED_VARS HARFBUZZ_INCLUDE_DIRS HARFBUZZ_LIBRARIES
+  VERSION_VAR HARFBUZZ_VERSION)
 
 mark_as_advanced(
-    HARFBUZZ_INCLUDE_DIRS
-    HARFBUZZ_LIBRARIES
-)
+  HARFBUZZ_INCLUDE_DIRS
+  HARFBUZZ_LIBRARIES)
 
-# Allows easy linking as in 
+# Allow easy linking as in
+#
 #   target_link_libraries(freetype PRIVATE Harfbuzz::Harfbuzz)
+#
 if (NOT CMAKE_VERSION VERSION_LESS 3.1)
-    if (HARFBUZZ_FOUND AND NOT TARGET Harfbuzz::Harfbuzz)
-        add_library(Harfbuzz::Harfbuzz INTERFACE IMPORTED)
-        set_target_properties(
-            Harfbuzz::Harfbuzz PROPERTIES
-                INTERFACE_INCLUDE_DIRECTORIES "${HARFBUZZ_INCLUDE_DIRS}")
-    endif ()
+  if (HARFBUZZ_FOUND AND NOT TARGET Harfbuzz::Harfbuzz)
+    add_library(Harfbuzz::Harfbuzz INTERFACE IMPORTED)
+    set_target_properties(
+        Harfbuzz::Harfbuzz PROPERTIES
+          INTERFACE_INCLUDE_DIRECTORIES "${HARFBUZZ_INCLUDE_DIRS}")
+  endif ()
 endif ()
diff --git a/builds/cmake/iOS.cmake b/builds/cmake/iOS.cmake
index c6da70c..6f46836 100644
--- a/builds/cmake/iOS.cmake
+++ b/builds/cmake/iOS.cmake
@@ -1,6 +1,6 @@
 # iOS.cmake
 #
-# Copyright 2014-2018 by
+# Copyright (C) 2014-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # Written by David Wimsey <david@wimsey.us>
diff --git a/builds/cmake/testbuild.sh b/builds/cmake/testbuild.sh
index 1fa3a18..cc67abd 100755
--- a/builds/cmake/testbuild.sh
+++ b/builds/cmake/testbuild.sh
@@ -1,6 +1,6 @@
 #!/bin/sh -e
 
-# Copyright 2015-2018 by
+# Copyright (C) 2015-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
@@ -93,7 +93,7 @@
 #include <stdlib.h>
 
 #include <ft2build.h>
-#include FT_FREETYPE_H
+#include <freetype/freetype.h>
 
 
 FT_Library library;
diff --git a/builds/compiler/ansi-cc.mk b/builds/compiler/ansi-cc.mk
index 99fe8cb..78b13a4 100644
--- a/builds/compiler/ansi-cc.mk
+++ b/builds/compiler/ansi-cc.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/compiler/bcc-dev.mk b/builds/compiler/bcc-dev.mk
index 8d67fa1..5f6f161 100644
--- a/builds/compiler/bcc-dev.mk
+++ b/builds/compiler/bcc-dev.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/compiler/bcc.mk b/builds/compiler/bcc.mk
index 02d4833..f5e2e8a 100644
--- a/builds/compiler/bcc.mk
+++ b/builds/compiler/bcc.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/compiler/emx.mk b/builds/compiler/emx.mk
index 2926b11..bbb7604 100644
--- a/builds/compiler/emx.mk
+++ b/builds/compiler/emx.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 2003-2018 by
+# Copyright (C) 2003-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/compiler/gcc-dev.mk b/builds/compiler/gcc-dev.mk
index 48d2848..95b5f50 100644
--- a/builds/compiler/gcc-dev.mk
+++ b/builds/compiler/gcc-dev.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/compiler/gcc.mk b/builds/compiler/gcc.mk
index 9c77239..63cd93b 100644
--- a/builds/compiler/gcc.mk
+++ b/builds/compiler/gcc.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/compiler/intelc.mk b/builds/compiler/intelc.mk
index e9236d3..b3c69b0 100644
--- a/builds/compiler/intelc.mk
+++ b/builds/compiler/intelc.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/compiler/unix-lcc.mk b/builds/compiler/unix-lcc.mk
index 09fffeb..26f8e7b 100644
--- a/builds/compiler/unix-lcc.mk
+++ b/builds/compiler/unix-lcc.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/compiler/visualage.mk b/builds/compiler/visualage.mk
index 10299da..4a8c8ac 100644
--- a/builds/compiler/visualage.mk
+++ b/builds/compiler/visualage.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/compiler/visualc.mk b/builds/compiler/visualc.mk
index 74f498b..a9cf71d 100644
--- a/builds/compiler/visualc.mk
+++ b/builds/compiler/visualc.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/compiler/watcom.mk b/builds/compiler/watcom.mk
index e455922..43a9e06 100644
--- a/builds/compiler/watcom.mk
+++ b/builds/compiler/watcom.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/compiler/win-lcc.mk b/builds/compiler/win-lcc.mk
index 1356c1c..00d9d31 100644
--- a/builds/compiler/win-lcc.mk
+++ b/builds/compiler/win-lcc.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/detect.mk b/builds/detect.mk
index eb7f797..94627fc 100644
--- a/builds/detect.mk
+++ b/builds/detect.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
@@ -120,7 +120,7 @@
 	$(info `$(CONFIG_MK)' from this directory then read the INSTALL file for help.)
 	$(info )
 	$(info Otherwise, simply type `$(MAKE)' again to build the library,)
-	$(info or `$(MAKE) refdoc' to build the API reference (this needs python >= 2.6).)
+	$(info or `$(MAKE) refdoc' to build the API reference (this needs Python >= 3.5).)
 	$(info )
 	@$(COPY) $(subst /,$(SEP),$(CONFIG_RULES) $(CONFIG_MK))
 
diff --git a/builds/dos/detect.mk b/builds/dos/detect.mk
index 0201f7b..f598794 100644
--- a/builds/dos/detect.mk
+++ b/builds/dos/detect.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
@@ -80,36 +80,46 @@
   ifneq ($(findstring emx,$(MAKECMDGOALS)),)        # EMX gcc
     CONFIG_FILE := dos-emx.mk
     CC          := gcc
-    emx: setup
+
     .PHONY: emx
+    emx: setup
+	    @cd .
   endif
 
   ifneq ($(findstring turboc,$(MAKECMDGOALS)),)     # Turbo C
     CONFIG_FILE := dos-tcc.mk
     CC          := tcc
-    turboc: setup
+
     .PHONY: turboc
+    turboc: setup
+	    @cd .
   endif
 
   ifneq ($(findstring watcom,$(MAKECMDGOALS)),)     # Watcom C/C++
     CONFIG_FILE := dos-wat.mk
     CC          := wcc386
-    watcom: setup
+
     .PHONY: watcom
+    watcom: setup
+	    @cd .
   endif
 
   ifneq ($(findstring borlandc,$(MAKECMDGOALS)),)   # Borland C/C++ 32-bit
     CONFIG_FILE := dos-bcc.mk
     CC          := bcc32
-    borlandc: setup
+
     .PHONY: borlandc
+    borlandc: setup
+	    @cd .
   endif
 
   ifneq ($(findstring borlandc16,$(MAKECMDGOALS)),) # Borland C/C++ 16-bit
     CONFIG_FILE := dos-bcc.mk
     CC          := bcc
-    borlandc16: setup
+
     .PHONY: borlandc16
+    borlandc16: setup
+	    @cd .
   endif
 
   ifneq ($(findstring bash,$(SHELL)),)              # check for bash
diff --git a/builds/dos/dos-def.mk b/builds/dos/dos-def.mk
index cb1154d..067d1d4 100644
--- a/builds/dos/dos-def.mk
+++ b/builds/dos/dos-def.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
@@ -19,6 +19,9 @@
 BUILD_DIR := $(TOP_DIR)/builds/dos
 PLATFORM  := dos
 
+# This is used for `make refdoc' and `make refdoc-venv'
+#
+BIN := Scripts
 
 # The executable file extension (for tools), *with* leading dot.
 #
diff --git a/builds/dos/dos-emx.mk b/builds/dos/dos-emx.mk
index dedcc3f..5173208 100644
--- a/builds/dos/dos-emx.mk
+++ b/builds/dos/dos-emx.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 2003-2018 by
+# Copyright (C) 2003-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/dos/dos-gcc.mk b/builds/dos/dos-gcc.mk
index 53099ab..638892d 100644
--- a/builds/dos/dos-gcc.mk
+++ b/builds/dos/dos-gcc.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/dos/dos-wat.mk b/builds/dos/dos-wat.mk
index 1bd00e7..4e39d21 100644
--- a/builds/dos/dos-wat.mk
+++ b/builds/dos/dos-wat.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 2003-2018 by
+# Copyright (C) 2003-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/exports.mk b/builds/exports.mk
index 59fe31a..eba9668 100644
--- a/builds/exports.mk
+++ b/builds/exports.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 2005-2018 by
+# Copyright (C) 2005-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/freetype.mk b/builds/freetype.mk
index 6f68a0f..1d7eeb6 100644
--- a/builds/freetype.mk
+++ b/builds/freetype.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
@@ -75,7 +75,7 @@
 # The targets `objects' and `library' are defined at the end of this
 # Makefile after all other rules have been included.
 #
-.PHONY: single multi objects library refdoc
+.PHONY: single multi objects library refdoc refdoc-venv
 
 # default target -- build single objects and library
 #
@@ -104,7 +104,7 @@
 
 # The documentation directory.
 #
-DOC_DIR ?= $(TOP_DIR)/docs/reference
+DOC_DIR ?= $(TOP_DIR)/docs
 
 # The final name of the library file.
 #
@@ -126,12 +126,14 @@
 
 INCLUDE_FLAGS := $(INCLUDES:%=$I%)
 
+# For a development build, we assume that the external library dependencies
+# defined in `ftoption.h' are fulfilled, so we directly access the necessary
+# include directory information using `pkg-config'.
+#
 ifdef DEVEL_DIR
-  # We assume that all library dependencies for FreeType are fulfilled for a
-  # development build, so we directly access the necessary include directory
-  # information using `pkg-config'.
-  INCLUDE_FLAGS += $(shell pkg-config --cflags libpng \
-                                               harfbuzz )
+  INCLUDE_FLAGS += $(shell pkg-config --cflags libpng)
+  INCLUDE_FLAGS += $(shell pkg-config --cflags harfbuzz)
+  INCLUDE_FLAGS += $(shell pkg-config --cflags libbrotlidec)
 endif
 
 
@@ -146,25 +148,13 @@
 # FreeType.  This is required to let our sources include the internal
 # headers (something forbidden by clients).
 #
-# Finally, we define FT_CONFIG_MODULES_H so that the compiler uses the
-# generated version of `ftmodule.h' in $(OBJ_DIR).  If there is an
-# `ftoption.h' files in $(OBJ_DIR), define FT_CONFIG_OPTIONS_H too.
-#
-ifneq ($(wildcard $(OBJ_DIR)/ftoption.h),)
-  FTOPTION_H    := $(OBJ_DIR)/ftoption.h
-  FTOPTION_FLAG := $DFT_CONFIG_OPTIONS_H="<ftoption.h>"
-else ifneq ($(wildcard $(BUILD_DIR)/ftoption.h),)
-  FTOPTION_H    := $(BUILD_DIR)/ftoption.h
-  FTOPTION_FLAG := $DFT_CONFIG_OPTIONS_H="<ftoption.h>"
-endif
-
 # `CPPFLAGS' might be specified by the user in the environment.
 #
 FT_CFLAGS  = $(CPPFLAGS) \
              $(CFLAGS) \
-             $DFT2_BUILD_LIBRARY \
-             $DFT_CONFIG_MODULES_H="<ftmodule.h>" \
-             $(FTOPTION_FLAG)
+             $DFT2_BUILD_LIBRARY
+
+FT_COMPILE := $(CC) $(ANSIFLAGS) $(INCLUDE_FLAGS) $(FT_CFLAGS)
 
 
 # Include the `exports' rules file.
@@ -179,11 +169,17 @@
 
 # Define $(PUBLIC_H) as the list of all public header files located in
 # `$(TOP_DIR)/include/freetype'.  $(INTERNAL_H), and $(CONFIG_H) are defined
-# similarly.
+# similarly.  $(FTOPTION_H) is the option file used in the compilation.
 #
 # This is used to simplify the dependency rules -- if one of these files
 # changes, the whole library is recompiled.
 #
+ifneq ($(wildcard $(OBJ_DIR)/ftoption.h),)
+  FTOPTION_H    := $(OBJ_DIR)/ftoption.h
+else ifneq ($(wildcard $(BUILD_DIR)/ftoption.h),)
+  FTOPTION_H    := $(BUILD_DIR)/ftoption.h
+endif
+
 PUBLIC_H   := $(wildcard $(PUBLIC_DIR)/*.h)
 INTERNAL_H := $(wildcard $(INTERNAL_DIR)/*.h) \
               $(wildcard $(SERVICES_DIR)/*.h)
@@ -196,8 +192,6 @@
 FREETYPE_H := $(PUBLIC_H) $(INTERNAL_H) $(CONFIG_H) $(DEVEL_H)
 
 
-FT_COMPILE := $(CC) $(ANSIFLAGS) $(INCLUDE_FLAGS) $(FT_CFLAGS)
-
 # ftsystem component
 #
 FTSYS_SRC ?= $(BASE_DIR)/ftsystem.c
@@ -289,18 +283,51 @@
 
 library: $(PROJECT_LIBRARY)
 
-
-# Option `-B' disables generation of .pyc files (available since python 2.6)
+# Run `docwriter' in the current Python environment.
 #
-refdoc:
-	python -B $(SRC_DIR)/tools/docmaker/docmaker.py \
-                  --prefix=ft2                          \
-                  --title=FreeType-$(version)           \
-                  --output=$(DOC_DIR)                   \
-                  $(PUBLIC_DIR)/*.h                     \
-                  $(PUBLIC_DIR)/config/*.h              \
-                  $(PUBLIC_DIR)/cache/*.h
+PYTHON ?= python
 
+refdoc:
+	@echo Running docwriter...
+	$(PYTHON) -m docwriter \
+                  --prefix=ft2 \
+                  --title=FreeType-$(version) \
+                  --site=reference \
+                  --output=$(DOC_DIR) \
+                  $(PUBLIC_DIR)/*.h \
+                  $(PUBLIC_DIR)/config/*.h \
+                  $(PUBLIC_DIR)/cache/*.h
+	@echo Building static site...
+	cd $(DOC_DIR) && mkdocs build
+	@echo Done.
+
+# Variables for running `refdoc' with Python's `virtualenv'.  The
+# environment is created in `DOC_DIR/env' and is gitignored.
+#
+# We still need to cd into `DOC_DIR' to build `mkdocs' because paths in
+# `mkdocs.yml' are relative to the current working directory.
+#
+VENV_NAME  := env
+VENV_DIR   := $(DOC_DIR)$(SEP)$(VENV_NAME)
+ENV_PYTHON := $(VENV_DIR)$(SEP)$(BIN)$(SEP)$(PYTHON)
+
+refdoc-venv:
+	@echo Setting up virtualenv for Python...
+	virtualenv --python=$(PYTHON) $(VENV_DIR)
+	@echo Installing docwriter...
+	$(ENV_PYTHON) -m pip install docwriter
+	@echo Running docwriter...
+	$(ENV_PYTHON) -m docwriter \
+                      --prefix=ft2 \
+                      --title=FreeType-$(version) \
+                      --site=reference \
+                      --output=$(DOC_DIR) \
+                      $(PUBLIC_DIR)/*.h \
+                      $(PUBLIC_DIR)/config/*.h \
+                      $(PUBLIC_DIR)/cache/*.h
+	@echo Building static site...
+	cd $(DOC_DIR) && $(VENV_NAME)$(SEP)$(BIN)$(SEP)python -m mkdocs build
+	@echo Done.
 
 .PHONY: clean_project_std distclean_project_std
 
diff --git a/builds/link_dos.mk b/builds/link_dos.mk
index 3b0e8da..c1ed150 100644
--- a/builds/link_dos.mk
+++ b/builds/link_dos.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/link_std.mk b/builds/link_std.mk
index 8ba5e64..940e674 100644
--- a/builds/link_std.mk
+++ b/builds/link_std.mk
@@ -3,7 +3,7 @@
 #
 
 
-# Copyright 1996-2018 by
+# Copyright (C) 1996-2020 by
 # David Turner, Robert Wilhelm, and Werner Lemberg.
 #
 # This file is part of the FreeType project, and may only be used, modified,
diff --git a/builds/mac/README b/builds/mac/README
index f58e47d..092487a 100644
--- a/builds/mac/README
+++ b/builds/mac/README
@@ -46,7 +46,7 @@
 
   Required files are downloadable from:
 
-      http://developer.apple.com/tools/mpw-tools/index.html
+      http://macintoshgarden.org/apps/macintosh-programmers-workshop
 
   Also you can find documents how to update by MPW-PR.
 
@@ -54,7 +54,7 @@
   skeletons. Python bundled to Mac OS X is enough. For
   classic MacOS, MacPython is available:
 
-      http://homepages.cwi.nl/~jack/macpython/
+      https://homepages.cwi.nl/~jack/macpython/
 
   MPW requires all files are typed by resource fork.
   ResEdit bundled to MPW is enough. In Mac OS X,
@@ -280,7 +280,7 @@
     migrate to FSRef datatype. The big differences of FSRef
     against FSSpec are explained in Apple TechNotes 2078.
 
-    http://developer.apple.com/technotes/tn2002/tn2078.html
+    https://developer.apple.com/library/archive/technotes/tn2078/
 
     - filename length: the max length of file
     name of FSRef is 255 chars (it is limit of HFS+),
@@ -314,7 +314,7 @@
     of FontManager emulation without QuickDraw is
     explained in
 
-      http://www.gyve.org/~mpsuzuki/ats_benchmark.html
+      http://gyvern.ipc.hiroshima-u.ac.jp/~mpsuzuki/ats_benchmark.html
 
   A-3. Framework Availabilities
   -----------------------------
diff --git a/builds/mac/freetype-Info.plist b/builds/mac/freetype-Info.plist
index b3d114d..4b5d79b 100644
--- a/builds/mac/freetype-Info.plist
+++ b/builds/mac/freetype-Info.plist
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
-          "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+          "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
 
 <plist version="1.0">
 
diff --git a/builds/mac/ftmac.c b/builds/mac/ftmac.c
index c45546c..2cb3046 100644
--- a/builds/mac/ftmac.c
+++ b/builds/mac/ftmac.c
@@ -5,7 +5,7 @@
 /*    Mac FOND support.  Written by just@letterror.com.                    */
 /*  Heavily Fixed by mpsuzuki, George Williams and Sean McBride            */
 /*                                                                         */
-/*  Copyright 1996-2018 by                                                 */
+/*  Copyright (C) 1996-2020 by                                             */
 /*  Just van Rossum, David Turner, Robert Wilhelm, and Werner Lemberg.     */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
@@ -62,10 +62,9 @@
   */
 
 
-#include <ft2build.h>
-#include FT_FREETYPE_H
-#include FT_TRUETYPE_TAGS_H
-#include FT_INTERNAL_STREAM_H
+#include <freetype/freetype.h>
+#include <freetype/tttags.h>