forked from len0rd/rockbox
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
This commit is contained in:
parent
84e13d5749
commit
e7a35ba383
5 changed files with 137 additions and 32 deletions
|
@ -2,6 +2,3 @@
|
|||
|
||||
extern const char help_text[];
|
||||
extern const char quick_help_text[];
|
||||
|
||||
/* in help.c */
|
||||
void full_help(const char *name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue