Set font based on resolution if not set already

Change-Id: I6efaeb1c508c06513ac9ace7aa72a2eefa0cb1bb
This commit is contained in:
Ethan Yonker
2014-08-07 09:28:04 -05:00
parent 6f6a1d6dc7
commit b24caab14c
+14
View File
@@ -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),)