Big Font Mod and Roboto Fonts (XHDPI, HDPI, and MDPI)
- lets xhdpi devices (Galaxy Nexus, Xoom, etc) have a bigger font size (15x24)
- port Google's Roboto font into recovery for both XHDPI, HDPI, and MDPI font size, make them optional (LDPI is too small!)
(credits to gweedo767 for big font)
Change-Id: I621dbc7c8ac30a8f16039ce64720512e3e63881a
diff --git a/minui/graphics.c b/minui/graphics.c
index de1cfdf..d3473db 100644
--- a/minui/graphics.c
+++ b/minui/graphics.c
@@ -30,7 +30,28 @@
#include <pixelflinger/pixelflinger.h>
-#include "font_10x18.h"
+#if defined(BOARD_XHDPI_RECOVERY)
+ #ifdef BOARD_USE_CUSTOM_FONT
+ #include "roboto_15x24.h"
+ #else
+ #include "font_10x18.h" // only use the big font if we want custom
+ #endif
+#elif defined(BOARD_HDPI_RECOVERY)
+ #ifdef BOARD_USE_CUSTOM_FONT
+ #include "roboto_10x18.h"
+ #else
+ #include "font_10x18.h"
+ #endif
+#elif defined(BOARD_LDPI_RECOVERY)
+ #include "font_7x16.h"
+#else
+ #ifdef BOARD_USE_CUSTOM_FONT
+ #include "roboto_10x18.h"
+ #else
+ #include "font_10x18.h"
+ #endif
+#endif
+
#include "minui.h"
#if defined(RECOVERY_BGRA)