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/fonts.zip | Bin 0 -> 382808 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 apps/plugins/puzzles/fonts.zip (limited to 'apps/plugins/puzzles/fonts.zip') diff --git a/apps/plugins/puzzles/fonts.zip b/apps/plugins/puzzles/fonts.zip new file mode 100644 index 0000000000..7e7cb4045c Binary files /dev/null and b/apps/plugins/puzzles/fonts.zip differ -- cgit v1.2.3