diff options
author | LuK1337 <priv.luk@gmail.com> | 2020-05-13 00:01:38 +0200 |
---|---|---|
committer | Bruno Martins <bgcngm@gmail.com> | 2020-05-14 01:05:45 +0100 |
commit | 2057f50e486625c4c207d1a187f7f2f0b5b6ebcc (patch) | |
tree | b0b8cc51c97950606487ca6d026cb78dacc18c9b | |
parent | b838db5dec95071e37fbf8722b15d49f60c4c603 (diff) | |
download | vendor_lineage-2057f50e486625c4c207d1a187f7f2f0b5b6ebcc.tar.gz vendor_lineage-2057f50e486625c4c207d1a187f7f2f0b5b6ebcc.tar.bz2 vendor_lineage-2057f50e486625c4c207d1a187f7f2f0b5b6ebcc.zip |
config: Install {Lato,Rubik} fonts and their overlay packages
Change-Id: I3fe93982095722d22e726baf9561a6bde31f5bf1
-rw-r--r-- | config/common_full.mk | 10 | ||||
-rw-r--r-- | prebuilt/common/Android.mk | 8 | ||||
-rw-r--r-- | prebuilt/common/etc/fonts_customization.xml | 24 |
3 files changed, 42 insertions, 0 deletions
diff --git a/config/common_full.mk b/config/common_full.mk index 67bfa73c..91bf1984 100644 --- a/config/common_full.mk +++ b/config/common_full.mk @@ -3,6 +3,16 @@ $(call inherit-product, vendor/lineage/config/common_mobile.mk) PRODUCT_SIZE := full +# Include {Lato,Rubik} fonts +$(call inherit-product-if-exists, external/google-fonts/lato/fonts.mk) +$(call inherit-product-if-exists, external/google-fonts/rubik/fonts.mk) + +# Fonts +PRODUCT_PACKAGES += \ + fonts_customization.xml \ + LineageLatoFont \ + LineageRubikFont + # Recorder PRODUCT_PACKAGES += \ Recorder diff --git a/prebuilt/common/Android.mk b/prebuilt/common/Android.mk index 87989742..640c2be6 100644 --- a/prebuilt/common/Android.mk +++ b/prebuilt/common/Android.mk @@ -38,3 +38,11 @@ LOCAL_PREBUILT_MODULE_FILE := $(FINAL_APNS_FILE) LOCAL_PRODUCT_MODULE := true include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := fonts_customization.xml +LOCAL_SRC_FILES := etc/fonts_customization.xml +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_PRODUCT_MODULE := true +include $(BUILD_PREBUILT) diff --git a/prebuilt/common/etc/fonts_customization.xml b/prebuilt/common/etc/fonts_customization.xml new file mode 100644 index 00000000..0c9a7fb3 --- /dev/null +++ b/prebuilt/common/etc/fonts_customization.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<fonts-modification version="1"> + <family customizationType="new-named-family" name="lato"> + <font weight="400" style="normal">Lato-Regular.ttf</font> + <font weight="400" style="italic">Lato-Italic.ttf</font> + <font weight="500" style="normal">Lato-Medium.ttf</font> + <font weight="500" style="italic">Lato-MediumItalic.ttf</font> + <font weight="700" style="normal">Lato-Bold.ttf</font> + <font weight="700" style="italic">Lato-BoldItalic.ttf</font> + </family> + <alias name="lato-medium" to="lato" weight="500" /> + <alias name="lato-bold" to="lato" weight="700" /> + + <family customizationType="new-named-family" name="rubik"> + <font weight="400" style="normal">Rubik-Regular.ttf</font> + <font weight="400" style="italic">Rubik-Italic.ttf</font> + <font weight="500" style="normal">Rubik-Medium.ttf</font> + <font weight="500" style="italic">Rubik-MediumItalic.ttf</font> + <font weight="700" style="normal">Rubik-Bold.ttf</font> + <font weight="700" style="italic">Rubik-BoldItalic.ttf</font> + </family> + <alias name="rubik-medium" to="rubik" weight="500" /> + <alias name="rubik-bold" to="rubik" weight="700" /> +</fonts-modification> |