From b24caab14cffc2062359431a05f8d618ad76cd7a Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Thu, 7 Aug 2014 09:28:04 -0500 Subject: Set font based on resolution if not set already Change-Id: I6efaeb1c508c06513ac9ace7aa72a2eefa0cb1bb --- minuitwrp/Android.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk index 3c148eacb..d953ce719 100644 --- a/minuitwrp/Android.mk +++ b/minuitwrp/Android.mk @@ -80,6 +80,20 @@ endif ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),) LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT) +else + FONT_7x16 := 240x240 280x280 320x320 320x480 + ROBOTO_10x18 := 480x800 480x854 540x960 800x480 1024x600 1024x768 1280x800 + ROBOTO_15x24 := 720x1280 800x1280 + ROBOTO_23x41 := 1080x1920 1200x1920 1440x2560 1600x2560 1920x1200 2560x1600 + ifneq ($(filter $(DEVICE_RESOLUTION), $(FONT_7x16)),) + LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=\"font_7x16.h\" + else ifneq ($(filter $(DEVICE_RESOLUTION), $(ROBOTO_10x18)),) + LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=\"roboto_10x18.h\" + else ifneq ($(filter $(DEVICE_RESOLUTION), $(ROBOTO_15x24)),) + LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=\"roboto_15x24.h\" + else ifneq ($(filter $(DEVICE_RESOLUTION), $(ROBOTO_23x41)),) + LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=\"roboto_23x41.h\" + endif endif ifneq ($(TW_WHITELIST_INPUT),) -- cgit v1.2.3