From f8944f85f5c4c666cc14a02f977bf22ce193e0b0 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Fri, 18 Nov 2016 12:52:02 -0800 Subject: [PATCH] Use a custom Skia font manager that delegates to FontCacheLinux on Linux. (flutter/engine#3245) --- engine/src/flutter/shell/platform/linux/BUILD.gn | 3 +++ engine/src/flutter/tools/gn | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/shell/platform/linux/BUILD.gn b/engine/src/flutter/shell/platform/linux/BUILD.gn index 528516002f..29b8ef0d93 100644 --- a/engine/src/flutter/shell/platform/linux/BUILD.gn +++ b/engine/src/flutter/shell/platform/linux/BUILD.gn @@ -22,6 +22,9 @@ executable("linux") { "//lib/ftl", "//third_party/glfw", "//third_party/skia", + # Required by FontCacheLinux. Not Skia. Skia uses a custom font manager + # that delegates to us. + "//third_party:fontconfig", ] ldflags = [ diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index 63ab158abe..eeb8d00c91 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -47,9 +47,10 @@ def to_gn_args(args): gn_args = {} # Skia GN args. - gn_args['skia_use_dng_sdk'] = False # RAW image handling. - gn_args['skia_use_sfntly'] = False # PDF handling. - gn_args['skia_use_libwebp'] = False # Needs third_party/libwebp. + gn_args['skia_use_dng_sdk'] = False # RAW image handling. + gn_args['skia_use_sfntly'] = False # PDF handling. + gn_args['skia_use_libwebp'] = False # Needs third_party/libwebp. + gn_args['skia_use_fontconfig'] = False # Use the custom font manager instead. gn_args['is_debug'] = args.unoptimized gn_args['android_full_debug'] = args.target_os == 'android' and args.unoptimized