Skip to content

Commit

Permalink
Use a custom Skia font manager that delegates to FontCacheLinux on Li…
Browse files Browse the repository at this point in the history
…nux. (flutter#3245)
  • Loading branch information
chinmaygarde authored Nov 18, 2016
1 parent c0a4d5a commit e18302e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions shell/platform/linux/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
7 changes: 4 additions & 3 deletions tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e18302e

Please sign in to comment.