config: Install {Lato,Rubik} fonts and their overlay packages

Change-Id: I3fe93982095722d22e726baf9561a6bde31f5bf1
gugelfrei
LuK1337 4 years ago committed by Bruno Martins
parent b838db5dec
commit 2057f50e48

@ -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

@ -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)

@ -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>
Loading…
Cancel
Save