From 3f83f0e416f2ab8f5c334b6f32120fa8ebc8b315 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 10 Aug 2018 11:10:26 -0700 Subject: [PATCH] Update to FreeType 2.9.1 (flutter/engine#5991) Fixes https://github.com/flutter/flutter/issues/20303 --- DEPS | 2 +- engine/src/flutter/tools/licenses/lib/filesystem.dart | 1 - engine/src/flutter/tools/licenses/lib/main.dart | 6 ++++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/DEPS b/DEPS index 9ce473b9a9..fa2b75998c 100644 --- a/DEPS +++ b/DEPS @@ -350,7 +350,7 @@ deps = { Var('chromium_git') + '/external/colorama.git' + '@' + '799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8', 'src/third_party/freetype2': - Var('fuchsia_git') + '/third_party/freetype2' + '@' + 'e23a030e9b43c648249477fdf7bf5305d2cc8f59', + Var('fuchsia_git') + '/third_party/freetype2' + '@' + '3515a77bb83002b69a2957efdbcb764de4de07da', 'src/third_party/root_certificates': Var('dart_git') + '/root_certificates.git' + '@' + Var('dart_root_certificates_rev'), diff --git a/engine/src/flutter/tools/licenses/lib/filesystem.dart b/engine/src/flutter/tools/licenses/lib/filesystem.dart index be9a1f7161..4bbcc781f5 100644 --- a/engine/src/flutter/tools/licenses/lib/filesystem.dart +++ b/engine/src/flutter/tools/licenses/lib/filesystem.dart @@ -67,7 +67,6 @@ FileType identifyFile(String name, Reader reader) { if ((path.split(name).reversed.take(6).toList().reversed.join('/') == 'third_party/icu/source/extra/uconv/README') || // This specific ICU README isn't in UTF-8. (path.split(name).reversed.take(6).toList().reversed.join('/') == 'third_party/icu/source/samples/uresb/sr.txt') || // This specific sample contains non-UTF-8 data (unlike other sr.txt files). (path.split(name).reversed.take(2).toList().reversed.join('/') == 'builds/detect.mk') || // This specific freetype sample contains non-UTF-8 data (unlike other .mk files). - (path.split(name).reversed.take(4).toList().reversed.join('/') == 'third_party/freetype2/docs/FTL.TXT') || // This file has a copyright symbol in Latin1 in it (path.split(name).reversed.take(3).toList().reversed.join('/') == 'third_party/cares/cares.rc')) // This file has a copyright symbol in Latin1 in it return FileType.latin1Text; if (path.split(name).reversed.take(6).toList().reversed.join('/') == 'dart/runtime/tests/vm/dart/bad_snapshot' || // Not any particular format diff --git a/engine/src/flutter/tools/licenses/lib/main.dart b/engine/src/flutter/tools/licenses/lib/main.dart index 12db6b5595..43273d110f 100644 --- a/engine/src/flutter/tools/licenses/lib/main.dart +++ b/engine/src/flutter/tools/licenses/lib/main.dart @@ -520,9 +520,11 @@ class RepositoryFreetypeLicenseFile extends RepositoryLicenseFile { r" GPL\. Note that the FTL is incompatible with GPLv2 due to its\n" r" advertisement clause\.\n" r"\n" - r"The contributed BDF and PCF drivers come with a license similar to that\n" + r"The contributed BDF and PCF drivers come with a license similar to that\n" r"of the X Window System\. It is compatible to the above two licenses \(see\n" - r"file src/bdf/README and src/pcf/README\)\.\n" + r"file src/bdf/README and src/pcf/README\)\. The same holds for the files\n" + r"`fthash\.c' and `fthash\.h'; their code was part of the BDF driver in\n" + r"earlier FreeType versions\.\n" r"\n" r"The gzip module uses the zlib license \(see src/gzip/zlib\.h\) which too is\n" r"compatible to the above two licenses\.\n"