diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2015-08-04 10:17:08 -0700 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@google.com> | 2015-08-04 23:36:47 +0000 |
commit | 9e21eced5efacd605036be599d96974964deb09b (patch) | |
tree | 2c40e76ee21fdfd17364d647624b625e7569246a /data | |
parent | 29b8c4ab8ac4942e46a9ad4ced795bf06b9f8481 (diff) | |
download | frameworks_base-9e21eced5efacd605036be599d96974964deb09b.zip frameworks_base-9e21eced5efacd605036be599d96974964deb09b.tar.gz frameworks_base-9e21eced5efacd605036be599d96974964deb09b.tar.bz2 |
Create a special CONSTRAINED font bucket in frameworks.
This is a temporary font profile to get razor and razorg (Nexus 7,
2013 version). It's not tested thoroughly, and should not be used for
any other devices.
The CONSTRAINED profile removes Bamum, Lisu, Mandaic, Mongolian, New
Tai Lue, Syriac, Tibetan, and Vai fonts from razor[g] devices, and
switches the CJK fonts to the limited pre-Lollipop fonts.
Bug: 22929087
Change-Id: I58c1693ee45e54b429013029d236617834446811
Diffstat (limited to 'data')
-rw-r--r-- | data/fonts/Android.mk | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/data/fonts/Android.mk b/data/fonts/Android.mk index 3181017..39458f9 100644 --- a/data/fonts/Android.mk +++ b/data/fonts/Android.mk @@ -17,10 +17,13 @@ LOCAL_PATH := $(call my-dir) -# Use full Noto Sans Japanese font on non-smaller footprints +# Use full Noto Sans Japanese font on the normal footprints, but +# exclude it from SMALLER and use a subset on the CONSTRAINED ones. ifneq ($(SMALLER_FONT_FOOTPRINT),true) +ifneq ($(CONSTRAINED_FONT_FOOTPRINT),true) FONT_NOTOSANS_JP_FULL := true endif +endif ########################################## # create symlink for given font @@ -82,19 +85,32 @@ include $(BUILD_PREBUILT) extra_font_files := ################################ -# Include the DroidSansFallback subset on SMALLER_FONT_FOOTPRINT build +# Include the DroidSansFallback subset on SMALLER_FONT_FOOTPRINT builds, +# and the full font on CONSTRAINED_FONT_FOOTPRINT ones. ifeq ($(SMALLER_FONT_FOOTPRINT),true) +droidsans_fallback_src := DroidSansFallback.ttf +build_droidsans_fallback := true +endif # SMALLER_FONT_FOOTPRINT + +ifeq ($(CONSTRAINED_FONT_FOOTPRINT),true) +droidsans_fallback_src := DroidSansFallbackFull.ttf +build_droidsans_fallback := true +endif # CONSTRAINED_FONT_FOOTPRINT + +ifeq ($(build_droidsans_fallback),true) include $(CLEAR_VARS) LOCAL_MODULE := DroidSansFallback.ttf -LOCAL_SRC_FILES := $(LOCAL_MODULE) +LOCAL_SRC_FILES := $(droidsans_fallback_src) LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_TAGS := optional LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts include $(BUILD_PREBUILT) droidsans_fallback_src := -endif # SMALLER_FONT_FOOTPRINT +endif # build_droidsans_fallback + +build_droidsans_fallback := ################################ # Build the rest of font files as prebuilt. |