Fix SkottieKit font loading
The current build configuration (empty fontmgr) doesn't support loading custom fonts. For full/npm builds, use the custom fontmgr. Change-Id: Ifd623fdbac2d5723a04add6fc455188fb3dc96e1 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/305816 Commit-Queue: Kevin Lubick <kjlubick@google.com> Reviewed-by: Kevin Lubick <kjlubick@google.com> Auto-Submit: Florin Malita <fmalita@chromium.org>
This commit is contained in:
parent
ec788be8b5
commit
522fd1e551
@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- Include a non-empty font manager, to support loading custom fonts.
|
||||
|
||||
## [0.1.0] 2020-07-21
|
||||
|
||||
Beginning of changelog.
|
||||
|
@ -34,7 +34,8 @@ if [[ $@ == *full-build* ]]; then
|
||||
# Full Skottie with all bells and whistles.
|
||||
BUILD_TYPE="full"
|
||||
BUILD_CFG="\
|
||||
skia_enable_fontmgr_custom_empty=true \
|
||||
skia_enable_fontmgr_custom_embedded=true \
|
||||
skia_enable_fontmgr_custom_empty=false \
|
||||
skia_use_freetype=true \
|
||||
skia_use_libgifcodec=true \
|
||||
skia_use_harfbuzz=true \
|
||||
@ -53,7 +54,8 @@ else
|
||||
# Smallest usable Skottie.
|
||||
BUILD_TYPE="minimal"
|
||||
BUILD_CFG="\
|
||||
skia_enable_fontmgr_custom_empty=false \
|
||||
skia_enable_fontmgr_custom_embedded=false \
|
||||
skia_enable_fontmgr_custom_empty=true \
|
||||
skia_use_freetype=false \
|
||||
skia_use_libgifcodec=false \
|
||||
skia_use_harfbuzz=false \
|
||||
@ -156,9 +158,7 @@ echo "Compiling bitcode"
|
||||
skia_use_piex=false \
|
||||
skia_use_system_libjpeg_turbo=false \
|
||||
skia_use_vulkan=false \
|
||||
skia_enable_fontmgr_empty=true \
|
||||
skia_enable_fontmgr_custom_directory=false \
|
||||
skia_enable_fontmgr_custom_embedded=false \
|
||||
skia_enable_sksl_interpreter=false \
|
||||
\
|
||||
${GN_GPU} \
|
||||
|
Loading…
Reference in New Issue
Block a user