summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/help.h
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-07-12 12:19:09 -0400
committerFranklin Wei <git@fwei.tk>2017-07-17 16:58:13 -0400
commite7a35ba3833925043b1b3e4a164e06058500bcd8 (patch)
tree1c6c3b920195824cf08d79fda23e7b738d39c730 /apps/plugins/puzzles/help.h
parent84e13d5749835234347c8f94f85ea2790980f44d (diff)
downloadrockbox-e7a35ba3833925043b1b3e4a164e06058500bcd8.tar.gz
rockbox-e7a35ba3833925043b1b3e4a164e06058500bcd8.zip
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 <http://download.rockbox.org/useful/sgt-fonts.zip>. Change-Id: I05c8fe7bd6d867e14de9b941deb91e8c642ee4a8
Diffstat (limited to 'apps/plugins/puzzles/help.h')
-rw-r--r--apps/plugins/puzzles/help.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/apps/plugins/puzzles/help.h b/apps/plugins/puzzles/help.h
index 29fcb8271c..90c90dcd7f 100644
--- a/apps/plugins/puzzles/help.h
+++ b/apps/plugins/puzzles/help.h
@@ -2,6 +2,3 @@
2 2
3extern const char help_text[]; 3extern const char help_text[];
4extern const char quick_help_text[]; 4extern const char quick_help_text[];
5
6/* in help.c */
7void full_help(const char *name);