diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-14 06:26:16 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-14 06:26:16 +0000 |
commit | 1c2aa35371aed8d895b3448dad865b913da57cfb (patch) | |
tree | 8a790ad8efe5d0abd73eaf77adc854d336ce0ef4 /tools/checkwps/checkwps.c | |
parent | ed21ab1c8c9b16ec62933313c3d36a93d9255f62 (diff) | |
download | rockbox-1c2aa35371aed8d895b3448dad865b913da57cfb.tar.gz rockbox-1c2aa35371aed8d895b3448dad865b913da57cfb.zip |
FS#10984 - multifont! 2 major additions:
1) seperate UI font for the remote and main displays
2) allow individual skins to load additional fonts for use in the skin (Uo to 7 extra in this first version) see CustomWPS for info on how to load a font in the skins.
Code should always use FONT_UI+screen_number to get the correct user font
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24644 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/checkwps/checkwps.c')
-rw-r--r-- | tools/checkwps/checkwps.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c index 38a650a878..32b6daa88b 100644 --- a/tools/checkwps/checkwps.c +++ b/tools/checkwps/checkwps.c @@ -31,6 +31,7 @@ #include "settings.h" #include "viewport.h" #include "file.h" +#include "font.h" bool debug_wps = true; int wps_verbose_level = 0; @@ -236,6 +237,21 @@ void screen_clear_area(struct screen * display, int xstart, int ystart, } #endif +#ifdef HAVE_LCD_BITMAP +static int loaded_fonts = 0; +int font_load(struct font* pf, const char *path) +{ + int id = SYSTEMFONTCOUNT + loaded_fonts; + loaded_fonts++; + return id; +} + +void font_unload(int font_id) +{ + (void)font_id; +} +#endif + int main(int argc, char **argv) { int res; |