mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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 |
||
|---|---|---|
| .. | ||
| dummy | ||
| help | ||
| src | ||
| fonts.zip | ||
| genhelp.sh | ||
| help.h | ||
| keymaps.h | ||
| puzzles.make | ||
| rbassert.h | ||
| rbcompat.h | ||
| rbmalloc.c | ||
| rbwrappers.c | ||
| README.rockbox | ||
| rockbox.c | ||
| SOURCES | ||
| SOURCES.games | ||
This is the readme for the Rockbox port of Simon Tatham's Portable Puzzle Collection. Upstream version used is 7cae89fb4b22c305b3fd98b4e1be065ad527a9f7 from December 2016. It should be relatively trivial to update it to a newer version, and should probably be done periodically as changes are made. Most of the upstream files are essentially untouched, apart from some minor adjustments to make it compile happily on Rockbox. Some games still don't work due to issues with their cursor-only control scheme (untangle being the big culprit here) but the ones that don't are commented out in SOURCES.games. I'll get around to fixing them eventually. Building is done rather hackily, with a rule for every puzzle to be built... almost 40 at the time of writing. Mr. Someone ought to figure out how to do that with a wildcard or something. Kudos to Simon (duh), and Frank, for telling me about it. Franklin Wei (__builtin) April 2017: Changes made to move upstream sources to a separate subdirectory, where they are completely unmodified from the original. Updating the upstream version is now as simple as copying a fresh set of sources to src/. Several hacks were used to accomplish this: a global include specified on the command line, and a directory of dummy header files.