From e7a35ba3833925043b1b3e4a164e06058500bcd8 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Wed, 12 Jul 2017 12:19:09 -0400 Subject: puzzles: dynamic text size via custom font pack Up to now, we'd just ignore whatever font size the puzzle asked for, and instead just go with either the UI font or system font regardless of their size, which led to some horrible-looking puzzles. This patch adds the ability to automatically load fonts of the proper size when they are available, which makes text-based puzzles such as Pattern and Slant function correctly with any UI font. The font pack, which should be extracted to the system-wide fonts directory consists of 3 small bitmap fonts from 7px to 10px and then anti-aliased Deja Vu fonts from 10px to 36px. It is available in the source tree (apps/plugins/puzzles/fonts.zip), or from . Change-Id: I05c8fe7bd6d867e14de9b941deb91e8c642ee4a8 --- apps/plugins/puzzles/help.c | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 apps/plugins/puzzles/help.c (limited to 'apps/plugins/puzzles/help.c') diff --git a/apps/plugins/puzzles/help.c b/apps/plugins/puzzles/help.c deleted file mode 100644 index c45f50e65e..0000000000 --- a/apps/plugins/puzzles/help.c +++ /dev/null @@ -1,14 +0,0 @@ -#include "help.h" -#include "lib/simple_viewer.h" - -void full_help(const char *name) -{ - unsigned old_bg = rb->lcd_get_background(); - - rb->lcd_set_foreground(LCD_WHITE); - rb->lcd_set_background(LCD_BLACK); - - view_text(name, help_text); - - rb->lcd_set_background(old_bg); -} -- cgit v1.2.3